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

1234567

/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/
H A Dprocess_helpers.c84 check_args(const int argc, const char *const argv[], const int required) argument
87 fprintf(stderr, "Usage: %s helper-name [args]\n", argv[0]);
93 main(int argc, const char *const argv[]) argument
97 check_args(argc, argv, 2);
99 if (strcmp(argv[1], "echo") == 0) {
100 check_args(argc, argv, 3);
101 exitcode = h_echo(argv[2]);
102 } else if (strcmp(argv[1], "exit-failure") == 0)
104 else if (strcmp(argv[1], "exit-signal") == 0)
106 else if (strcmp(argv[
[all...]
/bind-9.6-ESV-R11/unit/atf-src/atf-sh/
H A Datf-sh.cpp91 const char** argv = new const char*[count]; local
92 argv[0] = shell.c_str();
93 argv[1] = "-c";
94 argv[2] = script->c_str();
95 argv[3] = interpreter_argv[0];
98 argv[4 + i - 1] = interpreter_argv[i];
100 argv[count - 1] = NULL;
102 return argv;
141 const char** argv = construct_argv(shell, m_argc, m_argv); local
145 const int ret = execv(shell.c_str(), const_cast< char** >(argv));
153 main(int argc, char* const* argv) argument
[all...]
/bind-9.6-ESV-R11/bin/tests/
H A Dgxbn_test.c62 main(int argc, char **argv) { argument
68 while (argv[1] != NULL) {
69 he = gethostbyname(argv[1]);
70 print_he(he, h_errno, "gethostbyname", argv[1]);
72 he = getipnodebyname(argv[1], AF_INET6, AI_DEFAULT|AI_ALL,
74 print_he(he, error, "getipnodebyname", argv[1]);
78 he = getipnodebyname(argv[1], AF_INET6, AI_DEFAULT,
80 print_he(he, error, "getipnodebyname", argv[1]);
83 argv++;
H A Dgxba_test.c62 main(int argc, char **argv) { argument
73 while (argv[1] != NULL) {
74 if (inet_pton(AF_INET, argv[1], &in_addr) == 1) {
78 } else if (inet_pton(AF_INET6, argv[1], &in6_addr) == 1) {
84 argv[1]);
85 argv++;
89 print_he(he, h_errno, "gethostbyaddr", argv[1]);
92 print_he(he, error, "getipnodebyaddr", argv[1]);
95 argv++;
H A Dgenrandom.c29 main(int argc, char **argv) { argument
39 k = strtoul(argv[1], &endp, 10);
46 fp = fopen(argv[2], "w");
48 printf("failed to open %s\n", argv[2]);
H A Dmaster_test.c59 main(int argc, char *argv[]) { argument
71 if (argv[1]) {
72 isc_buffer_init(&source, argv[1], strlen(argv[1]));
73 isc_buffer_add(&source, strlen(argv[1]));
74 isc_buffer_setactive(&source, strlen(argv[1]));
88 result = dns_master_loadfile(argv[1], &origin, &origin,
H A Dnsec3hash.c67 main(int argc, char **argv) { argument
84 if (strcmp(argv[1], "-") == 0) {
89 result = isc_hex_decodestring(argv[1], &buffer);
95 hash_alg = atoi(argv[2]);
98 iterations = atoi(argv[3]);
104 isc_buffer_init(&buffer, argv[4], strlen(argv[4]));
105 isc_buffer_add(&buffer, strlen(argv[4]));
119 (int)isc_buffer_usedlength(&buffer), text, argv[1], hash_alg, iterations);
H A Dcfg_test.c63 main(int argc, char **argv) { argument
106 if (strcmp(argv[1], "--grammar") == 0) {
108 } else if (strcmp(argv[1], "--memstats") == 0) {
110 } else if (strcmp(argv[1], "--named") == 0) {
112 } else if (strcmp(argv[1], "--rndc") == 0) {
114 } else if (argv[1][0] == '-') {
117 filename = argv[1];
119 argv++, argc--;
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/
H A Dprocess_test.cpp66 std::vector< std::string > argv;
67 argv.push_back(get_process_helpers_path(tc).leaf_name());
68 argv.push_back(helper_name);
71 atf::process::argv_array(argv),
90 atf::process::argv_array argv(carray);
92 ATF_REQUIRE_EQ(argv.size(), 0);
97 atf::process::argv_array argv(carray);
99 ATF_REQUIRE_EQ(argv.size(), 1);
100 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0);
105 atf::process::argv_array argv(carra
160 atf::process::argv_array argv; local
260 argv_array argv; local
[all...]
H A Dapplication_test.cpp52 char *const argv[] = { arg1, arg2, arg3, arg4, NULL }; local
61 while ((ch = ::getopt(argc, argv, ":Z")) != -1) {
76 ATF_REQUIRE_EQ(std::string("foo"), argv[optind]);
87 char *const argv[] = { arg1, NULL }; local
88 ATF_REQUIRE_EQ(0, getopt_app().run(argc, argv));
/bind-9.6-ESV-R11/unit/atf-src/bootstrap/
H A Dh_app_empty.cpp59 main(int argc, char* const* argv) argument
61 return h_app_empty().run(argc, argv);
/bind-9.6-ESV-R11/unit/atf-src/atf-c/
H A Dbuild.c46 append_config_var(const char *var, atf_list_t *argv) argument
55 atf_list_append_list(argv, &words);
63 append_arg1(const char *arg, atf_list_t *argv) argument
65 return atf_list_append(argv, strdup(arg), true);
70 append_arg2(const char *flag, const char *arg, atf_list_t *argv) argument
74 err = append_arg1(flag, argv);
76 err = append_arg1(arg, argv);
83 append_optargs(const char *const optargs[], atf_list_t *argv) argument
89 err = append_arg1(strdup(*optargs), argv);
98 append_src_out(const char *src, const char *obj, atf_list_t *argv) argument
149 atf_build_c_o(const char *sfile, const char *ofile, const char *const optargs[], char ***argv) argument
194 atf_build_cpp(const char *sfile, const char *ofile, const char *const optargs[], char ***argv) argument
239 atf_build_cxx_o(const char *sfile, const char *ofile, const char *const optargs[], char ***argv) argument
[all...]
H A Dbuild_test.c96 atf_tc_fail_nonfatal("The constructed argv differs from the "
173 char **argv; local
176 &argv));
178 RE(atf_build_c_o(test->sfile, test->ofile, NULL, &argv));
179 check_equal_array(test->expargv, argv);
180 atf_utils_free_charpp(argv);
202 char **argv; local
205 &argv));
207 RE(atf_build_cpp(test->sfile, test->ofile, NULL, &argv));
208 check_equal_array(test->expargv, argv);
232 char **argv; local
[all...]
H A Dcheck.c111 const_execvp(const char *file, const char *const *argv) argument
114 return execvp(file, UNCONST(argv));
172 fork_and_wait(const char *const *argv, const atf_fs_path_t *outfile, argument
178 struct exec_data ea = { argv };
267 check_build_run(const char *const *argv, bool *success) argument
272 print_array(argv, ">");
274 err = fork_and_wait(argv, NULL, NULL, &status);
278 update_success_from_status(argv[0], &status, success);
300 atf_check_result_init(atf_check_result_t *r, const char *const *argv, argument
309 err = array_to_list(argv,
406 char **argv; local
426 char **argv; local
446 char **argv; local
460 atf_check_exec_array(const char *const *argv, atf_check_result_t *r) argument
[all...]
H A Dtp_test.c54 char *const argv[] = { arg1, arg2, arg3, arg4, NULL }; local
63 while ((ch = getopt(argc, argv, ":Z")) != -1) {
79 ATF_CHECK_STREQ_MSG("foo", argv[optind], "The non-option argument is "
H A Dcheck_test.c56 const char *argv[3]; local
60 argv[0] = atf_fs_path_cstring(&process_helpers);
61 argv[1] = helper_name;
62 argv[2] = NULL;
63 printf("Executing %s %s\n", argv[0], argv[1]);
64 RE(atf_check_exec_array(argv, r));
75 const char *argv[4]; local
79 argv[0] = atf_fs_path_cstring(&process_helpers);
80 argv[
312 const char *argv[4]; local
473 const char *argv[3]; local
501 const char *argv[2]; local
[all...]
/bind-9.6-ESV-R11/contrib/query-loc-0.4.0/
H A Dquery-loc.c10 main (argc, argv)
12 char *argv[];
26 progname = argv[0];
27 while ((ch = getopt (argc, argv, "vd:")) != EOF)
48 argv += optind;
57 host = argv[0];
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/
H A Dbuild_test.cpp110 ATF_FAIL("The constructed argv differs from the expected values");
126 const char* const argv[] = { NULL }; local
128 ATF_REQUIRE(equal_argvs(atf::process::argv_array(argv), array));
133 const char* const argv[] = { "foo", NULL }; local
135 ATF_REQUIRE(!equal_argvs(atf::process::argv_array(argv), array));
140 const char* const argv[] = { NULL }; local
142 ATF_REQUIRE(!equal_argvs(atf::process::argv_array(argv), array));
147 const char* const argv[] = { "foo", NULL }; local
149 ATF_REQUIRE(equal_argvs(atf::process::argv_array(argv), array));
173 atf::process::argv_array argv local
195 atf::process::argv_array argv = local
218 atf::process::argv_array argv = local
[all...]
/bind-9.6-ESV-R11/lib/isc/
H A Dcommandline.c71 /*% Index into parent argv vector. */
92 * Parse argc/argv argument vector.
95 isc_commandline_parse(int argc, char * const *argv, const char *options) { argument
99 REQUIRE(argc >= 0 && argv != NULL && options != NULL);
103 * the previous argv was finished.
112 isc_commandline_progname = argv[0];
115 *(place = argv[isc_commandline_index]) != '-') {
126 * index to next argv, the first non-option.
165 * Skip to next argv if at the end of the current argv
[all...]
/bind-9.6-ESV-R11/contrib/zkt/
H A Dzkt-soaserial.c200 int main (int argc, char *argv[]) argument
204 progname = *argv;
209 if ( argv[1][0] == '-' )
211 if ( argv[1][1] != 's' )
217 serial = atol (argv[2]);
222 if ( (read_serial_fromfile (*++argv, &serial)) != 0 )
223 fprintf (stderr, "couldn't read serial number from file %s\n", *argv);
225 printserial (*argv, serial);
/bind-9.6-ESV-R11/unit/atf-src/atf-version/
H A Datf-version.cpp89 main(int argc, char* const* argv) argument
91 return atf_version().run(argc, argv);
/bind-9.6-ESV-R11/lib/dns/
H A Drbtdb.h39 dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
46 * If argv[0] is set, it points to a valid memory context to be used for
52 * \li argc == 0 or argv[0] is a valid memory context.
H A Drbtdb64.h40 dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
/bind-9.6-ESV-R11/lib/isc/include/isc/
H A Dcommandline.h29 /*% Index into parent argv vector. */
46 isc_commandline_parse(int argc, char * const *argv, const char *options);
/bind-9.6-ESV-R11/bin/named/win32/
H A Dntservice.c65 char **envp, **argv; local
68 * We changed the entry point function, so we must initialize argv,
71 GetArgs(&argc, &argv, &envp);
75 while (argv[i]) {
76 if (!strcmp(argv[i], "-f") ||
77 !strcmp(argv[i], "-g") ||
78 !strcmp(argv[i], "-v") ||
79 !strcmp(argv[i], "-V")) {
88 exit(main(argc, argv, envp));
194 * get argv, arg
227 GetArgs(int *argc, char ***argv, char ***envp) argument
[all...]

Completed in 3220 milliseconds

1234567