Searched refs:argv (Results 1 - 25 of 868) sorted by relevance

1234567891011>>

/haiku/src/bin/package/
H A Dpackage.h11 int command_add(int argc, const char* const* argv);
12 int command_checksum(int argc, const char* const* argv);
13 int command_create(int argc, const char* const* argv);
14 int command_dump(int argc, const char* const* argv);
15 int command_extract(int argc, const char* const* argv);
16 int command_info(int argc, const char* const* argv);
17 int command_list(int argc, const char* const* argv);
18 int command_recompress(int argc, const char* const* argv);
H A Dpackage.cpp140 main(int argc, const char* const* argv) argument
145 const char* command = argv[1];
147 return command_add(argc - 1, argv + 1);
150 return command_checksum(argc - 1, argv + 1);
153 return command_create(argc - 1, argv + 1);
156 return command_dump(argc - 1, argv + 1);
159 return command_extract(argc - 1, argv + 1);
162 return command_list(argc - 1, argv + 1);
165 return command_info(argc - 1, argv + 1);
168 return command_recompress(argc - 1, argv
[all...]
/haiku/src/bin/
H A Dwaitfor.cpp25 main(int argc, char** argv) argument
28 while (find_thread(argv[1]) < 0) {
32 } else if (argc == 3 && strcmp(argv[1], "-e") == 0) {
33 while (find_thread(argv[2]) >= 0) {
37 } else if (argc == 3 && strcmp(argv[1], "-m") == 0) {
39 BMessenger messenger(argv[2]);
54 "is ready to receive messages.\n", argv[0], argv[0], argv[0]);
H A Dquit.cpp10 int main(int argc, char *argv[]) argument
15 printf("use: %s mime_sig\n", argv[0]);
19 BMessenger messenger(argv[1]);
22 printf("could not find running app with sig %s\n", argv[1]);
H A Ddraggers.cpp25 int main(int argc, char **argv) argument
34 if (!strncmp(argv[i], "-h", 2)) {
37 if (!strcmp(argv[i], "1")
38 || !strncmp(argv[i], "en", 2)
39 || !strncmp(argv[i], "sh", 2)
40 || !strncmp(argv[i], "on", 2))
42 else if (!strcmp(argv[i], "0")
43 || !strncmp(argv[i], "di", 2)
44 || !strncmp(argv[i], "hi", 2)
45 || !strncmp(argv[
[all...]
H A Dinstallsound.cpp39 int main(int argc, const char **argv) argument
48 if(strcmp(argv[1], "--list")==0) {
59 if(strcmp(argv[1], "--test")==0) {
61 if(mfiles.GetRefFor(BMediaFiles::B_SOUNDS, argv[2], &ref) == B_OK)
64 printf("%s: No such sound event\n", argv[2]);
67 } else if(strcmp(argv[1], "--clear")==0) {
69 if(mfiles.GetRefFor(BMediaFiles::B_SOUNDS, argv[2], &ref) == B_OK)
70 mfiles.RemoveRefFor(BMediaFiles::B_SOUNDS, argv[2], ref);
72 printf("clear %s: No such sound event\n", argv[2]);
75 } else if(strcmp(argv[
[all...]
H A Disvolume.cpp43 main(int argc, char** argv) argument
51 if (!strcmp(argv[i], "--help")) {
56 if (argv[i][0] == '-') {
57 if (strcmp(argv[i], "-readonly") == 0)
59 else if (strcmp(argv[i], "-query") == 0)
61 else if (strcmp(argv[i], "-attribute") == 0)
63 else if (strcmp(argv[i], "-mime") == 0)
65 else if (strcmp(argv[i], "-shared") == 0)
67 else if (strcmp(argv[i], "-persistent") == 0)
69 else if (strcmp(argv[
[all...]
H A Ddpms.cpp21 int main(int argc, char **argv) argument
26 return usage(argv[0]);
27 if (!strcmp(argv[1], "on"))
29 else if (!strcmp(argv[1], "standby"))
31 else if (!strcmp(argv[1], "suspend"))
33 else if (!strcmp(argv[1], "off"))
35 else if (!strcmp(argv[1], "caps")) {
41 } else if (!strcmp(argv[1], "state")) {
48 return usage(argv[0]);
H A Dsetusbconfig.cpp8 main(int argc, char *argv[]) argument
11 printf("usage: %s <device> <configuration index>\n", argv[0]);
15 BUSBDevice device(argv[1]);
17 printf("failed to open device %s\n", argv[1]);
22 if (sscanf(argv[2], "%lu", &index) != 1) {
39 printf("configuration %lu set on device %s\n", index, argv[1]);
H A Dfilepanel.cpp136 main(int argc, char **argv) argument
148 if (strncmp(argv[i], "--", 2) && ((*(argv[i]) == '-' &&
149 strlen(argv[i]) != 2) || *(argv[i]) != '-')) {
150 fprintf(stderr, B_TRANSLATE("%s not a valid option\n"), argv[i]);
151 return usage(argv[0], 2);
153 if (!strcmp(argv[i], "--help") || !strcmp(argv[i], "-h")) {
154 return usage(argv[
[all...]
/haiku/src/bin/package_repo/
H A Dpackage_repo.h11 int command_create(int argc, const char* const* argv);
12 int command_list(int argc, const char* const* argv);
13 int command_update(int argc, const char* const* argv);
/haiku/src/bin/makeudfimage/
H A Dmakeudfimage.cpp15 int main(int argc, char *argv[]) argument
18 shell.Run(argc, argv);
/haiku/src/bin/unzip/
H A Dbeosmain.cpp32 extern "C" int main_stub( int argc, char *argv[] );
34 int main( int argc, char **argv )
38 return main_stub( argc, argv );
/haiku/src/apps/cortex/addons/Flanger/
H A DFlangerApp.cpp42 int main(int argc, char** argv) { argument
43 if(argc < 2 || strstr(argv[1], "node=") != argv[1]) {
49 media_node_id id = atol(argv[1] + 5);
/haiku/src/apps/cortex/addons/LoggingConsumer/
H A DLoggingConsumerApp.cpp47 int main(int argc, char** argv) { argument
48 if(argc < 2 || strstr(argv[1], "node=") != argv[1]) {
55 media_node_id id = atol(argv[1] + 5);
/haiku/src/bin/debug/
H A Dkernel_debugger.cpp22 main(int argc, const char* const* argv) argument
27 if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {
32 message = argv[1];
/haiku/src/system/kernel/debug/
H A Dgdb.h12 int cmd_gdb(int argc, char** argv);
/haiku/src/tools/bfs_shell/
H A Dcommand_checkfs.h15 fssh_status_t command_checkfs(int argc, const char* const* argv);
/haiku/src/tools/fs_shell/
H A Dcommand_cp.h15 fssh_status_t command_cp(int argc, const char* const* argv);
/haiku/src/apps/haikudepot/
H A Dmain.cpp13 main(int argc, char* argv[]) argument
/haiku/src/bin/media_client/
H A Dmedia_client.cpp23 int main(int argc, char *argv[]) argument
34 if (strcmp(argv[1], "play") == 0) {
38 ret = media_play(argv[2]);
39 } else if (strcmp(argv[1], "test") == 0)
/haiku/src/system/glue/
H A Dstart_dyn.c16 extern int main(int argc, char **argv, char **env);
17 extern void _init_c_library_(int argc, char **argv, char **env);
20 int _start(int argc, char **argv, char **env);
31 _start(int argc, char **argv, char **environment) argument
35 argv_save = argv;
41 _init_c_library_(argc, argv, environment);
45 returnCode = main(argc, argv, environment);
/haiku/src/bin/rc/
H A Drc.cpp161 parse_options(int argc, char *argv[]) argument
168 if (strcmp(argv[i], "-o") == 0
169 || strcmp(argv[i], "--output") == 0) {
171 error("%s should be followed by a file name", argv[i]);
173 strcpy(sOutputFile, argv[i + 1]);
175 argv[i] = NULL;
176 argv[i + 1] = NULL;
178 } else if (strcmp(argv[i], "-I") == 0
179 || strcmp(argv[i], "--include") == 0) {
181 error("%s should be followed by a directory name", argv[
302 main(int argc, char *argv[]) argument
[all...]
/haiku/src/tests/kits/midi/synth_file_reader/
H A Dmain.cpp40 int main(int argc, char* argv[]) { argument
42 printf("%s <synth file> [play [instr] | dump]\n", argv[0]);
45 const char* fileName = argv[1];
46 bool play = argc >= 3 ? strcmp(argv[2], "play") == 0 : false;
47 bool dump = argc >= 3 ? strcmp(argv[2], "dump") == 0 : false;
48 uint32 instr = argc >= 4 ? atol(argv[3]) : 0xffff;
/haiku/src/tests/system/libroot/posix/
H A Dmbtest.c6 int main(int argc, char** argv) { argument
10 printf("Len: %i\n", mblen(argv[1], SSIZE_MAX));

Completed in 172 milliseconds

1234567891011>>