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

12345678910

/bind-9.11.3/unit/atf-src/atf-c/detail/
H A Dprocess_helpers.c80 check_args(const int argc, const char *const argv[], const int required) argument
83 fprintf(stderr, "Usage: %s helper-name [args]\n", argv[0]);
89 main(int argc, const char *const argv[]) argument
93 check_args(argc, argv, 2);
95 if (strcmp(argv[1], "echo") == 0) {
96 check_args(argc, argv, 3);
97 exitcode = h_echo(argv[2]);
98 } else if (strcmp(argv[1], "exit-failure") == 0)
100 else if (strcmp(argv[1], "exit-signal") == 0)
102 else if (strcmp(argv[
[all...]
/bind-9.11.3/unit/atf-src/tools/
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...]
H A Dprocess_test.cpp69 std::vector< std::string > argv; local
70 argv.push_back(helpers.leaf_name());
71 argv.push_back(helper_name);
74 tools::process::argv_array(argv),
93 tools::process::argv_array argv(carray);
95 ATF_REQUIRE_EQ(argv.size(), 0);
100 tools::process::argv_array argv(carray);
102 ATF_REQUIRE_EQ(argv.size(), 1);
103 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0);
108 tools::process::argv_array argv(carra
163 tools::process::argv_array argv; local
263 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.11.3/bin/tools/
H A Darpaname.c21 main(int argc, char *argv[]) { argument
27 while (argv[1]) {
28 if (inet_pton(AF_INET6, argv[1], buf) == 1) {
33 argv++;
36 if (inet_pton(AF_INET, argv[1], buf) == 1) {
39 argv++;
H A Disc-hmac-fixup.c29 main(int argc, char **argv) { argument
38 fprintf(stderr, "Usage:\t%s algorithm secret\n", argv[0]);
50 result = isc_base64_decodestring(argv[2], &buf);
58 if (!strcasecmp(argv[1], "md5") ||
59 !strcasecmp(argv[1], "hmac-md5")) {
71 if (!strcasecmp(argv[1], "sha1") ||
72 !strcasecmp(argv[1], "hmac-sha1")) {
82 } else if (!strcasecmp(argv[1], "sha224") ||
83 !strcasecmp(argv[1], "hmac-sha224")) {
93 } else if (!strcasecmp(argv[
[all...]
H A Dnsec3hash.c61 main(int argc, char **argv) { argument
78 if (strcmp(argv[1], "-") == 0) {
83 result = isc_hex_decodestring(argv[1], &buffer);
89 hash_alg = atoi(argv[2]);
92 iterations = atoi(argv[3]);
98 isc_buffer_init(&buffer, argv[4], strlen(argv[4]));
99 isc_buffer_add(&buffer, strlen(argv[4]));
113 (int)isc_buffer_usedlength(&buffer), text, argv[1], hash_alg, iterations);
/bind-9.11.3/bin/named/include/named/
H A Dmain.h15 #define main(argc, argv) bindmain(argc, argv)
/bind-9.11.3/bin/tests/system/
H A Dfeature-test.c52 main(int argc, char **argv) { argument
58 if (strcmp(argv[1], "--enable-filter-aaaa") == 0) {
66 if (strcmp(argv[1], "--edns-version") == 0) {
75 if (strcmp(argv[1], "--gethostname") == 0) {
104 if (strcmp(argv[1], "--gssapi") == 0) {
112 if (strcmp(argv[1], "--have-dlopen") == 0) {
120 if (strcmp(argv[1], "--have-geoip") == 0) {
128 if (strcmp(argv[1], "--have-libxml2") == 0) {
136 if (strcmp(argv[1], "--rpz-nsip") == 0) {
144 if (strcmp(argv[
[all...]
/bind-9.11.3/bin/tests/
H A Dgxbn_test.c54 main(int argc, char **argv) { argument
60 while (argv[1] != NULL) {
61 he = gethostbyname(argv[1]);
62 print_he(he, h_errno, "gethostbyname", argv[1]);
64 he = getipnodebyname(argv[1], AF_INET6, AI_DEFAULT|AI_ALL,
66 print_he(he, error, "getipnodebyname", argv[1]);
70 he = getipnodebyname(argv[1], AF_INET6, AI_DEFAULT,
72 print_he(he, error, "getipnodebyname", argv[1]);
75 argv++;
H A Dcfg_test.c56 main(int argc, char **argv) { argument
100 if (strcmp(argv[1], "--grammar") == 0) {
102 } else if (strcmp(argv[1], "--zonegrammar") == 0) {
103 argv++, argc--;
107 if (strcmp(argv[1], "master") == 0 ||
108 strcmp(argv[1], "primary") == 0)
111 } else if (strcmp(argv[1], "slave") == 0 ||
112 strcmp(argv[1], "seconary") == 0)
115 } else if (strcmp(argv[1], "stub") == 0) {
117 } else if (strcmp(argv[
[all...]
H A Dgxba_test.c54 main(int argc, char **argv) { argument
65 while (argv[1] != NULL) {
66 if (inet_pton(AF_INET, argv[1], &in_addr) == 1) {
70 } else if (inet_pton(AF_INET6, argv[1], &in6_addr) == 1) {
76 argv[1]);
77 argv++;
81 print_he(he, h_errno, "gethostbyaddr", argv[1]);
84 print_he(he, error, "getipnodebyaddr", argv[1]);
87 argv++;
H A Dmaster_test.c51 main(int argc, char *argv[]) { argument
63 if (argv[1]) {
64 isc_buffer_init(&source, argv[1], strlen(argv[1]));
65 isc_buffer_add(&source, strlen(argv[1]));
66 isc_buffer_setactive(&source, strlen(argv[1]));
80 result = dns_master_loadfile(argv[1], &origin, &origin,
/bind-9.11.3/unit/atf-src/atf-c++/detail/
H A Dprocess_test.cpp63 std::vector< std::string > argv;
64 argv.push_back(get_process_helpers_path(tc, true).leaf_name());
65 argv.push_back(helper_name);
68 atf::process::argv_array(argv),
87 atf::process::argv_array argv(carray);
89 ATF_REQUIRE_EQ(argv.size(), 0);
94 atf::process::argv_array argv(carray);
96 ATF_REQUIRE_EQ(argv.size(), 1);
97 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0);
102 atf::process::argv_array argv(carra
157 atf::process::argv_array argv; local
257 argv_array argv; local
[all...]
H A Dapplication_test.cpp48 char *const argv[] = { arg1, arg2, arg3, arg4, NULL }; local
57 while ((ch = ::getopt(argc, argv, ":Z")) != -1) {
72 ATF_REQUIRE_EQ(std::string("foo"), argv[optind]);
83 char *const argv[] = { arg1, NULL }; local
84 ATF_REQUIRE_EQ(0, getopt_app().run(argc, argv));
/bind-9.11.3/bin/tests/system/dnstap/
H A Dydump.py19 DNSTAP_READ=sys.argv[1]
20 DATAFILE=sys.argv[2]
/bind-9.11.3/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.11.3/lib/isc/win32/
H A Dwin32os.c77 main(int argc, char **argv) { argument
86 ++argv;
87 major = (unsigned int) atoi(argv[0]);
91 ++argv;
92 minor = (unsigned int) atoi(argv[0]);
96 ++argv;
97 spmajor = (unsigned int) atoi(argv[0]);
101 ++argv;
102 spminor = (unsigned int) atoi(argv[0]);
/bind-9.11.3/unit/atf-src/atf-c/
H A Dtp_test.c50 char *const argv[] = { arg1, arg2, arg3, arg4, NULL }; local
59 while ((ch = getopt(argc, argv, ":Z")) != -1) {
75 ATF_CHECK_STREQ_MSG("foo", argv[optind], "The non-option argument is "
H A Dbuild_test.c89 atf_tc_fail_nonfatal("The constructed argv differs from the "
165 char **argv; local
168 &argv));
170 RE(atf_build_c_o(test->sfile, test->ofile, NULL, &argv));
171 check_equal_array(test->expargv, argv);
172 atf_utils_free_charpp(argv);
193 char **argv; local
196 &argv));
198 RE(atf_build_cpp(test->sfile, test->ofile, NULL, &argv));
199 check_equal_array(test->expargv, argv);
222 char **argv; local
[all...]
H A Dcheck.c107 const_execvp(const char *file, const char *const *argv) argument
110 return execvp(file, UNCONST(argv));
168 fork_and_wait(const char *const *argv, const atf_fs_path_t *outfile, argument
174 struct exec_data ea = { argv };
263 check_build_run(const char *const *argv, bool *success) argument
268 print_array(argv, ">");
270 err = fork_and_wait(argv, NULL, NULL, &status);
274 update_success_from_status(argv[0], &status, success);
296 atf_check_result_init(atf_check_result_t *r, const char *const *argv, argument
305 err = array_to_list(argv,
402 char **argv; local
422 char **argv; local
442 char **argv; local
456 atf_check_exec_array(const char *const *argv, atf_check_result_t *r) argument
[all...]
/bind-9.11.3/unit/atf-src/atf-sh/
H A Datf-sh.cpp88 const char** argv = new const char*[count]; local
89 argv[0] = shell.c_str();
90 argv[1] = "-c";
91 argv[2] = script->c_str();
92 argv[3] = interpreter_argv[0];
95 argv[4 + i - 1] = interpreter_argv[i];
97 argv[count - 1] = NULL;
99 return argv;
170 const char** argv = construct_argv(m_shell.str(), m_argc, m_argv); local
174 const int ret = execv(m_shell.c_str(), const_cast< char** >(argv));
182 main(int argc, char* const* argv) argument
[all...]
/bind-9.11.3/bin/tests/system/dyndb/driver/
H A Ddb.h12 dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
/bind-9.11.3/bin/tests/system/keymgr/
H A Dtestpolicy.py19 if len(sys.argv) > 0:
20 for policy_file in sys.argv[1:]:
/bind-9.11.3/unit/atf-src/atf-c++/
H A Dbuild_test.cpp101 ATF_FAIL("The constructed argv differs from the expected values");
117 const char* const argv[] = { NULL }; local
119 ATF_REQUIRE(equal_argvs(atf::process::argv_array(argv), array));
124 const char* const argv[] = { "foo", NULL }; local
126 ATF_REQUIRE(!equal_argvs(atf::process::argv_array(argv), array));
131 const char* const argv[] = { NULL }; local
133 ATF_REQUIRE(!equal_argvs(atf::process::argv_array(argv), array));
138 const char* const argv[] = { "foo", NULL }; local
140 ATF_REQUIRE(equal_argvs(atf::process::argv_array(argv), array));
163 atf::process::argv_array argv local
184 atf::process::argv_array argv = local
206 atf::process::argv_array argv = local
[all...]

Completed in 34 milliseconds

12345678910