Searched refs:argc (Results 126 - 150 of 219) sorted by relevance

123456789

/system/core/toolbox/
H A Dnotify.c11 int notify_main(int argc, char *argv[]) argument
30 c = getopt(argc, argv, "m:c:pv:w:");
56 if (argc <= optind) {
67 file_count = argc - optind;
H A Dmount.c276 int mount_main(int argc, char *argv[]) argument
289 if (argc == 1) return print_mounts();
292 c = getopt(argc, argv, "o:rt:w");
322 if (optind + 2 == argc) {
325 } else if (optind + 1 == argc && rwflag & MS_REMOUNT) {
H A Dvmstat.c72 int vmstat_main(int argc, char *argv[]) { argument
82 for (i = 1; i < argc; i++) {
84 if (i >= argc - 1) {
92 if (i >= argc - 1) {
100 if (i >= argc - 1) {
H A Dsendevent.c48 int sendevent_main(int argc, char *argv[]) argument
56 if(argc != 5) {
H A Dsetconsole.c31 int setconsole_main(int argc, char *argv[]) argument
45 c = getopt(argc, argv, "d:gtncv:poh");
H A Dwipe.c39 int wipe_main (int argc, char *argv[]) argument
43 if (argc != 2) return usage();
/system/extras/micro_bench/
H A Dmicro_bench.c180 int main(int argc, char **argv) { argument
184 if (argc < 3 || argc > 4) {
188 if (argc == 3) {
/system/extras/tests/bionic/libstdc++/
H A Dtest_cctype.cpp97 int main(int argc, char **argv) argument
H A Dtest_cstddef.cpp97 int main(int argc, char **argv) argument
H A Dtest_cstdlib.cpp116 int main(int argc, char **argv) argument
H A Dtest_cstring.cpp73 int main(int argc, char **argv) argument
H A Dtest_ctime.cpp105 int main(int argc, char **argv) argument
/system/core/libsparse/
H A Dsimg2simg.c42 int main(int argc, char *argv[]) argument
54 if (argc != 4) {
/system/extras/tests/ext4/
H A Dcorrupt_gdt_free_blocks.c12 int main(int argc, char *argv[]) argument
22 if (argc != 2) {
/system/netd/
H A DTetherController.cpp219 int argc = 0; local
220 args[argc++] = "/system/bin/dhcpcd";
224 args[argc++] = "-h";
225 args[argc++] = host_name;
227 args[argc++] = (char*)iface;
228 args[argc] = NULL;
/system/core/gpttool/
H A Dgpttool.c252 int main(int argc, char **argv) argument
264 if (argc < 2)
268 if (argc < 3)
271 argc -= 2;
275 argc -= 1;
320 while (argc > 1) {
352 argc--;
/system/core/toolbox/cp/
H A Dcp.c106 cp_main(int argc, char *argv[]) argument
119 while ((ch = getopt(argc, argv, "HLNPRfailprv")) != -1)
170 argc -= optind;
173 if (argc < 2)
211 target = argv[--argc];
221 argv[argc] = NULL;
253 if (argc > 1)
/system/core/mkbootimg/
H A Dmkbootimg.c95 int main(int argc, char **argv) argument
118 argc--;
123 while(argc > 0){
126 if(argc < 2) {
129 argc -= 2;
/system/extras/ext4_utils/
H A Dext2simg.c178 int main(int argc, char **argv) argument
188 while ((opt = getopt(argc, argv, "cvzS")) != -1) {
205 if (optind >= argc) {
213 if (optind >= argc) {
221 if (optind < argc) {
/system/extras/procmem/
H A Dprocmem.c41 int main(int argc, char *argv[]) { argument
77 if (argc < 2) {
85 for (i = 1; i < argc - 1; i++) {
96 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10);
98 fprintf(stderr, "Invalid PID \"%s\".\n", argv[argc - 1]);
/system/core/sh/
H A Dalias.c209 aliascmd(int argc, char **argv) argument
215 if (argc == 1) {
248 unaliascmd(int argc, char **argv) argument
/system/core/cpio/
H A Dmkbootfs.c322 int main(int argc, char *argv[]) argument
324 argc--;
327 if (argc > 1 && strcmp(argv[0], "-f") == 0) {
329 argc -= 2;
333 if(argc == 0) die("no directories to process?!");
335 while(argc-- > 0){
/system/extras/latencytop/
H A Dlatencytop.c68 int main(int argc, char *argv[]) { argument
79 for (i = 1; i < argc; i++) {
81 if (i >= argc - 1) {
89 if (i >= argc - 1) {
101 if (i >= argc - 1) {
109 if (i >= argc - 1) {
/system/extras/sound/
H A Dplaywav.c329 int main(int argc, char **argv) argument
336 argc--;
338 while (argc > 0) {
348 argc--;
350 if (argc == 0) {
358 argc--;
/system/bluetooth/brfpatch/
H A Dbrfpatch.c166 int main(int argc, char **argv) { argument
168 if (argc != 3)

Completed in 116 milliseconds

123456789