Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 22 of 22) sorted by relevance

/libuv/test/
H A Drun-tests.c68 int main(int argc, char **argv) { in main() argument
76 platform_init(argc, argv); in main()
77 argv = uv_setup_args(argc, argv); in main()
81 case 2: return maybe_run_test(argc, argv); in main()
82 case 3: return run_test_part(argv[1], argv[2]); in main()
83 case 4: return maybe_run_test(argc, argv); in main()
93 if (strcmp(argv[1], "--list") == 0) { in maybe_run_test()
130 if (strcmp(argv[1], "spawn_helper1") == 0) { in maybe_run_test()
251 uv_uid_t uid = atoi(argv[2]); in maybe_run_test()
252 uv_gid_t gid = atoi(argv[3]); in maybe_run_test()
[all …]
H A Drun-benchmarks.c42 static int maybe_run_test(int argc, char **argv);
45 int main(int argc, char **argv) { in main() argument
46 platform_init(argc, argv); in main()
50 case 2: return maybe_run_test(argc, argv); in main()
51 case 3: return run_test_part(argv[1], argv[2]); in main()
60 static int maybe_run_test(int argc, char **argv) { in maybe_run_test() argument
61 if (strcmp(argv[1], "--list") == 0) { in maybe_run_test()
66 if (strcmp(argv[1], "spawn_helper") == 0) { in maybe_run_test()
71 return run_test(argv[1], 1, 1); in maybe_run_test()
H A Dtest-ref.c402 char *argv[] = { NULL, "spawn_helper4", NULL }; in TEST_IMPL() local
415 argv[0] = exepath; in TEST_IMPL()
417 options.args = argv; in TEST_IMPL()
H A Drunner-win.c46 void platform_init(int argc, char **argv) { in platform_init() argument
69 strcpy(executable_path, argv[0]); in platform_init()
H A Drunner.h135 void platform_init(int argc, char** argv);
H A Drunner-unix.c74 void platform_init(int argc, char **argv) { in platform_init() argument
79 snprintf(executable_path, sizeof(executable_path), "%s", argv[0]); in platform_init()
/libuv/src/unix/
H A Dproctitle.c46 char** uv_setup_args(int argc, char** argv) { in uv_setup_args() argument
54 return argv; in uv_setup_args()
56 pt.str = argv[0]; in uv_setup_args()
57 pt.len = strlen(argv[0]); in uv_setup_args()
63 size += strlen(argv[i]) + 1; in uv_setup_args()
70 return argv; in uv_setup_args()
79 size = strlen(argv[i]) + 1; in uv_setup_args()
81 memcpy(s, argv[i], size); in uv_setup_args()
87 pt.cap = argv[i - 1] + size - argv[0]; in uv_setup_args()
H A Dos390-proctitle.c39 char** uv_setup_args(int argc, char** argv) { in uv_setup_args() argument
46 return argv; in uv_setup_args()
51 size += strlen(argv[i]) + 1; in uv_setup_args()
58 return argv; in uv_setup_args()
63 size = strlen(argv[i]) + 1; in uv_setup_args()
64 memcpy(s, argv[i], size); in uv_setup_args()
71 process_title = uv__strdup(argv[0]); in uv_setup_args()
H A Dbsd-proctitle.c46 char** uv_setup_args(int argc, char** argv) { in uv_setup_args() argument
47 process_title = argc > 0 ? uv__strdup(argv[0]) : NULL; in uv_setup_args()
48 return argv; in uv_setup_args()
H A Dno-proctitle.c28 char** uv_setup_args(int argc, char** argv) { in uv_setup_args() argument
29 return argv; in uv_setup_args()
H A Daix.c888 char** uv_setup_args(int argc, char** argv) { in uv_setup_args() argument
896 return argv; in uv_setup_args()
902 process_argv = argv; in uv_setup_args()
907 if (uv__search_path(argv[0], exepath, &size) == 0) { in uv_setup_args()
917 size += strlen(argv[i]) + 1; in uv_setup_args()
924 return argv; in uv_setup_args()
930 size = strlen(argv[i]) + 1; in uv_setup_args()
931 memcpy(s, argv[i], size); in uv_setup_args()
H A Dibmi.c510 char** uv_setup_args(int argc, char** argv) { in uv_setup_args() argument
518 if (uv__search_path(argv[0], exepath, &size) == 0) { in uv_setup_args()
526 return argv; in uv_setup_args()
/libuv/docs/code/onchange/
H A Dmain.c26 int main(int argc, char **argv) { in main() argument
28 fprintf(stderr, "Usage: %s <command> <file1> [file2 ...]\n", argv[0]); in main()
33 command = argv[1]; in main()
36 fprintf(stderr, "Adding watch on %s\n", argv[argc]); in main()
40 uv_fs_event_start(fs_event_req, run_command, argv[argc], UV_FS_EVENT_RECURSIVE); in main()
/libuv/docs/code/plugin/
H A Dmain.c15 int main(int argc, char **argv) { in main() argument
17 fprintf(stderr, "Usage: %s [plugin1] [plugin2] ...\n", argv[0]); in main()
23 fprintf(stderr, "Loading %s\n", argv[argc]); in main()
24 if (uv_dlopen(argv[argc], lib)) { in main()
/libuv/docs/code/uvcat/
H A Dmain.c54 int main(int argc, char **argv) { in main() argument
55 uv_fs_open(uv_default_loop(), &open_req, argv[1], O_RDONLY, 0, on_open); in main()
/libuv/docs/code/uvtee/
H A Dmain.c61 int main(int argc, char **argv) { in main() argument
71 int fd = uv_fs_open(loop, &file_req, argv[1], O_CREAT | O_RDWR, 0644, NULL); in main()
/libuv/docs/code/uvwget/
H A Dmain.c142 int main(int argc, char **argv) { in main() argument
160 add_download(argv[argc], argc); in main()
/libuv/docs/src/
H A Dmisc.rst300 .. c:function:: char** uv_setup_args(int argc, char** argv)
303 or the executable path. Libuv may take ownership of the memory that `argv`
310 argv = uv_setup_args(argc, argv); /* May return a copy of argv. */
/libuv/src/win/
H A Dutil.c335 char** uv_setup_args(int argc, char** argv) { in uv_setup_args() argument
336 return argv; in uv_setup_args()
H A Dtty.c1394 unsigned short* argv = handle->tty.wr.ansi_csi_argv; in uv__tty_set_style() local
1412 short arg = argv[i]; in uv__tty_set_style()
/libuv/include/
H A Duv.h1264 UV_EXTERN char** uv_setup_args(int argc, char** argv);
/libuv/
H A DChangeLog1641 * test: canonicalize argv[0] in exepath test (Ben Noordhuis)
1724 * docs: uv_setup_args() may take ownership of argv (Ben Noordhuis)
3116 * unix: modify argv[0] when process title is set (Matthew Taylor)

Completed in 45 milliseconds