Home
last modified time | relevance | path

Searched refs:startdir (Results 1 – 3 of 3) sorted by relevance

/dragonfly/contrib/mdocml/
H A Dmain.c147 int startdir; in main() local
617 startdir = open(".", O_RDONLY | O_DIRECTORY); in main()
619 process_onefile(mp, res + i, startdir, &outst, &conf); in main()
623 if (startdir != -1) { in main()
624 (void)fchdir(startdir); in main()
625 close(startdir); in main()
869 process_onefile(struct mparse *mp, struct manpage *resp, int startdir, in process_onefile() argument
881 else if (startdir != -1) in process_onefile()
882 (void)fchdir(startdir); in process_onefile()
H A Dmandocdb.c2308 static char startdir[PATH_MAX]; in set_basedir() local
2320 if (getcwd(startdir, sizeof(startdir)) == NULL) { in set_basedir()
2322 (void)strlcpy(startdir, strerror(errno), in set_basedir()
2323 sizeof(startdir)); in set_basedir()
2343 say("", "getcwd: %s", startdir); in set_basedir()
2346 if (chdir(startdir) == -1) { in set_basedir()
2348 say("", "&chdir %s", startdir); in set_basedir()
/dragonfly/crypto/openssh/
H A Dsftp.c1535 const char *startdir, int err_abort, int echo_command) in parse_dispatch_command() argument
1627 path1 = xstrdup(startdir); in parse_dispatch_command()
2193 char *dir = NULL, *startdir = NULL; in interactive_loop() local
2237 startdir = xstrdup(remote_path); in interactive_loop()
2248 &remote_path, startdir, 1, 0) != 0) { in interactive_loop()
2250 free(startdir); in interactive_loop()
2262 &remote_path, startdir, 1, 0); in interactive_loop()
2264 free(startdir); in interactive_loop()
2325 startdir, batchmode, !interactive && el == NULL); in interactive_loop()
2331 free(startdir); in interactive_loop()