/busybox-1.35.0/libbb/ |
D | recursive_action.c | 24 static int FAST_FUNC true_action(struct recursive_state *state UNUSED_PARAM, in true_action() 67 static int recursive_action1(recursive_state_t *state, const char *fileName) in recursive_action1() argument 76 if (state->depth == 0) in recursive_action1() 78 follow &= state->flags; in recursive_action1() 82 bb_error_msg("status=%d flags=%x", status, state->flags); in recursive_action1() 84 if ((state->flags & ACTION_DANGLING_OK) in recursive_action1() 89 return state->fileAction(state, fileName, &statbuf); in recursive_action1() 100 return state->fileAction(state, fileName, &statbuf); in recursive_action1() 105 if (!(state->flags & ACTION_RECURSE)) { in recursive_action1() 106 return state->dirAction(state, fileName, &statbuf); in recursive_action1() [all …]
|
D | lineedit.c | 140 line_input_t *state; member 195 #define state (S.state ) macro 785 if (state->flags & WITH_PATH_LOOKUP) in path_parse() 786 pth = state->path_lookup; in path_parse() 865 if (state->get_exe_name) { in complete_cmd_dir_file() 868 const char *b = state->get_exe_name(i++); in complete_cmd_dir_file() 1205 if (!(state->flags & TAB_COMPLETION)) in input_tab() 1250 if (state->flags & USERNAME_COMPLETION) in input_tab() 1404 int cur = state->cur_history; in save_command_ps_at_cur_history() 1405 free(state->history[cur]); in save_command_ps_at_cur_history() [all …]
|
D | hash_md5_sha.c | 956 static void split_halves(uint64_t *state) in split_halves() argument 959 uint32_t *s32 = (uint32_t*)state; in split_halves() 978 static void combine_halves(uint64_t *state) in combine_halves() argument 980 uint32_t *s32 = (uint32_t*)state; in combine_halves() 1006 static void sha3_process_block72(uint64_t *state) in sha3_process_block72() argument 1068 uint32_t *const s32 = (uint32_t*)state; in sha3_process_block72() 1071 split_halves(state); in sha3_process_block72() 1174 combine_halves(state); in sha3_process_block72() 1228 state[x] = SWAP_LE64(state[x]); in sha3_process_block72() 1237 BC[x + 5] = BC[x] = state[x] in sha3_process_block72() [all …]
|
D | hash_md5prime.c | 152 static void md5_transform(uint32_t state[4], const unsigned char block[64]) in md5_transform() 205 a = state[0]; in md5_transform() 206 b = state[1]; in md5_transform() 207 c = state[2]; in md5_transform() 208 d = state[3]; in md5_transform() 381 state[0] += a; in md5_transform() 382 state[1] += b; in md5_transform() 383 state[2] += c; in md5_transform() 384 state[3] += d; in md5_transform() 396 context->state[0] = 0x67452301; in md5_begin() [all …]
|
/busybox-1.35.0/archival/libarchive/unxz/ |
D | xz_lzma2.h | 64 static inline void XZ_FUNC lzma_state_literal(enum lzma_state *state) in lzma_state_literal() argument 66 if (*state <= STATE_SHORTREP_LIT_LIT) in lzma_state_literal() 67 *state = STATE_LIT_LIT; in lzma_state_literal() 68 else if (*state <= STATE_LIT_SHORTREP) in lzma_state_literal() 69 *state -= 3; in lzma_state_literal() 71 *state -= 6; in lzma_state_literal() 75 static inline void XZ_FUNC lzma_state_match(enum lzma_state *state) in lzma_state_match() argument 77 *state = *state < LIT_STATES ? STATE_LIT_MATCH : STATE_NONLIT_MATCH; in lzma_state_match() 81 static inline void XZ_FUNC lzma_state_long_rep(enum lzma_state *state) in lzma_state_long_rep() argument 83 *state = *state < LIT_STATES ? STATE_LIT_LONGREP : STATE_NONLIT_REP; in lzma_state_long_rep() [all …]
|
/busybox-1.35.0/networking/ |
D | isrv.c | 31 int (*new_peer)(isrv_state_t *state, int fd); 40 #define FD2PEER (state->fd2peer) 41 #define PARAM_TBL (state->param_tbl) 42 #define TIMEO_TBL (state->timeo_tbl) 43 #define CURTIME (state->curtime) 44 #define TIMEOUT (state->timeout) 45 #define FD_COUNT (state->fd_count) 46 #define PEER_COUNT (state->peer_count) 47 #define WR_COUNT (state->wr_count) 50 void isrv_want_rd(isrv_state_t *state, int fd) in isrv_want_rd() argument [all …]
|
D | isrv.h | 18 void isrv_want_rd(isrv_state_t *state, int fd); 19 void isrv_want_wr(isrv_state_t *state, int fd); 20 void isrv_dont_want_rd(isrv_state_t *state, int fd); 21 void isrv_dont_want_wr(isrv_state_t *state, int fd); 22 int isrv_register_fd(isrv_state_t *state, int peer, int fd); 23 void isrv_close_fd(isrv_state_t *state, int fd); 24 int isrv_register_peer(isrv_state_t *state, void *param); 53 int (*new_peer)(isrv_state_t *state, int fd),
|
D | slattach.c | 52 static int tcsetattr_serial_or_warn(struct termios *state) in tcsetattr_serial_or_warn() argument 56 ret = tcsetattr(serial_fd, TCSANOW, state); in tcsetattr_serial_or_warn() 67 struct termios state; in restore_state_and_exit() local 75 memcpy(&state, &G.saved_state, sizeof(state)); in restore_state_and_exit() 76 cfsetispeed(&state, B0); in restore_state_and_exit() 77 cfsetospeed(&state, B0); in restore_state_and_exit() 78 exitcode |= tcsetattr_serial_or_warn(&state); in restore_state_and_exit() 110 struct termios state; in slattach_main() local 176 memcpy(&state, &G.saved_state, sizeof(state)); in slattach_main() 178 memset(&state.c_cc, 0, sizeof(state.c_cc)); in slattach_main() [all …]
|
D | isrv_identd.c | 45 static int new_peer(isrv_state_t *state, int fd) in new_peer() argument 50 peer = isrv_register_peer(state, buf); in new_peer() 53 if (isrv_register_fd(state, peer, fd) < 0) in new_peer() 57 isrv_want_rd(state, fd); in new_peer()
|
D | zcip.c | 227 int state; in zcip_main() local 366 state = PROBE; in zcip_main() 399 VDBG("state:%d\n", state); in zcip_main() 400 switch (state) { in zcip_main() 415 state = ANNOUNCE; in zcip_main() 441 state = MONITOR; in zcip_main() 464 if (state >= MONITOR) { in zcip_main() 510 VDBG("state:%d ip_conflict:%d\n", state, ip_conflict); in zcip_main() 515 if (state <= ANNOUNCE) { in zcip_main() 525 if (state == MONITOR) { in zcip_main() [all …]
|
D | netstat.c | 275 static int FAST_FUNC add_to_prg_cache_if_socket(struct recursive_state *state, in add_to_prg_cache_if_socket() argument 287 char *pid_slash_progname = state->userData; in add_to_prg_cache_if_socket() 294 static int FAST_FUNC dir_act(struct recursive_state *state, in dir_act() argument 304 if (state->depth == 0) /* "/proc" itself */ in dir_act() 411 int local_port, rem_port, state, uid; member 436 rem_addr, ¶m->rem_port, ¶m->state, in scan_inet_proc_line() 490 print_inet_line(¶m, tcp_state[param.state], "tcp", param.rem_port); in tcp_do_one() 519 switch (param.state) { in udp_do_one() 542 print_inet_line(¶m, itoa(param.state), "raw", have_remaddr); in raw_do_one() 550 int type, state; in unix_do_one() local [all …]
|
/busybox-1.35.0/editors/ |
D | patch.c | 105 int context, state, hunknum; member 141 if (TT.state>1 && *dlist->data != TT.state) in do_line() 142 fdprintf(TT.state == 2 ? 2 : TT.fileout, in do_line() 143 "%s\n", dlist->data+(TT.state>3 ? 1 : 0)); in do_line() 145 if (PATCH_DEBUG) fdprintf(2, "DO %d: %s\n", TT.state, dlist->data); in do_line() 186 TT.state = 2; in fail_hunk() 200 TT.state = 0; in fail_hunk() 308 TT.state = 3; in apply_one_hunk() 336 TT.state = "-+"[reverse ^ dummy_revert]; in apply_one_hunk() 339 TT.state = 1; in apply_one_hunk() [all …]
|
D | patch_toybox.c | 231 int context, state, filein, fileout, filepatch, hunknum; member 266 if (TT.state>1 && *dlist->data != TT.state) in do_line() 267 fdprintf(TT.state == 2 ? 2 : TT.fileout, in do_line() 268 "%s\n", dlist->data+(TT.state>3 ? 1 : 0)); in do_line() 270 if (PATCH_DEBUG) fdprintf(2, "DO %d: %s\n", TT.state, dlist->data); in do_line() 293 TT.state = 2; in fail_hunk() 297 TT.state = 0; in fail_hunk() 379 TT.state = 3; in apply_one_hunk() 406 TT.state = "-+"[reverse]; in apply_one_hunk() 409 TT.state = 1; in apply_one_hunk() [all …]
|
/busybox-1.35.0/archival/libarchive/bz/ |
D | blocksort.c | 234 void fallbackSort(EState* state) in fallbackSort() argument 242 uint32_t *const fmap = state->arr1; in fallbackSort() 243 uint32_t *const eclass = state->arr2; in fallbackSort() 245 uint32_t *const bhtab = state->ftab; in fallbackSort() 246 const int32_t nblock = state->nblock; in fallbackSort() 377 int mainGtU(EState* state, in mainGtU() argument 385 uint8_t *const block = state->block; in mainGtU() 386 uint16_t *const quadrant = state->quadrant; in mainGtU() 387 const int32_t nblock = state->nblock; in mainGtU() 445 state->budget--; in mainGtU() [all …]
|
D | bzlib.c | 105 s->state = BZ_S_INPUT; in BZ2_bzCompressInit() 110 strm->state = s; in BZ2_bzCompressInit() 258 EState* s = strm->state; in handle_compress() 261 if (s->state == BZ_S_OUTPUT) { in handle_compress() 270 s->state = BZ_S_INPUT; in handle_compress() 279 if (s->state == BZ_S_INPUT) { in handle_compress() 285 s->state = BZ_S_OUTPUT; in handle_compress() 289 s->state = BZ_S_OUTPUT; in handle_compress() 308 s = strm->state; in BZ2_bzCompress() 368 s = strm->state; in BZ2_bzCompressEnd()
|
/busybox-1.35.0/networking/libiproute/ |
D | ipneigh.c | 32 int state; member 116 if (!(G_filter.state&r->ndm_state) in print_neigh() 118 && (r->ndm_state || !(G_filter.state & 0x100)) in print_neigh() 222 G_filter.state = ~0; in ipneigh_reset_filter() 249 G_filter.state = (flush) ? in ipneigh_list_or_flush() 258 unsigned state; in ipneigh_list_or_flush() local 262 G_filter.state = 0; in ipneigh_list_or_flush() 265 state = ~0; in ipneigh_list_or_flush() 267 state &= ~NUD_NOARP; in ipneigh_list_or_flush() 269 state = nud_state_a2n(*argv); in ipneigh_list_or_flush() [all …]
|
/busybox-1.35.0/archival/libarchive/ |
D | decompress_unxz.c | 50 struct xz_dec *state; in IF_DESKTOP() local 70 state = xz_dec_init(XZ_DYNALLOC, 64*1024*1024); in IF_DESKTOP() 117 xz_dec_reset(state); in IF_DESKTOP() 126 xz_result = xz_dec_run(state, &iobuf); in IF_DESKTOP() 150 xz_dec_end(state); in IF_DESKTOP()
|
D | decompress_unlzma.c | 231 int state = 0; in IF_DESKTOP() local 274 uint16_t *prob = p + LZMA_IS_MATCH + (state << LZMA_NUM_POS_BITS_MAX) + pos_state; in IF_DESKTOP() 288 if (state >= LZMA_NUM_LIT_STATES) { in IF_DESKTOP() 313 state = next_state[state]; in IF_DESKTOP() 336 prob2 = p + LZMA_IS_REP + state; in IF_DESKTOP() 341 state = state < LZMA_NUM_LIT_STATES ? 0 : 3; in IF_DESKTOP() 347 + (state << LZMA_NUM_POS_BITS_MAX) in IF_DESKTOP() 353 state = state < LZMA_NUM_LIT_STATES ? 9 : 11; in IF_DESKTOP() 367 state = state < LZMA_NUM_LIT_STATES ? 9 : 11; in IF_DESKTOP() 389 state = state < LZMA_NUM_LIT_STATES ? 8 : 11; in IF_DESKTOP() [all …]
|
/busybox-1.35.0/coreutils/ |
D | chmod.c | 69 static int FAST_FUNC fileAction(struct recursive_state *state, in fileAction() argument 76 if (state->depth == 0) { in fileAction() 85 newmode = bb_parse_mode((char *)state->userData, statbuf->st_mode); in fileAction() 87 bb_error_msg_and_die("invalid mode '%s'", (char *)state->userData); in fileAction()
|
/busybox-1.35.0/runit/ |
D | runsv.c | 95 smallint state; member 219 switch (s->state) { in update_status() 234 if (s->state != S_DOWN) in update_status() 263 status.run_or_finish = s->state; in update_status() 340 if (s->state == S_FINISH) { in startservice() 398 if (s->state != S_FINISH) { in startservice() 400 s->state = S_RUN; in startservice() 416 if (s->state == S_RUN) in ctrl() 422 if (s->state == S_DOWN) in ctrl() 432 if (s->state == S_RUN) in ctrl() [all …]
|
/busybox-1.35.0/shell/ash_test/ash-standalone/ |
D | nofork_trashes_getopt.tests | 1 # In this test, rm is NOFORK and it modifies getopt internal state 3 # Subsequent hexdump is run as NOEXEC, and thus still uses this state
|
/busybox-1.35.0/shell/hush_test/hush-standalone/ |
D | nofork_trashes_getopt.tests | 1 # In this test, rm is NOFORK and it modifies getopt internal state 3 # Subsequent hexdump is run as NOEXEC, and thus still uses this state
|
/busybox-1.35.0/examples/ |
D | devfsd.conf | 53 REGISTER .* COPY /lib/dev-state/$devname $devpath 54 CREATE .* COPY $devpath /lib/dev-state/$devname 55 CHANGE .* COPY $devpath /lib/dev-state/$devname 58 DELETE .* EXECUTE /bin/rm -f /lib/dev-state/$devname 60 RESTORE /lib/dev-state
|
/busybox-1.35.0/docs/ |
D | tcp.txt | 82 int state = 1; 83 setsockopt(fd, IPPROTO_TCP, TCP_CORK, &state, sizeof(state)); 87 int state = 0; 88 setsockopt(fd, IPPROTO_TCP, TCP_CORK, &state, sizeof(state)); 92 int state = 1; 93 setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &state, sizeof(state));
|
/busybox-1.35.0/findutils/ |
D | xargs.c | 274 #define state G.process_stdin__state in process_stdin() macro 290 if (state == BACKSLASH) { in process_stdin() 291 state = NORM; in process_stdin() 294 if (state == QUOTE) { in process_stdin() 298 state = NORM; in process_stdin() 303 state = SPACE; in process_stdin() 309 state = BACKSLASH; in process_stdin() 312 state = QUOTE; in process_stdin() 319 if (state == SPACE) { /* word's delimiter or EOF detected */ in process_stdin() 320 state = NORM; in process_stdin() [all …]
|