/busybox-1.35.0/runit/ |
D | chpst.c | 295 unsigned opt; in chpst_main() local 303 opt = getopt32(argv, "^+" in chpst_main() 312 if (opt & OPT_m) { // -m means -asld in chpst_main() 314 opt |= (OPT_s | OPT_l | OPT_a | OPT_d); in chpst_main() 317 option_mask32 = opt = 0; in chpst_main() 326 opt |= OPT_e; in chpst_main() 332 opt |= OPT_u; in chpst_main() 338 opt |= OPT_U; in chpst_main() 346 if (opt & OPT_d) { in chpst_main() 350 if (opt & OPT_v) in chpst_main() [all …]
|
/busybox-1.35.0/console-tools/ |
D | kbd_mode.c | 44 unsigned opt; in kbd_mode_main() local 47 opt = getopt32(argv, "sakuC:", &tty_name); in kbd_mode_main() 48 if (opt & 0x10) { in kbd_mode_main() 49 opt &= 0xf; /* clear -C bit, see (*) */ in kbd_mode_main() 60 if (!opt) { /* print current setting */ in kbd_mode_main() 86 opt = opt & UNICODE ? 3 : opt >> 1; in kbd_mode_main() 88 xioctl(fd, KDSKBMODE, (void*)(ptrdiff_t)opt); in kbd_mode_main()
|
/busybox-1.35.0/util-linux/ |
D | losetup.c | 51 unsigned opt; in losetup_main() local 64 opt = getopt32(argv, "^" "cdPo:far" "\0" "?2:d--Pofar:a--Pofr", &opt_o); in losetup_main() 68 if (!opt && argv[0] && !argv[1]) { in losetup_main() 81 if (opt == OPT_c && argv[0]) { in losetup_main() 91 if (opt == OPT_d && argv[0]) { in losetup_main() 98 if (opt == OPT_a) { in losetup_main() 114 if (opt & OPT_f) { in losetup_main() 132 if ((opt == OPT_f) && !argv[0]) { in losetup_main() 139 if (argv[0] && ((opt & OPT_f) || argv[1])) { in losetup_main() 143 if (opt & OPT_o) in losetup_main() [all …]
|
D | hexdump_xxd.c | 72 static void reverse(unsigned opt, const char *filename) in reverse() argument 83 if (!(opt & OPT_p)) { in reverse() 173 unsigned opt; in xxd_main() local 178 opt = getopt32(argv, "^" "l:s:apirg:+c:+o:" "\0" "?1" /* 1 argument max */, in xxd_main() 186 if (opt & OPT_l) { in xxd_main() 193 if (opt & OPT_s) { in xxd_main() 202 if (opt & OPT_r) { in xxd_main() 203 reverse(opt, argv[0]); in xxd_main() 206 if (opt & OPT_o) { in xxd_main() 211 if (opt & OPT_p) { in xxd_main() [all …]
|
D | mountpoint.c | 45 int rc, opt; in mountpoint_main() local 47 opt = getopt32(argv, "^" "qdxn" "\0" "=1"); in mountpoint_main() 55 rc = (opt & OPT_x) ? stat(arg, &st) : lstat(arg, &st); in mountpoint_main() 59 if (opt & OPT_x) { in mountpoint_main() 80 if (opt & OPT_d) in mountpoint_main() 82 if (opt & OPT_n) { in mountpoint_main() 93 if (!(opt & (OPT_q | OPT_d | OPT_n))) in mountpoint_main() 102 if (!(opt & OPT_q)) in mountpoint_main()
|
D | flock.c | 31 int mode, opt, fd; in flock_main() local 49 opt = getopt32long(argv, "^+" "sxnu" "\0" "-1", flock_longopts); in flock_main() 77 opt |= OPT_c; in flock_main() 82 mode = opt & (LOCK_SH + LOCK_EX + LOCK_NB + LOCK_UN); in flock_main() 86 if (opt & OPT_u) in flock_main() 88 else if (opt & OPT_s) in flock_main() 92 if (opt & OPT_n) in flock_main() 104 if (opt & OPT_c) { in flock_main()
|
D | ionice.c | 67 int opt; in ionice_main() local 77 opt = getopt32(argv, "+""n:+c:+p:+t", &pri, &ioclass, &pid); in ionice_main() 80 if (opt & OPT_c) { in ionice_main() 93 if (!(opt & (OPT_n|OPT_c))) { in ionice_main() 94 if (!(opt & OPT_p) && *argv) in ionice_main() 110 if (!(opt & OPT_t)) in ionice_main()
|
D | getopt.c | 224 int opt = alternative in generate_output() local 229 int opt = getopt(argc, argv, optstr); in generate_output() 231 if (opt == -1) in generate_output() 233 if (opt == '?' || opt == ':' ) in generate_output() 237 if (opt == LONG_OPT) { in generate_output() 244 if (opt == NON_OPT) in generate_output() 248 printf(" -%c", opt); in generate_output() 249 charptr = strchr(optstr, opt); in generate_output() 359 unsigned opt; in getopt_main() local 389 opt = getopt32(argv, "+o:n:qQs:Tu", &optstr, &name, &s_arg); in getopt_main() [all …]
|
/busybox-1.35.0/coreutils/ |
D | readlink.c | 72 unsigned opt; in readlink_main() 74 opt = getopt32(argv, "^" "fnvsq" "\0" "=1"); in readlink_main() 78 const unsigned opt = 0; in readlink_main() 84 if (!(opt & 4)) /* not -v */ in readlink_main() 88 if (opt & 1) { /* -f */ in readlink_main() 96 printf((opt & 2) ? "%s" : "%s\n", buf); in readlink_main()
|
D | chown.c | 64 #define OPT_RECURSE (opt & 1) 65 #define OPT_NODEREF (opt & 2) 66 #define OPT_VERBOSE (IF_DESKTOP(opt & 0x04) IF_NOT_DESKTOP(0)) 67 #define OPT_CHANGED (IF_DESKTOP(opt & 0x08) IF_NOT_DESKTOP(0)) 68 #define OPT_QUIET (IF_DESKTOP(opt & 0x10) IF_NOT_DESKTOP(0)) 78 #define OPT_TRAVERSE (IF_DESKTOP(opt & BIT_TRAVERSE) IF_NOT_DESKTOP(0)) 81 #define OPT_TRAVERSE_TOP (IF_DESKTOP(opt & BIT_TRAVERSE_TOP) IF_NOT_DESKTOP(0)) 108 #define opt option_mask32 in fileAction() macro 124 #undef opt in fileAction() 131 int opt, flags; in chown_main() local [all …]
|
D | rm.c | 47 unsigned opt; in rm_main() local 49 opt = getopt32(argv, "^" "fiRrv" "\0" "f-i:i-f"); in rm_main() 51 if (opt & 1) in rm_main() 53 if (opt & 2) in rm_main() 55 if (opt & (8|4)) in rm_main() 57 if ((opt & 16) && FILEUTILS_VERBOSE) in rm_main()
|
D | df.c | 117 unsigned opt; in df_main() local 145 opt = getopt32(argv, "^" in df_main() 158 if (opt & OPT_MEGA) in df_main() 161 if (opt & OPT_BSIZE) { in df_main() 175 if (opt & (OPT_HUMAN|OPT_HUMANDEC)) { in df_main() 182 if (opt & OPT_INODE) in df_main() 190 make_human_readable_str(df_disp_hr, 0, !!(opt & OPT_POSIX)) in df_main() 198 (opt & OPT_FSTYPE) ? "Type " : "", in df_main() 200 (opt & OPT_POSIX) ? "Capacity" : "Use%"); in df_main() 243 if (opt & OPT_t) { in df_main() [all …]
|
D | mkdir.c | 57 unsigned opt; in mkdir_main() local 63 opt = getopt32long(argv, "m:pv" IF_SELINUX("Z:"), in mkdir_main() 74 if (opt & 1) { in mkdir_main() 81 if (opt & 2) in mkdir_main() 83 if ((opt & 4) && FILEUTILS_VERBOSE) in mkdir_main() 86 if (opt & 8) { in mkdir_main()
|
D | expand.c | 71 static void expand(FILE *file, unsigned tab_size, unsigned opt) in expand() argument 106 if ((opt & OPT_INITIAL) && !isblank(c)) { in expand() 133 static void unexpand(FILE *file, unsigned tab_size, unsigned opt) in unexpand() argument 163 if (!(opt & OPT_ALL) && ptr != line) { in unexpand() 194 unsigned opt; in expand_main() local 200 opt = getopt32long(argv, "it:", in expand_main() 206 opt = getopt32long(argv, "^" in expand_main() 216 if (opt & OPT_INITIAL) opt &= ~OPT_ALL; in expand_main() 233 IF_EXPAND(expand(file, tab_size, opt)); in expand_main() 235 IF_UNEXPAND(unexpand(file, tab_size, opt)); in expand_main()
|
D | du.c | 227 unsigned opt; in du_main() local 249 opt = getopt32(argv, "^" in du_main() 255 if (opt & OPT_b) { in du_main() 258 if (opt & OPT_h_for_humans) { in du_main() 261 if (opt & OPT_m_mbytes) { in du_main() 264 if (opt & OPT_k_kbytes) { in du_main() 268 opt = getopt32(argv, "^" in du_main() 275 if (opt & OPT_k_kbytes) { in du_main() 280 if (opt & OPT_H_follow_links) { in du_main() 283 if (opt & OPT_L_follow_links) { in du_main() [all …]
|
D | id.c | 153 unsigned opt; in id_main() local 169 opt = option_mask32 = getopt32(argv, "") | JUST_ALL_GROUPS | NAME_NOT_NUMBER; in id_main() 173 opt = getopt32(argv, "^" in id_main() 195 if (!opt || (opt & JUST_ALL_GROUPS)) { in id_main() 199 if (!opt) { in id_main() 227 if (opt && (groups[i] == rgid || groups[i] == egid)) in id_main() 229 status |= print_group(groups[i], opt ? " " : prefix); in id_main() 245 } else if (opt & PRINT_REAL) { in id_main() 250 if (opt & JUST_USER) in id_main() 252 else if (opt & JUST_GROUP) in id_main() [all …]
|
/busybox-1.35.0/networking/libiproute/ |
D | ip_parse_common_args.c | 41 char *opt = *argv; in ip_parse_common_args() local 43 if (opt[0] != '-') in ip_parse_common_args() 45 opt++; in ip_parse_common_args() 46 if (opt[0] == '-') { in ip_parse_common_args() 47 opt++; in ip_parse_common_args() 48 if (!opt[0]) { /* "--" */ in ip_parse_common_args() 53 arg = index_in_substrings(ip_common_commands, opt); in ip_parse_common_args()
|
/busybox-1.35.0/procps/ |
D | pmap.c | 47 unsigned opt = (uintptr_t)data; in print_smaprec() local 51 if (opt & OPT_x) in print_smaprec() 63 static int procps_get_maps(pid_t pid, unsigned opt) in procps_get_maps() argument 72 if (!(opt & OPT_q) && (opt & OPT_x)) in procps_get_maps() 77 ret = procps_read_smaps(pid, &total, print_smaprec, (void*)(uintptr_t)opt); in procps_get_maps() 81 if (!(opt & OPT_q)) { in procps_get_maps() 82 if (opt & OPT_x) in procps_get_maps()
|
/busybox-1.35.0/networking/ |
D | ssl_client.c | 28 int opt; in ssl_client_main() local 33 opt = getopt32(argv, "es:+r:+n:", &tls->ofd, &tls->ifd, &sni); in ssl_client_main() 34 if (!(opt & (1<<2))) { in ssl_client_main() 39 if (!(opt & (3<<1))) { in ssl_client_main() 54 tls_run_copy_loop(tls, /*flags*/ opt & 1); in ssl_client_main()
|
D | ipcalc.c | 121 unsigned opt; in ipcalc_main() local 133 opt = GETOPT32(argv, "^" in ipcalc_main() 139 if (opt & SILENT) in ipcalc_main() 141 opt &= ~SILENT; in ipcalc_main() 142 if (!(opt & (BROADCAST | NETWORK | NETPREFIX))) { in ipcalc_main() 145 if (!opt || argv[1]) in ipcalc_main() 197 if (opt & NETMASK) { in ipcalc_main() 201 if (opt & BROADCAST) { in ipcalc_main() 206 if (opt & NETWORK) { in ipcalc_main() 212 if (opt & NETPREFIX) { in ipcalc_main() [all …]
|
D | slattach.c | 109 int encap, opt, fd; in slattach_main() local 130 opt = getopt32(argv, "^" "p:s:c:ehmLF" "\0" "=1", in slattach_main() 143 if (opt & OPT_s_baud) { in slattach_main() 166 if (!(opt & OPT_e_quit)) { in slattach_main() 177 if (!(opt & OPT_m_nonraw)) { /* raw not suppressed */ in slattach_main() 184 | ((opt & OPT_L_local) ? CLOCAL : 0) in slattach_main() 185 | ((opt & OPT_F_noflow) ? 0 : CRTSCTS); in slattach_main() 189 if (opt & OPT_s_baud) { in slattach_main() 204 if (opt & OPT_e_quit) in slattach_main() 209 if (!(opt & OPT_h_watch)) in slattach_main() [all …]
|
/busybox-1.35.0/miscutils/ |
D | setfattr.c | 36 int opt; in setfattr_main() local 42 opt = getopt32(argv, "^" in setfattr_main() 53 if (opt & OPT_x) in setfattr_main() 54 r = ((opt & OPT_h) ? lremovexattr : removexattr)(*argv, name); in setfattr_main() 56 r = ((opt & OPT_h) ? lsetxattr : setxattr)( in setfattr_main()
|
D | ts.c | 28 unsigned opt; in ts_main() local 33 opt = getopt32(argv, "^" "is" "\0" "?1" /*max one arg*/); in ts_main() 34 if (opt) { in ts_main() 41 : (char*)(opt ? "%b %d %H:%M:%S"+6 : "%b %d %H:%M:%S"); in ts_main() 60 if (opt) { in ts_main() 63 if (opt & 1) /* -i */ in ts_main() 73 if (opt & 1) /* -i */ in ts_main()
|
/busybox-1.35.0/archival/ |
D | bzip2.c | 167 unsigned opt, level; in IF_DESKTOP() local 177 opt = option_mask32 >> (BBUNPK_OPTSTRLEN IF_FEATURE_BZIP2_DECOMPRESS(+ 2) + 2); in IF_DESKTOP() 179 opt |= 0x100; /* if nothing else, assume -9 */ in IF_DESKTOP() 183 if (opt & 1) break; in IF_DESKTOP() 184 opt >>= 1; in IF_DESKTOP() 214 unsigned opt; in bzip2_main() local 231 opt = getopt32(argv, "^" in bzip2_main() 237 if (opt & (BBUNPK_OPT_DECOMPRESS|BBUNPK_OPT_TEST)) /* -d and/or -t */ in bzip2_main() 242 option_mask32 = opt & ~(BBUNPK_OPT_DECOMPRESS|BBUNPK_OPT_TEST); in bzip2_main()
|
/busybox-1.35.0/coreutils/libcoreutils/ |
D | getopt_mk_fifo_nod.c | 31 int opt; in getopt_mk_fifo_nod() local 32 opt = getopt32(argv, "m:" IF_SELINUX("Z:"), &smode IF_SELINUX(,&scontext)); in getopt_mk_fifo_nod() 33 if (opt & 1) { in getopt_mk_fifo_nod() 41 if (opt & 2) { in getopt_mk_fifo_nod()
|