Searched refs:chdir (Results 1 - 25 of 153) sorted by relevance

1234567

/freebsd-10.1-release/crypto/openssh/openbsd-compat/
H A Ddaemon.c69 (void)chdir("/");
/freebsd-10.1-release/crypto/heimdal/lib/roken/
H A Ddaemon.c68 chdir("/");
/freebsd-10.1-release/contrib/apr/threadproc/unix/
H A Dprocsup.c21 if (chdir("/") == -1) {
/freebsd-10.1-release/lib/libc/gen/
H A Ddaemon.c85 (void)chdir("/");
/freebsd-10.1-release/contrib/nvi/ex/
H A Dex_cd.c85 if (!chdir(dir))
114 if (!chdir(buf)) {
/freebsd-10.1-release/contrib/libarchive/tar/test/
H A Dtest_copy.c44 * calling chdir(), you can work with arbitrarily long paths on such
150 assertEqualInt(0, chdir("original"));
187 assertEqualInt(0, chdir(".."));
293 assertEqualInt(0, chdir("plain"));
319 assertEqualInt(0, chdir(".."));
335 assertEqualInt(0, chdir(target));
362 assertEqualInt(0, chdir("../.."));
H A Dtest.h87 #undef chdir macro
88 #define chdir _chdir macro
130 /* chdir() and error if it fails */
/freebsd-10.1-release/libexec/atrun/
H A Datrun.c251 if (chdir(ATSPOOL_DIR) < 0)
252 perr("cannot chdir to %s", ATSPOOL_DIR);
298 if (chdir(ATJOB_DIR) < 0)
299 perr("cannot chdir to %s", ATJOB_DIR);
333 if (chdir(pentry->pw_dir))
334 chdir("/");
379 if (chdir(pentry->pw_dir))
380 chdir("/");
500 if (chdir(ATJOB_DIR) != 0)
/freebsd-10.1-release/usr.sbin/pkg_install/lib/
H A Dpen.c100 * Make a temporary directory to play in and chdir() to it, returning
140 if (chdir(pen) == FAIL) {
142 errx(2, "%s: can't chdir to '%s'", __func__, pen);
164 if (chdir(PenLocation) == FAIL) {
166 errx(2, "%s: can't chdir back to '%s'", __func__, PenLocation);
/freebsd-10.1-release/contrib/ntp/lib/isc/unix/
H A Ddir.c168 if (chdir(dirname) < 0)
180 if (chroot(dirname) < 0 || chdir("/") < 0)
/freebsd-10.1-release/lib/libpam/modules/pam_chroot/
H A Dpam_chroot.c93 if (chdir(cwd) == -1) {
94 openpam_log(PAM_LOG_ERROR, "chdir(): %m");
/freebsd-10.1-release/libexec/talkd/
H A Dtalkd.c99 if (chdir(_PATH_DEV) < 0) {
100 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV);
/freebsd-10.1-release/tools/regression/ufs/uprintf/
H A Dufs_uprintf.c180 if (chdir(argv[1]) < 0)
181 err(-1, "chdir(%s)", argv[1]);
/freebsd-10.1-release/usr.sbin/pkg_install/delete/
H A Dperform.c174 if (chdir(LogDir) == FAIL) {
315 if (chdir(home) == FAIL) {
330 if (chdir(LogDir) == FAIL) {
350 if (chdir(home) == FAIL) {
/freebsd-10.1-release/usr.bin/calendar/
H A Dio.c227 if (chdir(calendarHomes[0]) != 0)
237 if (chdir(home) != 0)
241 if (chdir(calendarHomes[i]) == 0 &&
H A Dcalendar.c208 if (!chdir(pw->pw_dir))
/freebsd-10.1-release/contrib/tcsh/
H A Dsh.dir.c112 if (chdir(xcp) == -1)
121 if (chdir("/") == -1)
489 * dochngd - implement chdir command.
506 if (chdir(short2str(cp)) < 0)
519 if (chdir(tmp = short2str(dp->di_name)) < 0)
604 if (chdir(dptr = short2str(cp)) < 0)
622 if (chdir(short2str(dp)) >= 0) {
628 if (chdir(short2str(cp)) >= 0) {
663 if (chdir(short2str(dp)) >= 0) {
669 else if (chdir(short2st
[all...]
/freebsd-10.1-release/usr.sbin/chroot/
H A Dchroot.c154 if (chdir(argv[0]) == -1 || chroot(".") == -1)
/freebsd-10.1-release/usr.sbin/jexec/
H A Djexec.c114 if (chdir("/") == -1)
115 err(1, "chdir(): /");
/freebsd-10.1-release/usr.sbin/mtree/
H A Dmtree.c165 if (dir && chdir(dir))
/freebsd-10.1-release/contrib/ntp/ntpsnmpd/
H A Dnetsnmp_daemonize.c243 chdir("/");
/freebsd-10.1-release/bin/sh/
H A Dcd.c220 if ((p = findcwd(badstat ? NULL : dest)) == NULL || chdir(p) < 0) {
236 if (chdir(dest) < 0) {
/freebsd-10.1-release/contrib/binutils/opcodes/
H A Di386-gen.c352 extern int chdir (char *);
384 if (chdir (srcdir) != 0)
/freebsd-10.1-release/usr.bin/newgrp/
H A Dnewgrp.c268 if (chdir(pwd->pw_dir) < 0) {
270 chdir("/");
/freebsd-10.1-release/contrib/apr/file_io/unix/
H A Dfilepath.c58 if (chdir(path) != 0)

Completed in 209 milliseconds

1234567