/external/toybox/toys/posix/ |
dirname.c | 22 puts(dirname(*toys.optargs));
|
head.c | 53 char *arg = *toys.optargs; 60 loopfiles(toys.optargs+!!arg, do_head);
|
/external/toybox/toys/pending/ |
arp.c | 146 resolve_host(toys.optargs[0], &sa); 162 if (!toys.optargs[1]) error_exit("bad syntax"); 164 if (!(toys.optflags & FLAG_D)) get_hw_add(toys.optargs[1], (char*)&req.arp_ha.sa_data); 168 xstrncpy(ifre.ifr_name, toys.optargs[1], IFNAMSIZ); 176 if (toys.optargs[2]) check_flags(&flags, (toys.optargs+2)); 181 if (toys.optflags & FLAG_v) xprintf("Entry set for %s\n", toys.optargs[0]); 205 if (toys.optargs[1]) check_flags(&flags, (toys.optargs+1)); 210 if (toys.optflags & FLAG_v) xprintf("Delete entry for %s\n", toys.optargs[0]) [all...] |
sulogin.c | 88 if (toys.optargs[0]) { 91 dup2((fd = xopen(toys.optargs[0], O_RDWR)), 0); 92 if (!isatty(0)) error_exit("%s: it is not a tty", toys.optargs[0]);
|
/external/toybox/toys/android/ |
getprop.c | 78 if (*toys.optargs) { 80 char *context = get_property_context(*toys.optargs); 85 property_get(*toys.optargs, toybuf, toys.optargs[1] ? toys.optargs[1] : "");
|
load_policy.c | 22 char *path = *toys.optargs;
|
setprop.c | 26 char *name = toys.optargs[0], *value = toys.optargs[1];
|
setenforce.c | 22 char *new = *toys.optargs;
|
/external/toybox/toys/example/ |
skeleton.c | 67 char **optargs; local 82 for (optargs = toys.optargs; *optargs; optargs++) 83 printf("optarg=%s\n", *optargs);
|
/external/toybox/toys/other/ |
pmap.c | 27 char **optargs; local 29 for (optargs = toys.optargs; *optargs; optargs++) { 30 pid_t pid = atolx(*optargs);
|
taskset.c | 49 char *s = *toys.optargs, *failed = "failed to %s %d's affinity"; 76 k = strlen(s = *toys.optargs); 82 if (digit > 15) error_exit("bad mask '%s'", *toys.optargs); 104 xexec(toys.optargs+1); 107 pid_t pid = strtol(toys.optargs[toys.optc-1], &c, 10); 109 if (*c) error_exit("Not int %s", toys.optargs[1]);
|
help.c | 55 if (*toys.optargs && !(t = toy_find(*toys.optargs))) 56 error_exit("Unknown command '%s'", *toys.optargs);
|
fallocate.c | 28 int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644);
|
fsfreeze.c | 26 int fd = xopen(*toys.optargs, O_RDONLY);
|
mkpasswd.c | 40 TT.salt = toys.optargs[1]; 61 if (!*toys.optargs) { 76 xprintf("%s\n",crypt(*toys.optargs ? *toys.optargs : toybuf, salt));
|
partprobe.c | 29 loopfiles(toys.optargs, do_partprobe);
|
setsid.c | 27 xexec(toys.optargs);
|
chcon.c | 26 char *path, *con = *toys.optargs; 43 for (file = toys.optargs+1; *file; file++) dirtree_read(*file, do_chcon);
|
readlink.c | 33 s = xabspath(*toys.optargs, toys.optflags & FLAG_e); 34 else s = xreadlink(*toys.optargs);
|
which.c | 66 for (i=0; toys.optargs[i]; i++) 67 toys.exitval |= which_in_path(toys.optargs[i]);
|
inotifyd.c | 40 char *prog_args[5], **ss = toys.optargs; 45 *prog_args = *toys.optargs; 67 // is the toys.optargs position of the file. (0 is program to run.) 102 toys.optargs[event->wd], event->name); 105 prog_args[2] = toys.optargs[event->wd];
|
mountpoint.c | 24 if (!(toys.optflags & FLAG_q)) printf("%s: not a %s\n", *toys.optargs, gripe); 33 char *arg = *toys.optargs; 62 printf("%s is %sa mountpoint\n", *toys.optargs, toys.exitval ? "not " : "");
|
flock.c | 28 int fd = xstrtol(*toys.optargs, NULL, 10), op;
|
/external/toybox/toys/lsb/ |
hostname.c | 23 const char *hostname = toys.optargs[0];
|
umount.c | 109 char **optargs, *pm = "/proc/mounts"; local 137 } else for (optargs = toys.optargs; *optargs; optargs++) { 138 char *abs = xabspath(*optargs, 0); 149 do_umount(abs ? abs : *optargs, ml ? ml->device : 0, flags);
|