/external/dropbear/ |
dropbearconvert.c | 56 int dropbearconvert_main(int argc, char ** argv) { 58 int main(int argc, char ** argv) { 77 if (argv[1][0] == 'd') { 79 } else if (argv[1][0] == 'o') { 87 if (argv[2][0] == 'd') { 89 } else if (argv[2][0] == 'o') { 99 infile = argv[3]; 100 outfile = argv[4]; 105 printhelp(argv[0]);
|
/external/grub/lib/ |
getopt.c | 98 As `getopt' works, it permutes the elements of ARGV so that, 114 each non-option ARGV-element is returned here. */ 118 /* Index in ARGV of the next element to be scanned. 128 how much of ARGV has been scanned so far. */ 144 by advancing to the next ARGV-element. */ 159 /* Describe how to deal with options that follow non-option ARGV-elements. 172 PERMUTE is the default. We permute the contents of ARGV as we scan, 178 to expect options and other ARGV-elements in any order and that care about 179 the ordering of the two. We describe each non-option ARGV-element 250 /* Describe the part of ARGV that contains non-options that hav [all...] |
getopt.h | 33 each non-option ARGV-element is returned here. */ 37 /* Index in ARGV of the next element to be scanned. 47 how much of ARGV has been scanned so far. */ 106 extern int getopt (int argc, char *const *argv, const char *shortopts); 110 extern int getopt_long (int argc, char *const *argv, const char *shortopts, 112 extern int getopt_long_only (int argc, char *const *argv, 117 extern int _getopt_internal (int argc, char *const *argv,
|
/external/icu4c/tools/toolutil/ |
uoptions.c | 24 u_parseArgs(int argc, char* argv[], 31 arg=argv[i]; 58 if(i+1<argc && !(argv[i+1][0]=='-' && argv[i+1][1]!=0)) { 59 /* argument in the next argv[], and there is not an option in there */ 60 option->value=argv[++i]; 87 /* argument following in the same argv[] */ 91 } else if(i+1<argc && !(argv[i+1][0]=='-' && argv[i+1][1]!=0)) { 92 /* argument in the next argv[], and there is not an option in there * [all...] |
/external/srec/shared/include/ |
ESR_CommandLine.h | 40 * @param argv Value of arguments 48 ESR_SHARED_API ESR_ReturnCode ESR_CommandLineGetValue(int argc, const LCHAR* argv[],
|
/frameworks/base/cmds/backup/ |
backup.cpp | 29 usage(int argc, const char** argv) 31 const char* p = argv[0]; 105 main(int argc, const char** argv) 110 if (argc == 3 && 0 == strcmp(argv[1], "list")) { 111 return perform_list(argv[2]); 113 if (argc == 4 && 0 == strcmp(argv[1], "print")) { 114 return perform_print(argv[2], argv[3]); 116 return usage(argc, argv);
|
/frameworks/base/cmds/surfaceflinger/ |
main_surfaceflinger.cpp | 22 int main(int argc, char** argv) {
|
/hardware/ril/rild/ |
radiooptions.c | 55 static int error_check(int argc, char * argv[]) { 59 const int option = atoi(argv[1]); 70 static int get_number_args(char *argv[]) { 71 const int option = atoi(argv[1]); 79 int main(int argc, char *argv[]) 84 if(error_check(argc, argv)) { 97 num_socket_args = get_number_args(argv); 107 int len = strlen(argv[1 + i]); 114 ret = send(fd, argv[1 + i], sizeof(char) * len, 0);
|
/system/core/toolbox/ |
chmod.c | 11 int chmod_main(int argc, char **argv) 21 const char* s = argv[1]; 33 if (chmod(argv[i], mode) < 0) { 34 fprintf(stderr, "Unable to chmod %s: %s\n", argv[i], strerror(errno));
|
rmmod.c | 11 int rmmod_main(int argc, char **argv) 25 modname = strrchr(argv[1], '/'); 27 modname = argv[1]; 28 dot = strchr(argv[1], '.');
|
/system/extras/ext4_utils/ |
make_ext4fs_main.c | 40 int main(int argc, char **argv) 50 while ((opt = getopt(argc, argv, "l:j:b:g:i:I:L:a:fzJs")) != -1) { 90 usage(argv[0]); 97 usage(argv[0]); 103 usage(argv[0]); 107 filename = argv[optind++]; 110 directory = argv[optind++]; 113 fprintf(stderr, "Unexpected argument: %s\n", argv[optind]); 114 usage(argv[0]);
|
/system/extras/su/ |
su.c | 42 int main(int argc, char **argv) 50 pw = getpwnam(argv[1]); 53 uid = gid = atoi(argv[1]); 74 if (execlp(argv[2], argv[2], NULL) < 0) { 75 fprintf(stderr, "su: exec failed for %s Error:%s\n", argv[2], 83 memcpy(exec_args, &argv[2], sizeof(exec_args)); 84 if (execvp(argv[2], exec_args) < 0) { 85 fprintf(stderr, "su: exec failed for %s Error:%s\n", argv[2],
|
/system/extras/tests/bionic/libc/other/ |
test_arc4random.c | 30 int main(int argc, char *argv[])
|
/system/extras/tests/bionic/libstdc++/ |
test_cassert.cpp | 46 int main(int argc, char **argv)
|
/system/netd/ |
CommandListener.h | 50 int runCommand(SocketClient *c, int argc, char ** argv); 57 int runCommand(SocketClient *c, int argc, char ** argv); 64 int runCommand(SocketClient *c, int argc, char ** argv); 71 int runCommand(SocketClient *c, int argc, char ** argv); 78 int runCommand(SocketClient *c, int argc, char ** argv); 85 int runCommand(SocketClient *c, int argc, char ** argv); 92 int runCommand(SocketClient *c, int argc, char ** argv); 99 int runCommand(SocketClient *c, int argc, char ** argv); 106 int runCommand(SocketClient *c, int argc, char ** argv);
|
/frameworks/base/media/libstagefright/codecs/aacenc/SampleCode/ |
AAC_E_SAMPLES.c | 48 static int parsecmdline(int argc, char **argv,char **input_filename, char **output_filename, AACENC_PARAM *param)
65 argv++;
68 if (!strcmp(*argv, "-if"))
70 argv++;
72 *input_filename = *argv;
74 else if (!strcmp(*argv, "-of"))
76 argv++;
78 *output_filename = *argv;
80 else if (!strcmp(*argv, "-sr"))
82 argv++; [all...] |
/external/iproute2/ip/ |
iplink_can.c | 93 static int can_parse_opt(struct link_util *lu, int argc, char **argv, 101 if (matches(*argv, "bitrate") == 0) { 103 if (get_u32(&bt.bitrate, *argv, 0)) 104 invarg("invalid \"bitrate\" value\n", *argv); 105 } else if (matches(*argv, "sample-point") == 0) { 109 if (get_float(&sp, *argv)) 111 *argv); 113 } else if (matches(*argv, "tq") == 0) { 115 if (get_u32(&bt.tq, *argv, 0)) 116 invarg("invalid \"tq\" value\n", *argv); [all...] |
ipmroute.c | 162 static int mroute_list(int argc, char **argv) 165 if (strcmp(*argv, "iif") == 0) { 167 strncpy(filter_dev, *argv, sizeof(filter_dev)-1); 168 } else if (matches(*argv, "from") == 0) { 170 get_prefix(&filter.msrc, *argv, AF_INET); 172 if (strcmp(*argv, "to") == 0) { 175 if (matches(*argv, "help") == 0) 177 get_prefix(&filter.mdst, *argv, AF_INET); 179 argv++; argc--; 187 int do_multiroute(int argc, char **argv) [all...] |
iptunnel.c | 49 static int parse_args(int argc, char **argv, int cmd, struct ip_tunnel_parm *p) 66 if (strcmp(*argv, "mode") == 0) { 68 if (strcmp(*argv, "ipip") == 0 || 69 strcmp(*argv, "ip/ip") == 0) { 75 } else if (strcmp(*argv, "gre") == 0 || 76 strcmp(*argv, "gre/ip") == 0) { 82 } else if (strcmp(*argv, "sit") == 0 || 83 strcmp(*argv, "ipv6/ip") == 0) { 89 } else if (strcmp(*argv, "isatap") == 0) { 100 } else if (strcmp(*argv, "key") == 0) [all...] |
rtmon.c | 67 main(int argc, char **argv) 79 if (matches(argv[1], "-family") == 0) { 81 argv++; 84 if (strcmp(argv[1], "inet") == 0) 86 else if (strcmp(argv[1], "inet6") == 0) 88 else if (strcmp(argv[1], "link") == 0) 90 else if (strcmp(argv[1], "help") == 0) 93 fprintf(stderr, "Protocol ID \"%s\" is unknown, try \"rtmon help\".\n", argv[1]); 96 } else if (strcmp(argv[1], "-4") == 0) { 98 } else if (strcmp(argv[1], "-6") == 0) [all...] |
xfrm_state.c | 178 char **argv = *argvp; local 180 if (get_u32(seq, *argv, 0)) 181 invarg("\"SEQ\" is invalid", *argv); 186 *argvp = argv; 194 char **argv = *argvp; local 195 int len = strlen(*argv); 197 if (len > 2 && strncmp(*argv, "0x", 2) == 0) { 200 if (get_u8(&val, *argv, 16)) 201 invarg("\"FLAG\" is invalid", *argv); 205 if (strcmp(*argv, "noecn") == 0 [all...] |
/external/iproute2/tc/ |
q_gred.c | 51 static int init_gred(struct qdisc_util *qu, int argc, char **argv, 61 DPRINTF(stderr,"init_gred: invoked with %s\n",*argv); 62 if (strcmp(*argv, "DPs") == 0) { 64 DPRINTF(stderr,"init_gred: next_arg with %s\n",*argv); 65 dps = strtol(*argv, (char **)NULL, 10); 73 } else if (strcmp(*argv, "default") == 0) { 75 def_dp = strtol(*argv, (char **)NULL, 10); 87 } else if (strcmp(*argv, "grio") == 0) { 89 } else if (strcmp(*argv, "help") == 0) { 93 fprintf(stderr, "What is \"%s\"?\n", *argv); [all...] |
m_mirred.c | 71 char **argv = *argv_p; local 82 if (matches(*argv, "action") == 0) { 84 } else if (matches(*argv, "egress") == 0) { 90 if (matches(*argv, "index") == 0) { 92 if (get_u32(&p.index, *argv, 10)) { 99 argv++; 103 fprintf(stderr, "was expecting egress (%s)\n", *argv); 106 } else if (!mirror && matches(*argv, "mirror") == 0) { 115 } else if (!redir && matches(*argv, "redirect") == 0) { 124 } else if ((redir || mirror) && matches(*argv, "dev") == 0) 218 char **argv = *argv_p; local [all...] |
tc.c | 63 static int parse_noqopt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) 66 fprintf(stderr, "Unknown qdisc \"%s\", hence option \"%s\" is unparsable\n", qu->id, *argv); 82 static int parse_nofopt(struct filter_util *qu, char *fhandle, int argc, char **argv, struct nlmsghdr *n) 87 fprintf(stderr, "Unknown filter \"%s\", hence option \"%s\" is unparsable\n", qu->id, *argv); 221 static int do_cmd(int argc, char **argv) 223 if (matches(*argv, "qdisc") == 0) 224 return do_qdisc(argc-1, argv+1); 226 if (matches(*argv, "class") == 0) 227 return do_class(argc-1, argv+1); 229 if (matches(*argv, "filter") == 0 [all...] |
/external/openssl/apps/ |
ec.c | 86 int MAIN(int argc, char **argv) 122 prog = argv[0]; 124 argv++; 127 if (strcmp(*argv,"-inform") == 0) 130 informat=str2fmt(*(++argv)); 132 else if (strcmp(*argv,"-outform") == 0) 135 outformat=str2fmt(*(++argv)); 137 else if (strcmp(*argv,"-in") == 0) 140 infile= *(++argv); 142 else if (strcmp(*argv,"-out") == 0 [all...] |