/busybox-1.35.0/shell/ash_test/ash-getopts/ |
D | getopt_test_libc_bug.right | 2 1 rc:0 var:'a' OPTIND:2 OPTARG:'' 4 2 rc:0 var:'?' OPTIND:3 OPTARG:'' 5 3 rc:0 var:'c' OPTIND:4 OPTARG:'' 7 4 rc:0 var:'?' OPTIND:5 OPTARG:'' 8 5 rc:1 var:'?' OPTIND:5 OPTARG:'' 11 1 rc:0 var:'a' OPTIND:2 OPTARG:'' 13 2 rc:0 var:'?' OPTIND:3 OPTARG:'' 14 3 rc:0 var:'c' OPTIND:4 OPTARG:'' 16 4 rc:0 var:'?' OPTIND:5 OPTARG:'' 17 5 rc:1 var:'?' OPTIND:5 OPTARG:'' [all …]
|
D | getopt_silent.right | 2 1 rc:0 var:'a' OPTIND:2 OPTARG:'' 3 2 rc:0 var:'?' OPTIND:3 OPTARG:'b' 4 3 rc:0 var:'c' OPTIND:4 OPTARG:'' 5 4 rc:1 var:'?' OPTIND:4 OPTARG:'' 6 5 rc:1 var:'?' OPTIND:4 OPTARG:''
|
D | getopt_simple.right | 4 exited: rc:0 var:'?' OPTIND:3 8 exited: rc:0 var:'?' OPTIND:3 12 exited: rc:0 var:'?' OPTIND:3 16 exited: rc:0 var:'?' OPTIND:3 18 1 rc:0 var:'a' OPTIND:2 19 2 rc:0 var:'b' OPTIND:3 20 3 rc:1 var:'?' OPTIND:3 23 exited: rc:0 var:'?' OPTIND:2 29 exited: rc:0 var:'?' OPTIND:4 34 exited: rc:0 var:'?' OPTIND:4
|
D | getopt_test_libc_bug.tests | 9 getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 10 getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 11 getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 12 getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 13 getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 21 OPTARG=QWERTY; getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 22 NEWVAR=NEWVAL; getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 23 VAR111=NEWVAL; getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 24 VAR222=NEWVAL; getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 25 VAR333=NEWVAL; getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… [all …]
|
/busybox-1.35.0/archival/libarchive/ |
D | decompress_unlzma.c | 37 #define RC_BUFFER ((uint8_t*)(rc+1)) 56 static void rc_read(rc_t *rc) in rc_read() argument 58 int buffer_size = safe_read(rc->fd, RC_BUFFER, RC_BUFFER_SIZE); in rc_read() 63 rc->buffer_end = RC_BUFFER + buffer_size; in rc_read() 64 rc->ptr = RC_BUFFER; in rc_read() 68 static void rc_do_normalize(rc_t *rc) in rc_do_normalize() argument 70 if (rc->ptr >= rc->buffer_end) in rc_do_normalize() 71 rc_read(rc); in rc_do_normalize() 72 rc->range <<= 8; in rc_do_normalize() 73 rc->code = (rc->code << 8) | *rc->ptr++; in rc_do_normalize() [all …]
|
/busybox-1.35.0/shell/hush_test/hush-getopts/ |
D | getopt_test_libc_bug.right | 2 1 rc:0 var:'a' OPTIND:2 OPTARG:'' 4 2 rc:0 var:'?' OPTIND:3 OPTARG:'' 5 3 rc:0 var:'c' OPTIND:4 OPTARG:'' 7 4 rc:0 var:'?' OPTIND:5 OPTARG:'' 8 5 rc:1 var:'?' OPTIND:5 OPTARG:'' 11 1 rc:0 var:'a' OPTIND:2 OPTARG:'' 13 2 rc:0 var:'?' OPTIND:3 OPTARG:'' 14 3 rc:0 var:'c' OPTIND:4 OPTARG:'' 16 4 rc:0 var:'?' OPTIND:5 OPTARG:'' 17 5 rc:1 var:'?' OPTIND:5 OPTARG:'' [all …]
|
D | getopt_silent.right | 2 1 rc:0 var:'a' OPTIND:2 OPTARG:'' 3 2 rc:0 var:'?' OPTIND:3 OPTARG:'b' 4 3 rc:0 var:'c' OPTIND:4 OPTARG:'' 5 4 rc:1 var:'?' OPTIND:4 OPTARG:'' 6 5 rc:1 var:'?' OPTIND:4 OPTARG:''
|
D | getopt_simple.right | 4 exited: rc:0 var:'?' OPTIND:3 8 exited: rc:0 var:'?' OPTIND:3 12 exited: rc:0 var:'?' OPTIND:3 16 exited: rc:0 var:'?' OPTIND:3 18 1 rc:0 var:'a' OPTIND:2 19 2 rc:0 var:'b' OPTIND:3 20 3 rc:1 var:'?' OPTIND:3 23 exited: rc:0 var:'?' OPTIND:2 29 exited: rc:0 var:'?' OPTIND:4 34 exited: rc:0 var:'?' OPTIND:4
|
D | getopt_test_libc_bug.tests | 11 getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 12 getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 13 getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 14 getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 15 getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPTARG'" 23 OPTARG=QWERTY; getopts "ac" var -a -b -c -d e; echo "1 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 24 NEWVAR=NEWVAL; getopts "ac" var -a -b -c -d e; echo "2 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 25 VAR111=NEWVAL; getopts "ac" var -a -b -c -d e; echo "3 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 26 VAR222=NEWVAL; getopts "ac" var -a -b -c -d e; echo "4 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… 27 VAR333=NEWVAL; getopts "ac" var -a -b -c -d e; echo "5 rc:$? var:'$var' OPTIND:$OPTIND OPTARG:'$OPT… [all …]
|
D | getopt_simple.tests | 20 # unfortunately, "rc:0" is shown since while's overall exitcode is "success" 21 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND" 29 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND" 37 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND" 45 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND" 50 getopts "ab" var -a -b c; echo "1 rc:$? var:'$var' OPTIND:$OPTIND" 51 getopts "ab" var -a -b c; echo "2 rc:$? var:'$var' OPTIND:$OPTIND" 52 getopts "ab" var -a -b c; echo "3 rc:$? var:'$var' OPTIND:$OPTIND" 60 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND" 68 echo "exited: rc:$? var:'$var' OPTIND:$OPTIND" [all …]
|
/busybox-1.35.0/selinux/ |
D | getenforce.c | 28 int rc; in getenforce_main() local 30 rc = is_selinux_enabled(); in getenforce_main() 31 if (rc < 0) in getenforce_main() 34 if (rc == 1) { in getenforce_main() 35 rc = security_getenforce(); in getenforce_main() 36 if (rc < 0) in getenforce_main() 39 if (rc) in getenforce_main()
|
D | sestatus.c | 168 int rc; in sestatus_main() local 173 rc = is_selinux_enabled(); in sestatus_main() 174 if (rc < 0) in sestatus_main() 177 rc == 1 ? "enabled" : "disabled"); in sestatus_main() 186 rc = security_getenforce(); in sestatus_main() 187 if (rc < 0) in sestatus_main() 190 rc == 0 ? "permissive" : "enforcing"); in sestatus_main() 193 if (selinux_getenforcemode(&rc) != 0) in sestatus_main() 196 rc < 0 ? "disabled" : (rc == 0 ? "permissive" : "enforcing")); in sestatus_main() 199 rc = security_policyvers(); in sestatus_main() [all …]
|
D | load_policy.c | 26 int rc; in load_policy_main() local 32 rc = selinux_mkload_policy(1); in load_policy_main() 33 if (rc < 0) { in load_policy_main()
|
D | matchpathcon.c | 34 int rc = matchpathcon(path, 0, &buf); in print_matchpathcon() local 35 if (rc < 0) { in print_matchpathcon() 84 int rc; in matchpathcon_main() local 97 rc = lgetfilecon_raw(path, &con); in matchpathcon_main() 99 rc = lgetfilecon(path, &con); in matchpathcon_main() 101 if (rc >= 0) { in matchpathcon_main()
|
D | setenforce.c | 40 int i, rc; in setenforce_main() local 50 rc = security_setenforce(i & 1); in setenforce_main() 51 if (rc < 0) in setenforce_main()
|
D | getsebool.c | 30 int i, rc = 0, active, pending, len = 0; in getsebool_main() local 41 rc = security_get_boolean_names(&names, &len); in getsebool_main() 42 if (rc) in getsebool_main() 81 return rc; in getsebool_main()
|
/busybox-1.35.0/modutils/ |
D | insmod.c | 51 int rc; in insmod_main() local 70 rc = bb_init_module(filename, parse_cmdline_module_options(argv, /*quote_spaces:*/ 0)); in insmod_main() 71 if (rc) in insmod_main() 72 bb_error_msg("can't insert '%s': %s", filename, moderror(rc)); in insmod_main() 74 return rc; in insmod_main()
|
D | modprobe.c | 245 int rc = TRUE; in config_file_action() local 273 rc = FALSE; in config_file_action() 325 return rc; in config_file_action() 418 int rc, first; in do_modprobe() local 440 rc = 0; in do_modprobe() 445 rc = 0; in do_modprobe() 452 rc = bb_delete_module(m2->modname, O_EXCL); in do_modprobe() 453 if (rc) { in do_modprobe() 491 rc = bb_init_module(fn, options); in do_modprobe() 492 DBG("loaded %s '%s', rc:%d", fn, options, rc); in do_modprobe() [all …]
|
/busybox-1.35.0/libbb/ |
D | loop.c | 70 int fd, rc; in del_loop() local 75 rc = ioctl(fd, LOOP_CLR_FD, 0); in del_loop() 78 return rc; in del_loop() 110 int i, lfd, ffd, mode, rc; in set_loop() local 156 rc = -1; in set_loop() 161 lfd = rc = open(try, mode); in set_loop() 164 lfd = rc = open(try, mode); in set_loop() 175 rc = ioctl(lfd, BB_LOOP_GET_STATUS, &loopinfo); in set_loop() 178 if (rc && errno == ENXIO) { in set_loop() 203 rc = ioctl(lfd, BB_LOOP_SET_STATUS, &loopinfo); in set_loop() [all …]
|
D | vfork_daemon_rexec.c | 104 int rc, argc; in run_nofork_applet() local 121 rc = setjmp(die_jmp); in run_nofork_applet() 122 if (!rc) { in run_nofork_applet() 133 rc = applet_main[applet_no](argc, tmp_argv); in run_nofork_applet() 146 return rc & 0xff; /* don't confuse people with "exitcodes" >255 */ in run_nofork_applet() 227 int rc; in spawn_and_wait() local 237 rc = fork(); in spawn_and_wait() 238 if (rc) /* parent or error */ in spawn_and_wait() 239 return wait4pid(rc); in spawn_and_wait() 247 rc = spawn(argv); in spawn_and_wait() [all …]
|
/busybox-1.35.0/archival/libarchive/unxz/ |
D | xz_dec_lzma2.c | 263 struct rc_dec rc; member 440 static void XZ_FUNC rc_reset(struct rc_dec *rc) in rc_reset() argument 442 rc->range = (uint32_t)-1; in rc_reset() 443 rc->code = 0; in rc_reset() 444 rc->init_bytes_left = RC_INIT_BYTES; in rc_reset() 451 static bool XZ_FUNC rc_read_init(struct rc_dec *rc, struct xz_buf *b) in rc_read_init() argument 453 while (rc->init_bytes_left > 0) { in rc_read_init() 457 rc->code = (rc->code << 8) + b->in[b->in_pos++]; in rc_read_init() 458 --rc->init_bytes_left; in rc_read_init() 465 static inline bool XZ_FUNC rc_limit_exceeded(const struct rc_dec *rc) in rc_limit_exceeded() argument [all …]
|
/busybox-1.35.0/loginutils/ |
D | chpasswd.c | 72 int rc; in chpasswd_main() local 97 rc = update_passwd(bb_path_shadow_file, name, pass, NULL); in chpasswd_main() 98 if (rc > 0) /* password in /etc/shadow was updated */ in chpasswd_main() 100 if (rc >= 0) in chpasswd_main() 103 rc = update_passwd(bb_path_passwd_file, name, pass, NULL); in chpasswd_main() 106 if (rc < 0) in chpasswd_main() 108 if (rc) in chpasswd_main()
|
/busybox-1.35.0/init/ |
D | halt.c | 175 int which, flags, rc; in halt_main() local 208 rc = 1; in halt_main() 217 rc = kill(pidlist[0], signals[which]); in halt_main() 221 if (rc) { in halt_main() 225 rc = kill(1, signals[which]); in halt_main() 227 rc = kill(1, signals[which]); in halt_main() 243 rc = reboot(magic[which]); in halt_main() 246 if (rc) in halt_main() 248 return rc; in halt_main()
|
/busybox-1.35.0/networking/ssl_helper/ |
D | ssl_helper.c | 195 int rc; in flush_to_net() local 203 rc = matrixSslSentData(ssl, len); in flush_to_net() 204 if (rc < 0) in flush_to_net() 211 int rc; in do_io_until_eof_and_exit() local 225 rc = matrixSslNewClientSession(&ssl, keys, sid, 0, certCb, NULL, NULL, 0); in do_io_until_eof_and_exit() 226 dbg("matrixSslNewClientSession:rc=%d\n", rc); in do_io_until_eof_and_exit() 227 if (rc != MATRIXSSL_REQUEST_SEND) in do_io_until_eof_and_exit() 232 switch (rc) { in do_io_until_eof_and_exit() 265 rc = MATRIXSSL_REQUEST_SEND; in do_io_until_eof_and_exit() 266 dbg("rc=%d\n", rc); in do_io_until_eof_and_exit() [all …]
|
/busybox-1.35.0/networking/ |
D | telnetd.c | 182 ssize_t rc; in safe_write_to_pty_decode_iac() local 216 rc = wr; in safe_write_to_pty_decode_iac() 219 rc = found - buf + 1; in safe_write_to_pty_decode_iac() 220 rc = safe_write(ts->ptyfd, buf, rc); in safe_write_to_pty_decode_iac() 221 if (rc <= 0) in safe_write_to_pty_decode_iac() 222 return rc; in safe_write_to_pty_decode_iac() 223 if (rc < wr /* don't look past available data */ in safe_write_to_pty_decode_iac() 224 && buf[rc-1] == '\r' /* need this: imagine that write was _short_ */ in safe_write_to_pty_decode_iac() 225 && (buf[rc] == '\n' || buf[rc] == '\0') in safe_write_to_pty_decode_iac() 227 rc++; in safe_write_to_pty_decode_iac() [all …]
|