HomeSort by relevance Sort by last modified time
    Searched full:optargs (Results 1 - 25 of 211) sorted by null

1 2 3 4 5 6 7 8 9

  /external/toybox/toys/other/
pwdx.c 20 char **optargs; local
22 for (optargs = toys.optargs; *optargs; optargs++) {
26 path = xmprintf("/proc/%s/cwd", *optargs);
37 xprintf("%s: %s\n", *optargs, path);
insmod.c 24 int fd = !strcmp(*toys.optargs, "-") ? 0 : xopen(*toys.optargs, O_RDONLY);
28 while (toys.optargs[i] &&
29 strlen(toybuf) + strlen(toys.optargs[i]) + 2 < sizeof(toybuf))
31 strcat(toybuf, toys.optargs[i++]);
40 char *path = !strcmp(*toys.optargs, "-") ? "/dev/stdin" : *toys.optargs;
47 if (rc) perror_exit("failed to load %s", toys.optargs[0]);
vconfig.c 40 cmd = toys.optargs[0];
47 for (i=0; i<j; i++) if (!strcmp(toys.optargs[1], types[i])) break;
50 error_exit("%s: unknown '%s'", cmd, toys.optargs[1]);
60 xstrncpy(request.device1, toys.optargs[1], 16);
64 if (toys.optargs[2]) request.u.VID = atolx_range(toys.optargs[2], 0, 4094);
70 if (toys.optargs[2]) request.u.flag = atolx_range(toys.optargs[2], 0, 1);
71 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7)
    [all...]
chroot.c 27 if (chdir(*toys.optargs) || chroot(".")) perror_exit_raw(*toys.optargs);
28 if (toys.optargs[1]) xexec(toys.optargs+1);
pivot_root.c 30 if (syscall(__NR_pivot_root, toys.optargs[0], toys.optargs[1]))
31 perror_exit("'%s' -> '%s'", toys.optargs[0], toys.optargs[1]);
freeramdisk.c 24 fd = xopen(toys.optargs[0], O_RDWR);
25 xioctl(fd, BLKFLSBUF, toys.optargs[0]);
realpath.c 20 char **s = toys.optargs;
22 for (s = toys.optargs; *s; s++) {
rfkill.c 35 char **optargs = toys.optargs; local
39 if (!strcmp((char *[]){"list", "block", "unblock"}[tvar], *optargs)) break;
40 if (tvar == 3) error_exit("unknown cmd '%s'", *optargs);
52 if (!*++optargs) error_exit("'%s' needs IDENTIFIER", optargs[-1]);
54 if (!strcmp(rftypes[i].name, *optargs)) break;
55 if (i == ARRAY_LEN(rftypes)) idx = atolx_range(*optargs, 0, INT_MAX);
swapon.c 33 if (swapon(*toys.optargs, flags))
34 perror_exit("Couldn't swapon '%s'", *toys.optargs);
yes.c 22 for (i=0; toys.optargs[i]; i++) {
24 xprintf("%s", toys.optargs[i]);
swapoff.c 20 if (swapoff(toys.optargs[0])) perror_exit("failed to remove swaparea");
usleep.c 21 long delay = atol(*toys.optargs);
  /external/toybox/toys/posix/
link.c 22 if (link(toys.optargs[0], toys.optargs[1]))
23 perror_exit("couldn't link '%s' to '%s'", toys.optargs[1],
24 toys.optargs[0]);
unlink.c 22 if (unlink(*toys.optargs))
23 perror_exit("Couldn't unlink `%s'", *toys.optargs);
basename.c 23 char *base = basename(*toys.optargs), *suffix = toys.optargs[1];
  /external/toybox/toys/pending/
test.c 49 if (!strcmp("]", toys.optargs[--toys.optc])) error_exit("Missing ']'");
50 if (!strcmp("!", toys.optargs[0])) {
52 toys.optargs++;
56 else if (toys.optargs[0][0] == '-') {
57 id = stridx("bcdefghLpSsurwxznt", toys.optargs[0][1]);
58 if (id == -1 || toys.optargs[0][2]) error_exit(err_fmt, toys.optargs[0]);
64 if (lstat(toys.optargs[1], &st) == -1) return;
66 if (!nolink && (stat(toys.optargs[1], &st) == -1)) return;
81 toys.exitval = access(toys.optargs[1], 1 << (id - 12)) == -1
    [all...]
groupadd.c 52 entry = xmprintf("%s:%s:%d:", *toys.optargs, "x", TT.gid);
53 update_password(GROUP_PATH, *toys.optargs, entry);
55 entry = xmprintf("%s:%s::", *toys.optargs, "!");
56 update_password(SECURE_GROUP_PATH, *toys.optargs, entry);
69 //toys.optargs[0]- user, toys.optargs[1] - group
70 xgetpwnam(*toys.optargs);
71 if (!(grp = getgrnam(toys.optargs[1])))
72 error_exit("group '%s' does not exist", toys.optargs[1]);
73 if (!grp->gr_mem) entry = xmprintf("%s", *toys.optargs);
    [all...]
groupdel.c 25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]);
33 xgetpwnam(*toys.optargs);
35 if (!found && !strcmp(*toys.optargs, grp->gr_mem[i])) found++;
39 error_exit("user '%s' not in group '%s'", *toys.optargs, toys.optargs[1]);
more.c 80 loopfiles(toys.optargs, do_cat_operation);
98 if (*toys.optargs && !(fp = fopen(*toys.optargs, "r"))) {
99 perror_msg("%s", *toys.optargs);
108 show_file_header(*toys.optargs);
138 if (*toys.optargs && *++toys.optargs) {
139 input_key = prompt(cin, "--More--(Next file: %s)", *toys.optargs);
142 } while (*toys.optargs);
logger.c 58 for (;*toys.optargs; toys.optargs++) {
59 length += strlen(*(toys.optargs)) + 1; // plus one for the args spacing
62 sprintf(message + pos, "%s ", *toys.optargs);
watch.c 32 char *header, *cmd = *toys.optargs;
35 while(toys.optargs[++i])
38 cmd = xmprintf("%s %s", oldcmd, toys.optargs[i]);
68 if (cmd != *toys.optargs) free(cmd);
  /external/toybox/toys/lsb/
mknod.c 44 type = stridx("pcub", *toys.optargs[1]);
45 if (type == -1) perror_exit("bad type '%c'", *toys.optargs[1]);
49 major = atoi(toys.optargs[2]);
50 minor = atoi(toys.optargs[3]);
56 if (mknod(*toys.optargs, mode|modes[type], makedev(major, minor)))
57 perror_exit_raw(*toys.optargs);
su.c 48 if (*toys.optargs && !strcmp("-", *toys.optargs)) {
50 toys.optargs++;
53 if (*toys.optargs) name = *(toys.optargs++);
93 while ((*(argv++) = *(toys.optargs++)));
  /external/toybox/toys/android/
runcon.c 22 char *context = *toys.optargs;
27 xexec(++toys.optargs);
  /external/toybox/toys/example/
test_human_readable.c 21 human_readable(toybuf, strtoll(*toys.optargs, &c, 0), toys.optflags);

Completed in 2474 milliseconds

1 2 3 4 5 6 7 8 9