Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_process_title.c63 argv = (u_char **) orig_argv; in nxt_process_arguments()
65 nxt_process_title_end = argv[0] + nxt_strlen(argv[0]); in nxt_process_arguments()
67 end = argv[0]; in nxt_process_arguments()
74 if (argv[i] == end) { in nxt_process_arguments()
78 end = argv[i] + size; in nxt_process_arguments()
82 argv = nxt_malloc(argv_size); in nxt_process_arguments()
83 if (argv == NULL) { in nxt_process_arguments()
133 end = argv[0]; in nxt_process_arguments()
137 if (argv[i] != end) { in nxt_process_arguments()
145 end = argv[i] + size; in nxt_process_arguments()
[all …]
H A Dnxt_external.c62 char **argv; in nxt_external_start() local
172 argv = nxt_malloc(argc * sizeof(argv[0]) + size); in nxt_external_start()
173 if (nxt_slow_path(argv == NULL)) { in nxt_external_start()
178 argv[0] = c->executable; in nxt_external_start()
182 p = (u_char *) &argv[argc]; in nxt_external_start()
190 argv[i++] = (char *) p; in nxt_external_start()
199 argv[i] = NULL; in nxt_external_start()
201 (void) execve(c->executable, argv, environ); in nxt_external_start()
205 nxt_free(argv); in nxt_external_start()
H A Dnxt_lib.c33 nxt_lib_start(const char *app, char **argv, char ***envp) in nxt_lib_start() argument
113 if (argv != NULL) { in nxt_lib_start()
114 update = (argv[0] == app); in nxt_lib_start()
116 nxt_process_arguments(&nxt_main_task, argv, envp); in nxt_lib_start()
H A Dnxt_main.c15 main(int argc, char **argv) in main() argument
19 if (nxt_lib_start("unit", argv, &environ) != NXT_OK) { in main()
H A Dnxt_runtime.c915 char *p, **argv; in nxt_runtime_conf_read_cmd() local
973 while (*argv != NULL) { in nxt_runtime_conf_read_cmd()
974 p = *argv++; in nxt_runtime_conf_read_cmd()
982 p = *argv++; in nxt_runtime_conf_read_cmd()
995 p = *argv++; in nxt_runtime_conf_read_cmd()
1008 p = *argv++; in nxt_runtime_conf_read_cmd()
1021 p = *argv++; in nxt_runtime_conf_read_cmd()
1034 p = *argv++; in nxt_runtime_conf_read_cmd()
1047 p = *argv++; in nxt_runtime_conf_read_cmd()
1060 p = *argv++; in nxt_runtime_conf_read_cmd()
[all …]
H A Dnxt_main.h162 NXT_EXPORT nxt_int_t nxt_lib_start(const char *app, char **argv, char ***envp);
H A Dnxt_process.h161 char **argv, char **envp);
H A Dnxt_process.c845 nxt_process_execute(nxt_task_t *task, char *name, char **argv, char **envp) in nxt_process_execute() argument
851 if (posix_spawn(&pid, name, NULL, NULL, argv, envp) != 0) { in nxt_process_execute()
/unit/auto/echo/
H A Decho.c21 main(int argc, char *const *argv) in main() argument
27 if (strcmp(argv[1], "-n") == 0) { in main()
33 printf("%s%s", argv[i], (i == argc - 1) ? "" : " "); in main()
/unit/src/test/
H A Dnxt_cq_test.c339 main(int argc, char **argv) in main() argument
356 a = argv[i]; in main()
364 nops = atoi(argv[++i]); in main()
369 nprocs_enq = atoi(argv[++i]); in main()
374 nprocs_deq = atoi(argv[++i]); in main()
379 nprocs_wenq = atoi(argv[++i]); in main()
384 nprocs_wdeq = atoi(argv[++i]); in main()
389 nprocs_enq_deq = atoi(argv[++i]); in main()
394 nprocs_cas = atoi(argv[++i]); in main()
399 nprocs_faa = atoi(argv[++i]); in main()
[all …]
H A Dnxt_tests.c26 main(int argc, char **argv) in main() argument
31 if (nxt_lib_start("tests", argv, &environ) != NXT_OK) { in main()
H A Dnxt_utf8_file_name_test.c20 main(int argc, char **argv) in main() argument
24 if (nxt_lib_start("utf8_file_name_test", argv, &environ) != NXT_OK) { in main()
H A Dnxt_unit_app_test.c45 main(int argc, char **argv) in main() argument
51 if (argc == 3 && strcmp(argv[1], "-t") == 0) { in main()
52 thread_count = atoi(argv[2]); in main()
/unit/src/nodejs/unit-http/
H A Dunit.cpp252 napi_value jsthis, argv; in create_server() local
258 jsthis = napi.get_cb_info(info, argc, &argv); in create_server()
746 napi_value this_arg, argv, buffer; in request_read() local
750 this_arg = napi.get_cb_info(info, argv); in request_read()
763 wm = napi.get_value_uint32(argv); in request_read()
797 napi_value argv[4]; in response_send_headers() local
812 keys_count = napi.get_value_uint32(argv[2]); in response_send_headers()
815 headers = argv[1]; in response_send_headers()
941 napi_value argv[3]; in response_write() local
953 buf_type = napi.type_of(argv[0]); in response_write()
[all …]
H A Dnxt_napi.h207 get_cb_info(napi_callback_info info, size_t &argc, napi_value *argv) in get_cb_info()
212 status = napi_get_cb_info(env_, info, &argc, argv, &res, nullptr); in get_cb_info()
442 int argc, const napi_value *argv) in make_callback()
447 status = napi_make_callback(env_, ctx, val, func, argc, argv, &res); in make_callback()
/unit/auto/modules/
H A Dperl83 char argv[] = \"\\0-e\\00\";
84 char *embedding[] = { &argv[0], &argv[1], &argv[4] };
H A Druby110 static const char *argv[3] = {
117 return ruby_run_node(ruby_options(3, (char **) argv));
/unit/src/ruby/
H A Dnxt_ruby_stream_io.c12 static VALUE nxt_ruby_stream_io_initialize(int argc, VALUE *argv, VALUE self);
85 nxt_ruby_stream_io_initialize(int argc, VALUE *argv, VALUE self) in nxt_ruby_stream_io_initialize() argument
H A Dnxt_ruby.c72 int argc, const VALUE *argv, VALUE blockarg);
271 static char *argv[2] = { (char *) "NGINX_Unit", (char *) "-e0" }; in nxt_ruby_start() local
284 ruby_options(2, argv); in nxt_ruby_start()
1142 const VALUE *argv, VALUE blockarg) in nxt_ruby_rack_result_body_each() argument
/unit/auto/
H A Dclang59 nxt_feature_test="int main(int argc, char *const *argv) {
/unit/src/perl/
H A Dnxt_perl_psgi.c490 static char argv[] = "\0""-e\0""0"; in nxt_perl_psgi_ctx_init() local
491 static char *embedding[] = { &argv[0], &argv[1], &argv[4] }; in nxt_perl_psgi_ctx_init()