Searched defs:argv (Results 126 - 150 of 199) sorted by relevance

12345678

/system/core/sh/
H A Dcd.c79 cdcmd(int argc, char **argv) argument
308 pwdcmd(int argc, char **argv) argument
H A Dmain.c101 main(int argc, char **argv) argument
168 trputs("Shell args: "); trargs(argv);
174 procargs(argc, argv);
175 if (argv[0] && argv[0][0] == '-') {
365 dotcmd(int argc, char **argv) argument
374 fullname = find_dot_file(argv[1]);
386 exitcmd(int argc, char **argv) argument
391 exitstatus = number(argv[1]);
H A Dmiscbltin.c89 readcmd(int argc, char **argv) argument
214 umaskcmd(int argc, char **argv) argument
270 error("Illegal number: %s", argv[1]);
339 ulimitcmd(int argc, char **argv) argument
H A Dhistedit.c194 inputrc(argc, argv)
196 char **argv;
203 if (el_source(el, argv[1])) {
219 histcmd(int argc, char **argv) argument
247 (void) &argv;
257 while (not_fcnumber(argv[optind]) &&
258 (ch = getopt(argc, argv, ":e:lnrs")) != -1)
283 argc -= optind, argv += optind;
328 ((repl = strchr(argv[0], '=')) != NULL)) {
329 pat = argv[
529 histcmd(int argc, char **argv) argument
535 inputrc(int argc, char **argv) argument
[all...]
H A Doptions.c87 procargs(int argc, char **argv) argument
91 argptr = argv;
109 arg0 = argv[0];
111 commandname = argv[0];
272 setparam(char **argv) argument
278 for (nparam = 0 ; argv[nparam] ; nparam++);
280 while (*argv) {
281 *ap++ = savestr(*argv++);
315 shiftcmd(int argc, char **argv) argument
322 n = number(argv[
345 setcmd(int argc, char **argv) argument
378 getoptscmd(int argc, char **argv) argument
[all...]
H A Dtrap.c132 trapcmd(int argc, char **argv) argument
148 ap = argv + 1;
/system/core/toolbox/
H A Dcat.c125 cook_args(char **argv) argument
132 if (*argv) {
133 if (!strcmp(*argv, "-"))
135 else if ((fp = fopen(*argv,
139 ++argv;
142 filename = *argv++;
147 } while (*argv);
187 raw_args(char **argv) argument
194 if (*argv) {
195 if (!strcmp(*argv, "
230 cat_main(int argc, char *argv[]) argument
[all...]
H A Dlsof.c220 int lsof_main(int argc, char *argv[]) argument
225 pid = strtol(argv[1], &endptr, 10);
H A Dlsusb.c204 int lsusb_main(int argc, char **argv) argument
208 if (argc == 2 && !strcmp(argv[1], "-v"))
H A Dnandread.c21 int nandread_main(int argc, char **argv) argument
50 c = getopt(argc, argv, "d:f:s:S:L:Rhv");
84 " -h Print help\n", argv[0]);
88 argv[0], optopt);
94 fprintf(stderr, "%s: extra arguments\n", argv[0]);
98 fprintf(stderr, "%s: specify device name\n", argv[0]);
H A Dnetstat.c146 int netstat_main(int argc, char *argv[]) argument
H A Dsendevent.c48 int sendevent_main(int argc, char *argv[]) argument
57 fprintf(stderr, "use: %s device type code value\n", argv[0]);
61 fd = open(argv[1], O_RDWR);
63 fprintf(stderr, "could not open %s, %s\n", argv[optind], strerror(errno));
67 fprintf(stderr, "could not get driver version for %s, %s\n", argv[optind], strerror(errno));
71 event.type = atoi(argv[2]);
72 event.code = atoi(argv[3]);
73 event.value = atoi(argv[4]);
H A Ddu.c72 du_main(int argc, char *argv[]) argument
86 while ((ch = getopt(argc, argv, "HLPacd:ghkmnrsx")) != -1)
139 argv += optind;
171 if (!*argv) {
174 argv = __UNCONST(noargv);
181 if ((fts = fts_open(argv, ftsoptions, NULL)) == NULL)
182 err(1, "fts_open `%s'", *argv);
H A Diftop.c226 int iftop_main(int argc, char *argv[]) argument
233 if (!strcmp(argv[i], "-d")) {
238 delay = atoi(argv[i++]);
243 if (!strcmp(argv[i], "-r")) {
248 header_interval = atoi(argv[i++]);
253 if (!strcmp(argv[i], "-h")) {
254 usage(argv[0]);
257 usage(argv[0]);
H A Dls.c441 int ls_main(int argc, char **argv) argument
452 if (argv[i][0] == '-') {
454 const char *arg = argv[i]+1;
473 strlist_append_dup(&files, argv[i]);
/system/extras/ext4_utils/
H A Dext2simg.c178 int main(int argc, char **argv) argument
188 while ((opt = getopt(argc, argv, "cvzS")) != -1) {
207 usage(argv[0]);
211 in = argv[optind++];
215 usage(argv[0]);
219 out = argv[optind++];
222 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]);
223 usage(argv[0]);
/system/extras/fatblock/
H A Dfatblock.c150 int main(int argc, char *argv[]) { argument
164 path = argv[1];
165 mb = atoi(argv[2]);
/system/extras/micro_bench/
H A Dmicro_bench.c180 int main(int argc, char **argv) { argument
191 iters = atoi(argv[3]);
194 if (!strcmp(argv[1], function_table[i].name)) {
196 return (*function_table[i].ptr)(iters, atoi(argv[2]));
/system/netd/
H A DNatController.cpp97 int NatController::enableNat(const int argc, char **argv) { argument
100 int addrCount = atoi(argv[4]);
102 const char *intIface = argv[2];
103 const char *extIface = argv[3];
121 ret |= secondaryTableCtrl->modifyFromRule(tableNumber, ADD, argv[5+i]);
123 ret |= secondaryTableCtrl->modifyLocalRoute(tableNumber, ADD, intIface, argv[5+i]);
131 secondaryTableCtrl->modifyLocalRoute(tableNumber, DEL, intIface, argv[5+i]);
133 secondaryTableCtrl->modifyFromRule(tableNumber, DEL, argv[5+i]);
157 secondaryTableCtrl->modifyLocalRoute(tableNumber, DEL, intIface, argv[5+i]);
159 secondaryTableCtrl->modifyFromRule(tableNumber, DEL, argv[
218 disableNat(const int argc, char **argv) argument
[all...]
H A Dlogwrapper.c92 void child(int argc, const char**argv) {
95 memcpy(argv_child, argv, argc * sizeof(char *));
106 int logwrap(int argc, const char* argv[]) argument
150 child(argc, argv);
155 int rc = parent(argv[0], parent_ptty);
204 int fork_and_execve(const char* filename, char* argv[]) { argument
219 execve(filename, argv, environ);
/system/bluetooth/tools/
H A Dpipetest.c414 int main(int argc, char **argv) { argument
422 if (!strcmp(argv[1], function_table[i].name)) {
H A Dsock_shutdown_test.c287 int main(int argc, char **argv) { argument
296 if (!strcmp(argv[1], type_table[i].name)) {
306 if (!strcmp(argv[2], action_table[i].name)) {
/system/core/cpio/
H A Dmkbootfs.c322 int main(int argc, char *argv[]) argument
325 argv++;
327 if (argc > 1 && strcmp(argv[0], "-f") == 0) {
328 read_canned_config(argv[1]);
330 argv += 2;
336 char *x = strchr(*argv, '=');
343 archive(*argv, x);
345 argv++;
/system/core/toolbox/cp/
H A Dcp.c106 cp_main(int argc, char *argv[]) argument
114 setprogname(argv[0]);
119 while ((ch = getopt(argc, argv, "HLNPRfailprv")) != -1)
171 argv += optind;
211 target = argv[--argc];
221 argv[argc] = NULL;
264 r = stat(*argv, &tmp_stat);
266 r = lstat(*argv, &tmp_stat);
268 err(EXIT_FAILURE, "%s", *argv);
297 for (src = argv; *sr
328 copy(char *argv[], enum op type, int fts_options) argument
[all...]
/system/core/toolbox/grep/
H A Dutil.c112 grep_tree(char **argv) argument
136 if (!(fts = fts_open(argv, fts_flags, NULL)))

Completed in 67 milliseconds

12345678