Searched defs:argc (Results 126 - 150 of 202) sorted by relevance

123456789

/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/core/netcfg/
H A Dnetcfg.c136 int main(int argc, char **argv) argument
145 if(argc == 1) {
151 if(argc < 3) usage();
156 argc -= 2;
158 while(argc > 0) {
165 if(argc < nargs) {
175 argc -= nargs;
/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
174 procargs(argc, argv);
365 dotcmd(int argc, char **argv) argument
369 if (argc >= 2) { /* That's what SVR2 does */
386 exitcmd(int argc, char **argv) argument
390 if (argc > 1)
H A Dmiscbltin.c89 readcmd(int argc, char **argv) argument
214 umaskcmd(int argc, char **argv) argument
339 ulimitcmd(int argc, char **argv) argument
H A Dhistedit.c194 inputrc(argc, argv)
195 int argc;
198 if (argc != 2) {
219 histcmd(int argc, char **argv) argument
246 (void) &argc;
253 if (argc == 1)
258 (ch = getopt(argc, argv, ":e:lnrs")) != -1)
283 argc -= optind, argv += optind;
327 if (lflg == 0 && argc > 0 &&
331 argc
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
92 if (argc > 0)
315 shiftcmd(int argc, char **argv) argument
321 if (argc > 1)
345 setcmd(int argc, char **argv) argument
347 if (argc == 1)
378 getoptscmd(int argc, char **argv) argument
382 if (argc < 3)
384 else if (argc == 3)
H A Dtrap.c132 trapcmd(int argc, char **argv) argument
138 if (argc <= 1) {
/system/core/toolbox/
H A Dcat.c230 cat_main(int argc, char *argv[]) argument
235 while ((ch = getopt(argc, argv, "beflnstv")) != -1)
H A Dlsof.c220 int lsof_main(int argc, char *argv[]) argument
224 if (argc == 2) {
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");
93 if (optind < argc) {
H A Dnetstat.c146 int netstat_main(int argc, char *argv[]) argument
H A Dsendevent.c48 int sendevent_main(int argc, char *argv[]) argument
56 if(argc != 5) {
H A Ddu.c72 du_main(int argc, char *argv[]) argument
86 while ((ch = getopt(argc, argv, "HLPacd:ghkmnrsx")) != -1)
138 argc -= optind;
H A Diftop.c226 int iftop_main(int argc, char *argv[]) argument
232 for (i = 1; i < argc; i++) {
234 if (i >= argc - 1) {
244 if (i >= argc - 1) {
/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/fatblock/
H A Dfatblock.c150 int main(int argc, char *argv[]) { argument
161 if (argc != 3)
/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/netd/
H A DNatController.cpp97 int NatController::enableNat(const int argc, char **argv) { argument
112 if (argc < 5 + addrCount) {
218 int NatController::disableNat(const int argc, char **argv) { argument
232 if (argc < 5 + addrCount) {
H A Dlogwrapper.c92 void child(int argc, const char**argv) { argument
94 char* argv_child[argc + 1];
95 memcpy(argv_child, argv, argc * sizeof(char *));
96 argv_child[argc] = NULL;
106 int logwrap(int argc, const char* argv[]) argument
150 child(argc, argv);
/system/bluetooth/tools/
H A Dpipetest.c414 int main(int argc, char **argv) { argument
417 if (argc != 2) {
H A Dsock_shutdown_test.c287 int main(int argc, char **argv) { argument
291 if (argc != 3) {
/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/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)

Completed in 90 milliseconds

123456789