Home
last modified time | relevance | path

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

12

/openssh-portable/openbsd-compat/
H A Dsetproctitle.c69 compat_init_setproctitle(int argc, char *argv[]) in compat_init_setproctitle() argument
84 if (argc == 0 || argv[0] == NULL) in compat_init_setproctitle()
100 if (lastargv == NULL || lastargv + 1 == argv[i]) in compat_init_setproctitle()
101 lastargv = argv[i] + strlen(argv[i]); in compat_init_setproctitle()
108 argv[1] = NULL; in compat_init_setproctitle()
109 argv_start = argv[0]; in compat_init_setproctitle()
110 argv_env_len = lastargv - argv[0] - 1; in compat_init_setproctitle()
H A Dopenbsd-compat.h170 void compat_init_setproctitle(int argc, char *argv[]);
178 int BSDgetopt(int argc, char * const *argv, const char *opts);
H A Dbsd-getline.c102 main(int argc, char *argv[]) in main() argument
/openssh-portable/
H A Dsftp.c1152 if ((size_t)argc >= sizeof(argv) / sizeof(*argv)){ in makeargv()
1167 argv[argc] = argvs + j; in makeargv()
1251 argv[argc] = argvs + j; in makeargv()
1273 return argv; in makeargv()
1283 char *cp2, **argv; in parse_args() local
1318 if (argv[0] != NULL && strcasecmp(cmds[i].c, argv[0]) == 0) in parse_args()
2048 char **argv, *line, quote; in complete() local
2328 main(int argc, char **argv) in main() argument
2480 argv += optind; in main()
2500 host = xstrdup(*argv); in main()
[all …]
H A Dscp.c400 main(int argc, char **argv) in main() argument
419 argv = newargv; in main()
524 argv += optind; in main()
551 source(argc, argv); in main()
556 sink(argc, argv, NULL); in main()
575 toremote(argc, argv); in main()
578 verifydir(argv[argc - 1]); in main()
1000 source(1, argv + i); in toremote()
1071 source(int argc, char **argv) in source() argument
1083 name = argv[indx]; in source()
[all …]
H A Dsftp-server-main.c38 main(int argc, char **argv) in main() argument
53 return (sftp_server_main(argc, argv, user_pw)); in main()
H A Dlogintest.c284 main(int argc, char *argv[]) in main() argument
288 __progname = ssh_get_progname(argv[0]); in main()
290 if (strncmp(argv[1], "-i", 3) == 0) in main()
292 else if (strncmp(argv[1], "-v", 3) == 0) in main()
H A Dssh-pkcs11-helper.c319 main(int argc, char **argv) in main() argument
329 __progname = ssh_get_progname(argv[0]); in main()
335 while ((ch = getopt(argc, argv, "v")) != -1) { in main()
430 main(int argc, char **argv) in main() argument
438 main(int argc, char **argv) in main() argument
442 __progname = ssh_get_progname(argv[0]); in main()
H A Dssh-keyscan.c659 main(int argc, char **argv) in main() argument
670 __progname = ssh_get_progname(argv[0]); in main()
680 while ((opt = getopt(argc, argv, "cDHv46p:T:t:f:")) != -1) { in main()
718 argv[fopt_count++] = optarg; in main()
786 if (argv[j] == NULL) in main()
788 else if ((fp = fopen(argv[j], "r")) == NULL) in main()
789 fatal("%s: %s: %s", __progname, argv[j], strerror(errno)); in main()
811 fatal("%s: %s: %s", __progname, argv[j], strerror(errno)); in main()
818 do_host(argv[optind++]); in main()
H A Dsshconnect.c135 char *argv[10]; in ssh_proxy_fdpass_connect() local
158 argv[0] = shell; in ssh_proxy_fdpass_connect()
159 argv[1] = "-c"; in ssh_proxy_fdpass_connect()
161 argv[3] = NULL; in ssh_proxy_fdpass_connect()
167 execv(argv[0], argv); in ssh_proxy_fdpass_connect()
168 perror(argv[0]); in ssh_proxy_fdpass_connect()
218 char *argv[10]; in ssh_proxy_connect() local
241 argv[0] = shell; in ssh_proxy_connect()
242 argv[1] = "-c"; in ssh_proxy_connect()
244 argv[3] = NULL; in ssh_proxy_connect()
[all …]
H A Dssh-add.c659 main(int argc, char **argv) in main() argument
673 __progname = ssh_get_progname(argv[0]); in main()
695 while ((ch = getopt(argc, argv, "vkKlLcdDTxXE:e:M:m:qs:S:t:")) != -1) { in main()
805 argv += optind; in main()
810 r |= test_key(agent_fd, argv[i]); in main()
856 argv[i], qflag, skprovider) == -1) in main()
H A Dssh-keygen.c1738 int argc, char **argv) in do_ca_sign() argument
2375 int argc, char **argv) in do_gen_krl() argument
2445 printf("%s%s%s%s: %s\n", argv[i], in do_check_krl()
2614 if (strcmp(argv[i], "-") != 0) in sig_sign()
2650 if (strcmp(argv[i], "-") == 0) in sig_sign()
2654 argv[i], strerror(errno)); in sig_sign()
3114 main(int argc, char **argv) in main() argument
3145 __progname = ssh_get_progname(argv[0]); in main()
3367 argv += optind; in main()
3396 argc, argv); in main()
[all …]
H A Dmisc.c1926 char *arg, **argv = xcalloc(1, sizeof(*argv)); in argv_split() local
1939 argv = xreallocarray(argv, (argc + 2), sizeof(*argv)); in argv_split()
1941 argv[argc] = NULL; in argv_split()
1975 *argvp = argv; in argv_split()
1977 argv = NULL; in argv_split()
1980 if (argc != 0 && argv != NULL) { in argv_split()
1982 free(argv[i]); in argv_split()
1983 free(argv); in argv_split()
1993 argv_assemble(int argc, char **argv) in argv_assemble() argument
2005 for (j = 0; argv[i][j] != '\0'; j++) { in argv_assemble()
[all …]
H A Dssh-sk-helper.c271 main(int argc, char **argv) in main() argument
283 while ((ch = getopt(argc, argv, "v")) != -1) { in main()
359 main(int argc, char **argv) in main() argument
/openssh-portable/regress/
H A Dsetuid-allowed.c38 main(int argc, char **argv) in main() argument
46 path = argv[1]; in main()
H A Dmkdtemp.c37 main(int argc, char **argv) in main() argument
47 base = argv[1]; in main()
H A Dcheck-perm.c159 main(int argc, char **argv) in main() argument
168 while ((ch = getopt(argc, argv, "hm:")) != -1) { in main()
185 argv += optind; in main()
190 path = argv[0]; in main()
H A Dnetcat.c149 main(int argc, char *argv[]) in main() argument
171 while ((ch = getopt(argc, argv, in main()
299 argv += optind; in main()
302 if (argv[0] && !argv[1] && family == AF_UNIX) { in main()
303 host = argv[0]; in main()
305 } else if (argv[0] && !argv[1]) { in main()
308 uport = argv[0]; in main()
310 } else if (argv[0] && argv[1]) { in main()
311 host = argv[0]; in main()
312 uport = argv[1]; in main()
H A Dmodpipe.c82 main(int argc, char **argv) in main() argument
91 while ((ch = getopt(argc, argv, "wm:")) != -1) { in main()
/openssh-portable/contrib/
H A Dgnome-ssh-askpass1.c156 main(int argc, char **argv) in main() argument
161 gnome_init("GNOME ssh-askpass", "0.1", argc, argv); in main()
164 message = argv[1]; in main()
H A Dgnome-ssh-askpass2.c316 main(int argc, char **argv) in main() argument
321 gtk_init(&argc, &argv); in main()
324 message = g_strjoinv(" ", argv + 1); in main()
H A Dgnome-ssh-askpass3.c280 main(int argc, char **argv) in main() argument
285 gtk_init(&argc, &argv); in main()
288 message = g_strjoinv(" ", argv + 1); in main()
/openssh-portable/m4/
H A Dopenssh.m417 int main(int argc, char **argv) {
18 (void)argv;
65 int main(int argc, char **argv) {
66 (void)argv;
104 int main(int argc, char **argv) {
105 (void)argv;
/openssh-portable/openbsd-compat/regress/
H A Dstrtonumtest.c58 int main(int argc, char *argv[]) in main() argument
/openssh-portable/regress/unittests/test_helper/
H A Dtest_helper.c127 main(int argc, char **argv) in main() argument
138 __progname = strrchr(argv[0], '/'); in main()
140 __progname = argv[0]; in main()
149 while ((ch = getopt(argc, argv, "Ffvqd:")) != -1) { in main()

12