/freebsd/crypto/openssl/apps/ |
H A D | progs.h | 15 extern int asn1parse_main(int argc, char *argv[]); 16 extern int ca_main(int argc, char *argv[]); 17 extern int ciphers_main(int argc, char *argv[]); 18 extern int cmp_main(int argc, char *argv[]); 19 extern int cms_main(int argc, char *argv[]); 20 extern int crl_main(int argc, char *argv[]); 21 extern int crl2pkcs7_main(int argc, char *argv[]); 22 extern int dgst_main(int argc, char *argv[]); 23 extern int dhparam_main(int argc, char *argv[]); 24 extern int dsa_main(int argc, char *argv[]); [all …]
|
/freebsd/contrib/tnftp/src/ |
H A D | cmds.c | 226 settype(int argc, char *argv[]) in settype() argument 233 UPRINTF("usage: %s [", argv[0]); in settype() 248 set_type(argv[1]); in settype() 312 setbinary(int argc, char *argv[]) in setbinary() argument 316 UPRINTF("usage: %s\n", argv[0]); in setbinary() 328 setascii(int argc, char *argv[]) in setascii() argument 332 UPRINTF("usage: %s\n", argv[0]); in setascii() 344 settenex(int argc, char *argv[]) in settenex() argument 348 UPRINTF("usage: %s\n", argv[0]); in settenex() 360 setftmode(int argc, char *argv[]) in setftmode() argument [all …]
|
/freebsd/crypto/heimdal/appl/ftp/ftp/ |
H A D | cmds.c | 81 setpeer(int argc, char **argv) in setpeer() argument 94 another(&argc, &argv, "to"); in setpeer() 96 printf("usage: %s host-name [port]\n", argv[0]); in setpeer() 105 sp = getservbyname(argv[2], "tcp"); in setpeer() 111 port = strtol(argv[2], &ep, 0); in setpeer() 112 if (argv[2] == ep) { in setpeer() 114 argv[1], argv[2]); in setpeer() 116 argv[0]); in setpeer() 123 host = hookup(argv[1], port); in setpeer() 143 login(argv[1]); in setpeer() [all …]
|
/freebsd/usr.bin/m4/ |
H A D | eval.c | 102 eval(const char *argv[], int argc, int td, int is_traced) in eval() argument 108 m4errx(1, "expanding recursive definition for %s.", argv[1]); in eval() 110 mark = trace(argv, argc, infile+ilevel); in eval() 112 expand_macro(argv, argc); in eval() 114 expand_builtin(argv, argc, td); in eval() 123 expand_builtin(const char *argv[], int argc, int td) in expand_builtin() argument 133 printf("argv[%d] = %s\n", n, argv[n]); in expand_builtin() 147 if (argc == 3 && !*(argv[2]) && !mimic_gnu) in expand_builtin() 154 dodefine(argv[2], (argc > 3) ? argv[3] : null); in expand_builtin() 159 dopushdef(argv[2], (argc > 3) ? argv[3] : null); in expand_builtin() [all …]
|
/freebsd/bin/kill/ |
H A D | kill.c | 55 main(int argc, char *argv[]) in main() argument 67 argc--, argv++; in main() 68 if (!strcmp(*argv, "-l")) { in main() 69 argc--, argv++; in main() 73 if (!isdigit(**argv)) in main() 75 numsig = strtol(*argv, &ep, 10); in main() 76 if (!**argv || *ep) in main() 77 errx(2, "illegal signal number: %s", *argv); in main() 81 nosig(*argv); in main() 89 if (!strcmp(*argv, "-s")) { in main() [all …]
|
/freebsd/contrib/wpa/hostapd/ |
H A D | hostapd_cli.c | 228 int min_args, int argc, char *argv[]) in hostapd_cli_cmd() argument 237 if (write_cmd(buf, sizeof(buf), cmd, argc, argv) < 0) in hostapd_cli_cmd() 243 static int hostapd_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_ping() argument 249 static int hostapd_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_relog() argument 256 char *argv[]) in hostapd_cli_cmd_close_log() argument 262 static int hostapd_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_status() argument 264 if (argc > 0 && os_strcmp(argv[0], "driver") == 0) in hostapd_cli_cmd_status() 270 static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_mib() argument 274 os_snprintf(buf, sizeof(buf), "MIB %s", argv[0]); in hostapd_cli_cmd_mib() 323 static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[]) in hostapd_cli_cmd_sta() argument [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wpa_cli.c | 271 int argc, char *argv[]) in wpa_cli_cmd() argument 280 if (write_cmd(buf, sizeof(buf), cmd, argc, argv) < 0) in wpa_cli_cmd() 286 static int wpa_cli_cmd_ifname(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ifname() argument 292 static int wpa_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_status() argument 294 if (argc > 0 && os_strcmp(argv[0], "verbose") == 0) in wpa_cli_cmd_status() 296 if (argc > 0 && os_strcmp(argv[0], "wps") == 0) in wpa_cli_cmd_status() 298 if (argc > 0 && os_strcmp(argv[0], "driver") == 0) in wpa_cli_cmd_status() 301 if (argc > 0 && os_strcmp(argv[0], "no_events") == 0) in wpa_cli_cmd_status() 308 static int wpa_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_ping() argument 314 static int wpa_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[]) in wpa_cli_cmd_relog() argument [all …]
|
/freebsd/usr.sbin/extattrctl/ |
H A D | extattrctl.c | 51 int initattr(int argc, char *argv[]); 52 int showattr(int argc, char *argv[]); 89 initattr(int argc, char *argv[]) in initattr() argument 99 while ((ch = getopt(argc, argv, "fp:r:w:")) != -1) in initattr() 113 argv += optind; in initattr() 119 if ((i = open(argv[1], flags, 0600)) == -1) { in initattr() 121 perror(argv[1]); in initattr() 126 uef.uef_size = atoi(argv[0]); in initattr() 145 perror(argv[1]); in initattr() 146 unlink(argv[1]); in initattr() [all …]
|
/freebsd/lib/libc/db/test/btree.tests/ |
H A D | main.c | 113 main(argc, argv) in main() argument 115 char **argv; 121 progname = *argv; 132 while ((c = getopt(argc, argv, "bc:di:lp:ru")) != -1) { 163 argv += optind; 166 db = dbopen(*argv == NULL ? NULL : *argv, O_RDWR, 169 db = dbopen(*argv == NULL ? NULL : *argv, O_CREAT|O_RDWR, 188 char *lbuf, *argv[4], buf[512]; local 209 argc = parse(lbuf, &argv[0], 3); 214 if (strncmp(commands[i].cmd, argv[0], [all …]
|
/freebsd/sbin/ddb/ |
H A D | ddb.c | 40 void ddb_main(int argc, char *argv[]); 69 char *argv[MAXARG]; in ddb_readfile() local 77 argv[0] = buf + spn; in ddb_readfile() 78 if (*argv[0] == '#' || *argv[0] == '\0') in ddb_readfile() 82 spn = strcspn(argv[0], WHITESP); in ddb_readfile() 83 argv[1] = argv[0] + spn + strspn(argv[0] + spn, WHITESP); in ddb_readfile() 84 argv[0][spn] = '\0'; in ddb_readfile() 85 if (*argv[1] != '\0') in ddb_readfile() 93 printf("arg[%d] = %s\n", i, argv[i]); in ddb_readfile() 97 ddb_main(argc, argv); in ddb_readfile() [all …]
|
/freebsd/sbin/gvinum/ |
H A D | gvinum.c | 93 main(int argc, char **argv) in main() argument 107 argv++; in main() 108 parseline(argc, argv); in main() 136 gvinum_attach(int argc, char * const *argv) in gvinum_attach() argument 152 if (!strcmp(argv[3], "rename")) { in gvinum_attach() 155 offset = strtol(argv[4], NULL, 0); in gvinum_attach() 157 offset = strtol(argv[3], NULL, 0); in gvinum_attach() 162 gctl_ro_param(req, "child", -1, argv[1]); in gvinum_attach() 163 gctl_ro_param(req, "parent", -1, argv[2]); in gvinum_attach() 173 gvinum_create(int argc, char * const *argv) in gvinum_create() argument [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mkfile.c | 56 main(int argc, char **argv) in main() argument 73 while (argv[1] && argv[1][0] == '-') { in main() 74 opts = &argv[1][0]; in main() 88 argv++; in main() 93 len = strlen(argv[1]); in main() 94 if (len && isalpha(argv[1][len-1])) { in main() 95 switch (argv[1][len-1]) { in main() 114 gettext("unknown size %s\n"), argv[1]); in main() 119 if (!isdigit(argv[1][i])) { in main() 121 gettext("unknown size %s\n"), argv[1]); in main() [all …]
|
/freebsd/tools/tools/cxgbtool/ |
H A D | cxgbtool.c | 179 register_io(int argc, char *argv[], int start_arg, in register_io() argument 187 addr = strtoul(argv[start_arg], &p, 0); in register_io() 188 if (p == argv[start_arg]) return -1; in register_io() 194 warnx("bad parameter \"%s\"", argv[start_arg]); in register_io() 208 mdio_io(int argc, char *argv[], int start_arg, const char *iff_name) in mdio_io() argument 220 if (get_int_arg(argv[start_arg], &phy_addr) || in mdio_io() 221 get_int_arg(argv[start_arg + 1], &mmd) || in mdio_io() 222 get_int_arg(argv[start_arg + 2], ®) || in mdio_io() 223 (cmd == CHELSIO_SET_MIIREG && get_int_arg(argv[start_arg + 3], &val))) in mdio_io() 264 dump_regs_t2(int argc, char *argv[], int start_arg, uint32_t *regs) in dump_regs_t2() argument [all …]
|
/freebsd/sbin/bectl/ |
H A D | bectl.c | 45 static int bectl_cmd_activate(int argc, char *argv[]); 46 static int bectl_cmd_check(int argc, char *argv[]); 47 static int bectl_cmd_create(int argc, char *argv[]); 48 static int bectl_cmd_destroy(int argc, char *argv[]); 49 static int bectl_cmd_export(int argc, char *argv[]); 50 static int bectl_cmd_import(int argc, char *argv[]); 52 static int bectl_cmd_add(int argc, char *argv[]); 54 static int bectl_cmd_mount(int argc, char *argv[]); 55 static int bectl_cmd_rename(int argc, char *argv[]); 56 static int bectl_cmd_unmount(int argc, char *argv[]); [all …]
|
/freebsd/lib/libc/gen/ |
H A D | exec.c | 53 const char **argv; in execl() local 61 argv = alloca((n + 1) * sizeof(*argv)); in execl() 62 if (argv == NULL) { in execl() 68 argv[0] = arg; in execl() 69 while ((argv[n] = va_arg(ap, char *)) != NULL) in execl() 72 return (_execve(name, __DECONST(char **, argv), environ)); in execl() 79 const char **argv; in execle() local 88 argv = alloca((n + 1) * sizeof(*argv)); in execle() 89 if (argv == NULL) { in execle() 95 argv[0] = arg; in execle() [all …]
|
/freebsd/libexec/bootpd/tools/bootpef/ |
H A D | bootpef.c | 117 main(int argc, char **argv) in main() argument 123 progname = strrchr(argv[0], '/'); in main() 125 else progname = argv[0]; in main() 141 for (argc--, argv++; argc > 0; argc--, argv++) { in main() 142 if (argv[0][0] != '-') in main() 144 switch (argv[0][1]) { in main() 147 if (argv[0][2]) { in main() 148 stmp = &(argv[0][2]); in main() 151 argv++; in main() 152 stmp = argv[0]; in main() [all …]
|
/freebsd/usr.sbin/mlxcontrol/ |
H A D | command.c | 42 static int cmd_status(int argc, char *argv[]); 43 static int cmd_rescan(int argc, char *argv[]); 44 static int cmd_detach(int argc, char *argv[]); 45 static int cmd_check(int argc, char *argv[]); 46 static int cmd_rebuild(int argc, char *argv[]); 48 static int cmd_pause(int argc, char *argv[]); 50 static int cmd_help(int argc, char *argv[]); 52 extern int cmd_config(int argc, char *argv[]); 58 int (*func)(int argc, char *argv[]); 119 main(int argc, char *argv[]) in main() argument [all …]
|
/freebsd/usr.sbin/jail/ |
H A D | command.c | 292 const char **argv; in run_command() local 364 argv = alloca((8 + argc) * sizeof(char *)); in run_command() 365 argv[0] = _PATH_IFCONFIG; in run_command() 367 argv[1] = acs = alloca(cs - val + 1); in run_command() 371 argv[1] = string_param(j->intparams[IP_INTERFACE]); in run_command() 374 argv[2] = "inet"; in run_command() 376 argv[3] = addr; in run_command() 377 argv[4] = "netmask"; in run_command() 378 argv[5] = "255.255.255.255"; in run_command() 381 argv[3] = acs = alloca(cs - addr + 1); in run_command() [all …]
|
/freebsd/contrib/atf/atf-c++/detail/ |
H A D | process_test.cpp | 63 std::vector< std::string > argv; in exec_process_helpers() local 64 argv.push_back(get_process_helpers_path(tc, true).leaf_name()); in exec_process_helpers() 65 argv.push_back(helper_name); in exec_process_helpers() 68 atf::process::argv_array(argv), in exec_process_helpers() 87 atf::process::argv_array argv(carray); in ATF_TEST_CASE_BODY() local 89 ATF_REQUIRE_EQ(argv.size(), 0); in ATF_TEST_CASE_BODY() 94 atf::process::argv_array argv(carray); in ATF_TEST_CASE_BODY() local 96 ATF_REQUIRE_EQ(argv.size(), 1); in ATF_TEST_CASE_BODY() 97 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0); in ATF_TEST_CASE_BODY() 102 atf::process::argv_array argv(carray); in ATF_TEST_CASE_BODY() local [all …]
|
/freebsd/tools/regression/tmpfs/ |
H A D | h_tools.c | 69 getfh_main(int argc, char **argv) in getfh_main() argument 77 error = getfh(argv[1], &fh); in getfh_main() 93 kqueue_main(int argc, char **argv) in kqueue_main() argument 104 argv++; in kqueue_main() 113 fd = open(argv[i], O_RDONLY); in kqueue_main() 115 err(EXIT_FAILURE, "cannot open %s", argv[i]); in kqueue_main() 154 printf("%s - NOTE_ATTRIB\n", argv[i]); in kqueue_main() 156 printf("%s - NOTE_DELETE\n", argv[i]); in kqueue_main() 158 printf("%s - NOTE_EXTEND\n", argv[i]); in kqueue_main() 160 printf("%s - NOTE_LINK\n", argv[i]); in kqueue_main() [all …]
|
/freebsd/bin/pkill/tests/ |
H A D | spin_helper.c | 39 exec_shortargs(char *argv[]) in exec_shortargs() argument 41 char *flag_arg = argv[2]; in exec_shortargs() 42 char *sentinel = argv[3]; in exec_shortargs() 43 char * nargv[] = { argv[0], __DECONST(char *, "--spin"), flag_arg, in exec_shortargs() 47 execve(argv[0], nargv, nenvp); in exec_shortargs() 52 exec_largeargs(char *argv[]) in exec_largeargs() argument 54 char *flag_arg = argv[2]; in exec_largeargs() 55 char *sentinel = argv[3]; in exec_largeargs() 61 ((strlen(argv[0]) + 1) + sizeof("--spin") + (strlen(flag_arg) + 1) + in exec_largeargs() 64 char * nargv[] = { argv[0], __DECONST(char *, "--spin"), flag_arg, NULL, in exec_largeargs() [all …]
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock_test.cc | 48 void TestInitGoogleMock(const Char* (&argv)[M], const Char* (&new_argv)[N], in TestInitGoogleMock() 53 InitGoogleMock(&argc, const_cast<Char**>(argv)); in TestInitGoogleMock() 57 EXPECT_STREQ(new_argv[i], argv[i]); in TestInitGoogleMock() 65 const char* argv[] = {nullptr}; in TEST() local 69 TestInitGoogleMock(argv, new_argv, GMOCK_FLAG_GET(verbose)); in TEST() 73 const char* argv[] = {"foo.exe", nullptr}; in TEST() local 77 TestInitGoogleMock(argv, new_argv, GMOCK_FLAG_GET(verbose)); in TEST() 81 const char* argv[] = {"foo.exe", "--gmock_verbose=info", nullptr}; in TEST() local 85 TestInitGoogleMock(argv, new_argv, "info"); in TEST() 90 const wchar_t* argv[] = {L"foo.exe", L"--gmock_verbose=info", in TEST() local [all …]
|
/freebsd/contrib/netbsd-tests/fs/tmpfs/ |
H A D | h_tools.c | 68 getfh_main(int argc, char **argv) in getfh_main() argument 98 error = getfh(argv[1], fh); in getfh_main() 100 error = getfh(argv[1], fh, &fh_size); in getfh_main() 127 kqueue_main(int argc, char **argv) in kqueue_main() argument 138 argv++; in kqueue_main() 147 fd = open(argv[i], O_RDONLY); in kqueue_main() 149 err(EXIT_FAILURE, "cannot open %s", argv[i]); in kqueue_main() 188 printf("%s - NOTE_ATTRIB\n", argv[i]); in kqueue_main() 190 printf("%s - NOTE_DELETE\n", argv[i]); in kqueue_main() 192 printf("%s - NOTE_EXTEND\n", argv[i]); in kqueue_main() [all …]
|
/freebsd/contrib/one-true-awk/ |
H A D | main.c | 122 getarg(int *argc, char ***argv, const char *msg) in getarg() argument 124 if ((*argv)[1][2] != '\0') { /* arg is -fsomething */ in getarg() 125 return &(*argv)[1][2]; in getarg() 127 (*argc)--; (*argv)++; in getarg() 130 return (*argv)[1]; in getarg() 134 int main(int argc, char *argv[]) in main() argument 142 cmdname = argv[0]; in main() 168 while (argc > 1 && argv[1][0] == '-' && argv[1][1] != '\0') { in main() 169 if (strcmp(argv[1], "-version") == 0 || strcmp(argv[1], "--version") == 0) { in main() 173 if (strcmp(argv[1], "--") == 0) { /* explicit end of args */ in main() [all …]
|
/freebsd/sys/contrib/dev/acpica/common/ |
H A D | getopt.c | 200 char **argv) in AcpiGetoptArgument() argument 206 if (argv[AcpiGbl_Optind][(int) (CurrentCharPtr+1)] != '\0') in AcpiGetoptArgument() 208 AcpiGbl_Optarg = &argv[AcpiGbl_Optind++][(int) (CurrentCharPtr+1)]; in AcpiGetoptArgument() 219 AcpiGbl_Optarg = argv[AcpiGbl_Optind++]; in AcpiGetoptArgument() 243 char **argv, in AcpiGetopt() argument 253 argv[AcpiGbl_Optind][0] != '-' || in AcpiGetopt() 254 argv[AcpiGbl_Optind][1] == '\0') in AcpiGetopt() 258 else if (strcmp (argv[AcpiGbl_Optind], "--") == 0) in AcpiGetopt() 267 CurrentChar = argv[AcpiGbl_Optind][CurrentCharPtr]; in AcpiGetopt() 276 if (argv[AcpiGbl_Optind][++CurrentCharPtr] == '\0') in AcpiGetopt() [all …]
|