Symbol: chdir
bin/csh/dir.c
346
if (chdir(short2str(cp)) < 0)
bin/csh/dir.c
356
if (chdir(tmp = short2str(dp->di_name)) < 0)
bin/csh/dir.c
429
if (chdir(short2str(dp)) >= 0) {
bin/csh/dir.c
435
if (chdir(short2str(cp)) >= 0)
bin/csh/dir.c
452
if (chdir(short2str(buf)) >= 0) {
bin/csh/dir.c
461
if ((dp[0] == '/' || dp[0] == '.') && chdir(short2str(dp)) >= 0) {
bin/csh/dir.c
493
if (chdir(tmp = short2str(dp->di_name)) < 0)
bin/csh/dir.c
507
if (chdir(tmp = short2str(dp->di_name)) < 0)
bin/csh/dir.c
578
if (chdir(tmp = short2str(p->di_name)) < 0)
bin/csh/dir.c
89
if (chdir(ecp) == -1)
bin/csh/dir.c
99
if (chdir("/") == -1) {
bin/ksh/c_ksh.c
115
rval = chdir(try = Xstring(xs, xp) + phys_path);
bin/ksh/c_ksh.c
120
rval = chdir(try = Xstring(xs, xp));
bin/pax/ar_subs.c
111
if (chdir(name) == -1)
bin/sh/cd.c
236
if (chdir(dest) < 0) {
crypto/dist/ipsec-tools/src/racoon/privsep.c
237
if (chdir(lcconf->chroot) != 0) {
dist/pf/libexec/tftp-proxy/tftp-proxy.c
130
if (chroot(CHROOT_DIR) || chdir("/")) {
dist/pf/sbin/pflogd/privsep.c
104
if (chdir("/") != 0)
dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c
284
if (chroot(CHROOT_DIR) != 0 || chdir("/") != 0 ||
dist/pf/usr.sbin/ftp-proxy/ftp-proxy.c
290
if (chroot(CHROOT_DIR) != 0 || chdir("/") != 0 ||
distrib/utils/ssh/ssh.c
344
if (chdir(dir)) {
distrib/utils/tls/tls.c
52
if (chdir(argv[1]))
games/hack/hack.main.c
558
if (dir && chdir(dir) < 0) {
games/hack/hack.pager.c
453
(void) chdir(getenv("HOME"));
games/hunt/huntd/driver.c
385
(void) chdir("/var/tmp"); /* just in case it core dumps */
games/sail/main.c
77
if (chdir(_PATH_SAILDIR) < 0) {
games/warp/sig.c
100
chdir("/usr/tmp");
games/warp/sig.c
164
chdir(SAVEDIR);
games/warp/warp.c
299
if (chdir(warplib) < 0)
include/unistd.h
90
int chdir(const char *);
lib/libc/gen/daemon.c
69
(void)chdir("/");
lib/libc/gen/fts.c
105
#define CHDIR(sp, path) (!ISSET(FTS_NOCHDIR) && chdir(path))
lib/libc/time/zic.c
969
if (chdir(dir) != 0) {
lib/libc/time/zic.c
973
chdir_errno = chdir(dir) == 0 ? 0 : errno;
lib/libpam/modules/pam_chroot/pam_chroot.c
103
if (chdir(cwd) == -1) {
lib/libpuffs/puffs.c
482
chdir("/");
lib/librumpclient/rumpclient.c
1241
if (!nochdir && chdir("/") == -1)
libexec/atrun/atrun.c
142
if (chdir(pentry->pw_dir) == -1)
libexec/atrun/atrun.c
143
(void)chdir("/");
libexec/atrun/atrun.c
264
if (chdir(_PATH_ATSPOOL) == -1)
libexec/atrun/atrun.c
320
if (chdir(_PATH_ATJOBS) == -1)
libexec/atrun/atrun.c
444
if (chdir(_PATH_ATJOBS) == -1)
libexec/comsat/comsat.c
121
if (chdir(_PATH_MAILDIR) == -1) {
libexec/ftpd/cmds.c
169
if (chdir(path) < 0)
libexec/ftpd/cmds.c
403
if (chdir(cached_path) < 0) {
libexec/ftpd/ftpd.c
1551
if (chdir(homedir) < 0) {
libexec/ftpd/ftpd.c
1574
if (chdir(homedir) < 0) {
libexec/ftpd/ftpd.c
1596
if (EMPTYSTR(homedir) || chdir(homedir) < 0) {
libexec/ftpd/ftpd.c
1597
if (chdir("/") < 0) {
libexec/httpd/bozohttpd.c
1440
rc = chdir(s);
libexec/httpd/bozohttpd.c
2706
if (chdir(httpd->rootdir) == -1)
libexec/httpd/tilde-luzah-bozo.c
101
if (chdir(pw->pw_dir) < 0) {
libexec/httpd/tilde-luzah-bozo.c
107
if (chdir(httpd->public_html) < 0) {
libexec/makewhatis/makewhatis.c
333
if (chdir(manpath[0]) == -1)
libexec/rexecd/rexecd.c
257
if (chdir(pwd->pw_dir) < 0) {
libexec/rshd/rshd.c
504
if (chdir(pwd->pw_dir) < 0) {
libexec/rshd/rshd.c
505
if (chdir("/") < 0
libexec/talkd/talkd.c
112
if (chdir(_PATH_DEV) < 0) {
libexec/tftpd/tftpd.c
292
if (chdir(securedir) < 0) {
regress/sys/kern/getcwd/getcwd.c
202
chdir ("/usr/share/examples/emul/ultrix/etc");
regress/sys/kern/getcwd/getcwd.c
246
chdir ("/tmp/permdir/subdir");
regress/sys/kern/getcwd/getcwd.c
253
chdir ("/");
regress/sys/kern/getcwd/getcwd.c
259
chdir ("/tmp/permdir/subdir");
regress/sys/kern/getcwd/getcwd.c
266
chdir ("/");
regress/sys/kern/getcwd/getcwd.c
287
chdir ("/tmp/chrootdir");
regress/sys/kern/getcwd/getcwd.c
307
chdir("subdir");
regress/sys/kern/getcwd/getcwd.c
325
chdir ("/");
regress/sys/kern/getcwd/getcwd.c
339
chdir("/");
regress/sys/kern/getcwd/getcwd.c
356
chdir("/sbin");
regress/sys/kern/getcwd/getcwd.c
360
chdir("/etc/mtree");
regress/sys/kern/getcwd/getcwd.c
364
chdir("/usr/bin");
regress/sys/kern/getcwd/getcwd.c
368
chdir("/tmp");
regress/sys/kern/getcwd/getcwd.c
371
chdir(bigname);
regress/sys/kern/getcwd/getcwd.c
382
chdir("/tmp");
regress/sys/kern/getcwd/getcwd.c
385
chdir(littlename);
regress/sys/kern/getcwd/getcwd.c
412
if (chdir(buf) < 0) {
regress/sys/kern/getcwd/getcwd.c
442
if (chdir (buf) < 0) {
sbin/badsect/badsect.c
111
if (chdir(argv[1]) == -1)
sbin/init/init.c
1722
if (chdir("/dev") == 0)
sbin/mount_nfs/getnfsargs.c
259
(void) chdir("/");
sbin/newfs/newfs.c
754
(void) chdir("/");
sys/compat/netbsd32/netbsd32.h
1211
} chdir;
sys/compat/netbsd32/netbsd32_execve.c
106
*pathp32 = NETBSD32PTR64(fae32->fae_data.chdir.path);
sys/rump/librump/rumpkern/rump_syscalls.c
266
__weak_alias(chdir,rump___sysimpl_chdir);
sys/sys/spawn.h
70
#define fae_chdir_path fae_data.chdir.path
sys/sys/spawn.h
71
} chdir;
tests/fs/common/fstest_nfs.c
114
if (chdir(dirname(nfsdpath)) == -1)
tests/lib/libc/c063/t_faccessat.c
85
ATF_REQUIRE(chdir(DIR) == 0);
tests/lib/libc/c063/t_fchmodat.c
95
ATF_REQUIRE(chdir(DIR) == 0);
tests/lib/libc/c063/t_fchownat.c
116
ATF_REQUIRE(chdir(DIR) == 0);
tests/lib/libc/c063/t_fstatat.c
90
ATF_REQUIRE(chdir(DIR) == 0);
tests/lib/libc/c063/t_openat.c
84
ATF_REQUIRE(chdir(DIR) == 0);
tests/lib/libc/c063/t_unlinkat.c
83
ATF_REQUIRE(chdir(DIR) == 0);
tests/lib/libc/c063/t_utimensat.c
125
RL(chdir(DIR));
tests/lib/libc/gen/posix_spawn/t_spawn.c
289
RL(chdir("/"));
tests/lib/libc/gen/posix_spawn/t_spawn.c
392
RL(chdir("/"));
tests/lib/libc/sys/t_chroot.c
189
ATF_REQUIRE(chdir(buf) == 0);
tests/lib/libc/sys/t_chroot.c
221
(void)chdir("/");
tests/lib/libc/sys/t_chroot.c
64
ATF_REQUIRE(chdir(buf) == 0);
tests/lib/libc/sys/t_chroot.c
98
(void)chdir("/");
tests/lib/libc/sys/t_ptrace.c
167
RL(chdir(buf));
tests/lib/libc/sys/t_stat.c
128
ATF_REQUIRE(chdir(ftse->fts_path) == 0);
tests/lib/librumphijack/h_cwd.c
61
if (chdir(path) == -1)
tests/net/net/t_unix.c
251
if (chdir("sock") == -1)
usr.bin/at/at.c
440
if (chdir(_PATH_ATJOBS) == -1)
usr.bin/at/at.c
512
if (chdir(_PATH_ATJOBS) == -1)
usr.bin/calendar/calendar.c
195
if (chdir(pw->pw_dir) != -1) {
usr.bin/calendar/calendar.c
203
if (chdir(caldir) != -1)
usr.bin/calendar/calendar.c
206
if (chdir(pw->pw_dir) != -1)
usr.bin/config/main.c
1591
if (chdir(builddir) == -1)
usr.bin/env/env.c
75
if (chdir(optarg) == -1)
usr.bin/ftp/cmds.c
1183
if (chdir(locdir) == -1)
usr.bin/login/login.c
506
if (chdir(pwd->pw_dir) < 0) {
usr.bin/login/login.c
515
if (chdir("/") == -1)
usr.bin/login/login.c
749
if (chdir("/") == -1) /* Let's not keep the fs busy... */
usr.bin/login/login_pam.c
430
if (chdir(pwd->pw_dir) != 0) {
usr.bin/login/login_pam.c
439
if (chdir("/") == -1) {
usr.bin/mail/cmd3.c
213
if (chdir(cp) < 0) {
usr.bin/make/main.c
359
if (chdir(argvalue) == -1) {
usr.bin/make/main.c
744
if ((writable && access(path, W_OK) != 0) || chdir(path) != 0) {
usr.bin/man/man.c
794
(void) chdir(buf);
usr.bin/newgrp/newgrp.c
155
if (chdir(pwd->pw_dir) == -1)
usr.bin/patch/patch.c
534
if (chdir(optarg) < 0)
usr.bin/ruptime/ruptime.c
120
if (chdir(_PATH_RWHODIR) || (dirp = opendir(".")) == NULL)
usr.bin/rwho/rwho.c
119
if (chdir(_PATH_RWHODIR) || (dirp = opendir(".")) == NULL)
usr.bin/su/su.c
372
if (gohome && chdir(pwd->pw_dir) == -1)
usr.bin/su/su_pam.c
556
if (gohome && chdir(pwd->pw_dir) == -1)
usr.bin/tip/cmds.c
637
if (chdir(cp) < 0)
usr.bin/vacation/vacation.c
246
if (chdir(pw->pw_dir) == -1 &&
usr.bin/who/who.c
171
if (chdir("/dev")) {
usr.sbin/autofs/common.c
1175
error = chdir("/");
usr.sbin/bootp/bootpd/bootpd.c
402
if (chdir(chdir_path) < 0)
usr.sbin/bootp/bootpef/bootpef.c
225
if (chdir(chdir_path) < 0)
usr.sbin/catman/catman.c
505
if (chdir(dirname(tmp)) == -1) {
usr.sbin/chroot/chroot.c
176
if (chdir(argv[0]) == -1 || chroot(".") == -1)
usr.sbin/isibootd/isibootd.c
180
if (chdir(bootwd) < 0)
usr.sbin/lpr/common_source/displayq.c
113
if (chdir(SD) < 0)
usr.sbin/lpr/common_source/rmjob.c
107
if (chdir(SD) < 0)
usr.sbin/lpr/lpc/cmds.c
881
if (chdir(SD) < 0) {
usr.sbin/lpr/lpd/printjob.c
179
if (chdir(SD) < 0) {
usr.sbin/lpr/lpd/recvjob.c
103
if (chdir(SD) < 0)
usr.sbin/makemandb/makemandb.c
809
if (chdir(parent) == -1) {
usr.sbin/mountd/mountd.c
644
(void)chdir("/"); /* Just in case realpath doesn't */
usr.sbin/mtree/mtree.c
279
if (dir && chdir(dir))
usr.sbin/nfsd/nfsd.c
364
(void)chdir("/");
usr.sbin/rarpd/rarpd.c
537
if (chdir(TFTP_DIR) == -1) {
usr.sbin/rbootd/rbootd.c
176
if (chdir(BootDir) < 0) {
usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c
169
if (chdir("/var/yp"))
usr.sbin/rtadvd/prog_ops.h
72
#define prog_chdir chdir
usr.sbin/rtadvd/rtadvd_hostops.c
28
.op_chdir = chdir,
usr.sbin/rwhod/rwhod.c
183
if (chdir(_PATH_RWHODIR) < 0)
usr.sbin/rwhod/rwhod.c
398
if (utmpent && chdir(_PATH_DEV)) {
usr.sbin/rwhod/rwhod.c
418
if (utmpent && chdir(_PATH_RWHODIR)) {
usr.sbin/sysinst/aout2elf.c
360
if (chdir(q) < 0)
usr.sbin/sysinst/aout2elf.c
384
if (chdir(p) < 0)
usr.sbin/sysinst/main.c
505
if (chdir(home) != 0)
usr.sbin/sysinst/main.c
506
(void)chdir("/");
usr.sbin/sysinst/main.c
597
chdir(getenv("HOME"));
usr.sbin/sysinst/target.c
360
if (chdir(tgt_dir) < 0)
usr.sbin/sysinst/util.c
1123
chdir(owd);
usr.sbin/sysinst/util.c
320
chdir(owd);
usr.sbin/ypserv/yppush/yppush.c
164
if (chdir(YP_DB_PATH) < 0)
usr.sbin/ypserv/yppush/yppush.c
166
if (chdir(ypi.ourdomain) < 0)