Symbol: chdir
bin/pax/ar_io.c
151
if (chdir(chdname) != 0) {
bin/pax/ar_subs.c
272
if (chdir(arcn->pat->chdname) != 0)
bin/pax/ftree.c
293
if (chdir(ftcur->fname) < 0) {
bin/sh/cd.c
224
if ((p = findcwd(badstat ? NULL : dest)) == NULL || chdir(p) < 0) {
bin/sh/cd.c
240
if (chdir(dest) < 0) {
crypto/libressl/apps/openssl/certhash.c
676
if (chdir(argv[i]) == -1) {
crypto/openssh/session.c
1336
if (chdir(path) == -1)
crypto/openssh/session.c
1341
if (chdir("/") == -1)
crypto/openssh/session.c
1614
if (chdir(pw->pw_dir) == -1) {
crypto/openssh/sftp-server.c
2030
if (chdir(homedir) != 0) {
crypto/openssh/sftp.c
1699
if (chdir(path1) == -1) {
crypto/openssh/ssh-agent.c
2418
(void)chdir("/");
crypto/openssh/sshd-session.c
1177
if (chdir("/") == -1)
crypto/openssh/sshd-session.c
308
if (chdir("/") == -1)
crypto/openssh/sshd.c
1694
if (chdir("/") == -1)
games/hack/hack.main.c
553
if (dir && chdir(dir) < 0) {
games/hack/hack.pager.c
448
(void) chdir(getenv("HOME"));
games/hunt/huntd/driver.c
359
if (chdir("/") == -1)
games/sail/main.c
77
if (chdir(_PATH_SAILDIR) < 0) {
include/unistd.h
380
int chdir(const char *);
initrd/oinit/oinit.c
134
error = chdir(_PATH_NEWROOT);
lib/libc/gen/daemon.c
78
chdir("/");
lib/libpam/modules/pam_chroot/pam_chroot.c
94
if (chdir(cwd) == -1) {
libexec/atrun/atrun.c
242
if (chdir(ATSPOOL_DIR) < 0)
libexec/atrun/atrun.c
289
if (chdir(ATJOB_DIR) < 0)
libexec/atrun/atrun.c
324
if (chdir(pentry->pw_dir))
libexec/atrun/atrun.c
325
chdir("/");
libexec/atrun/atrun.c
370
if (chdir(pentry->pw_dir))
libexec/atrun/atrun.c
371
chdir("/");
libexec/atrun/atrun.c
480
if (chdir(ATJOB_DIR) != 0)
libexec/bootpd/bootpd.c
410
if (chdir(chdir_path) < 0)
libexec/bootpd/tools/bootpef/bootpef.c
228
if (chdir(chdir_path) < 0)
libexec/comsat/comsat.c
84
if (chdir(_PATH_MAILDIR)) {
libexec/ftpd/ftpd.c
1526
if (chdir(homedir) < 0) {
libexec/ftpd/ftpd.c
1530
if (chdir("/") < 0) {
libexec/ftpd/ftpd.c
2573
if (chdir(path) < 0)
libexec/rbootd/rbootd.c
182
if (chdir(BootDir) < 0) {
libexec/talkd/talkd.c
88
if (chdir(_PATH_DEV) < 0) {
libexec/tftpd/tftpd.c
261
chdir( "/" );
sbin/badsect/badsect.c
93
if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0)
sbin/devfsctl/devfsctl.c
156
chdir(dirname(tokens[1]));
sbin/devfsctl/devfsctl.c
597
chdir(cwd_stack[line_stack_depth]);
sbin/devfsctl/devfsctl.c
751
chdir("/etc/devfs");
sbin/devfsctl/devfsctl.c
898
chdir("/etc/devfs");
sbin/devfsctl/devfsctl.c
906
chdir(dirname(strdup(config_name)));
sbin/dhclient/dhclient.c
2225
if (chdir("/") == -1)
sbin/dhclient/dhclient.c
476
if (chdir("/") == -1)
sbin/init/init.c
282
if (chdir(init_chroot) == -1 || chroot(".") == -1)
sbin/jscan/jscan.c
286
if (chdir (mirror_directory) != 0) {
sbin/mountd/mountd.c
807
chdir("/"); /* Just in case realpath doesn't */
sbin/newfs/fscopy.c
153
if (chdir(path) < 0) {
sbin/newfs/fscopy.c
170
if (chdir("..") < 0) {
sbin/newfs/fscopy.c
270
if (chdir(path) < 0) {
sbin/newfs/mkfs.c
756
chdir("/");
sbin/rconfig/client.c
52
chdir(WorkDir);
sbin/savecore/savecore.c
618
error = chdir(argv[0]);
stand/boot/common/bootstrap.h
83
int chdir(const char *path);
stand/boot/common/do_dloader.c
100
chdir("/boot");
stand/boot/common/do_dloader.c
116
chdir("/boot");
stand/boot/common/rel_open.c
52
result = chdir(getenv("base"));
stand/boot/common/rel_open.c
54
result = chdir(av[1]);
stand/boot/common/rel_open.c
69
chdir(getenv("base"));
stand/boot/common/rel_open.c
71
chdir(av[1]);
sys/sys/sysunion.h
25
struct chdir_args chdir;
test/stress/fsstress/fsstress.c
1001
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1003
chdir("..");
test/stress/fsstress/fsstress.c
1042
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1044
chdir("..");
test/stress/fsstress/fsstress.c
1061
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1063
chdir("..");
test/stress/fsstress/fsstress.c
1102
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1104
chdir("..");
test/stress/fsstress/fsstress.c
1126
if (chdir(buf1) == 0) {
test/stress/fsstress/fsstress.c
1128
chdir("..");
test/stress/fsstress/fsstress.c
1146
if (chdir(buf1) == 0) {
test/stress/fsstress/fsstress.c
1148
chdir("..");
test/stress/fsstress/fsstress.c
1154
if (chdir(buf2) == 0) {
test/stress/fsstress/fsstress.c
1156
chdir("..");
test/stress/fsstress/fsstress.c
1176
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1178
chdir("..");
test/stress/fsstress/fsstress.c
1249
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1251
chdir("..");
test/stress/fsstress/fsstress.c
1273
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1275
chdir("..");
test/stress/fsstress/fsstress.c
1292
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1294
chdir("..");
test/stress/fsstress/fsstress.c
1311
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
1313
chdir("..");
test/stress/fsstress/fsstress.c
389
if (chdir(dirname) < 0) {
test/stress/fsstress/fsstress.c
506
chdir(homedir);
test/stress/fsstress/fsstress.c
529
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
532
chdir("..");
test/stress/fsstress/fsstress.c
549
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
551
chdir("..");
test/stress/fsstress/fsstress.c
569
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
572
chdir("..");
test/stress/fsstress/fsstress.c
587
chdir(homedir);
test/stress/fsstress/fsstress.c
605
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
607
chdir("..");
test/stress/fsstress/fsstress.c
696
if (chdir(buf) < 0 || stat64(".", &statbuf) < 0) {
test/stress/fsstress/fsstress.c
872
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
874
chdir("..");
test/stress/fsstress/fsstress.c
896
if (chdir(buf1) == 0) {
test/stress/fsstress/fsstress.c
898
chdir("..");
test/stress/fsstress/fsstress.c
916
if (chdir(buf1) == 0) {
test/stress/fsstress/fsstress.c
918
chdir("..");
test/stress/fsstress/fsstress.c
924
if (chdir(buf2) == 0) {
test/stress/fsstress/fsstress.c
926
chdir("..");
test/stress/fsstress/fsstress.c
946
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
948
chdir("..");
test/stress/fsstress/fsstress.c
982
if (chdir(buf) == 0) {
test/stress/fsstress/fsstress.c
984
chdir("..");
test/stress/stress2/lib/main.c
196
if (chdir(op->wd) == -1)
test/stress/stress2/testcases/creat/creat.c
105
(void)chdir("..");
test/stress/stress2/testcases/creat/creat.c
96
if (chdir(path) == -1)
test/stress/stress2/testcases/link/link.c
102
(void)chdir("..");
test/stress/stress2/testcases/link/link.c
93
if (chdir(path) == -1)
test/stress/stress2/testcases/mkdir/mkdir.c
118
chdir ("..");
test/stress/stress2/testcases/mkdir/mkdir.c
99
chdir(path);
test/stress/stress2/testcases/mmap/mmap.c
54
if (chdir(path) == -1)
test/stress/stress2/testcases/mmap/mmap.c
63
(void)chdir("..");
test/stress/stress2/testcases/openat/openat.c
55
if (chdir(path1) == -1)
test/stress/stress2/testcases/openat/openat.c
60
if (chdir(path2) == -1)
test/stress/stress2/testcases/openat/openat.c
65
if (chdir("..") == -1)
test/stress/stress2/testcases/openat/openat.c
81
(void)chdir("..");
test/stress/stress2/testcases/rename/rename.c
83
if (chdir(path) == -1)
test/stress/stress2/testcases/rename/rename.c
93
(void)chdir("..");
test/stress/stress2/testcases/rw/rw.c
116
if (chdir("..") == -1)
test/stress/stress2/testcases/rw/rw.c
95
if (chdir(path) == -1)
test/stress/stress2/testcases/symlink/symlink.c
90
if (chdir(path) == -1)
test/stress/stress2/testcases/symlink/symlink.c
99
(void)chdir("..");
test/stress/stress2/testcases/syscall/syscall.c
121
if (chdir("..") == -1)
test/stress/stress2/testcases/syscall/syscall.c
73
if (chdir(path) == -1)
test/stress/stress2/tools/fstool.c
110
chdir ("..");
test/stress/stress2/tools/fstool.c
123
chdir(path);
test/stress/stress2/tools/fstool.c
127
chdir ("..");
test/stress/stress2/tools/fstool.c
64
chdir(path);
usr.bin/at/at.c
481
if (chdir(ATJOB_DIR) != 0)
usr.bin/at/at.c
550
if (chdir(ATJOB_DIR) != 0)
usr.bin/calendar/calendar.c
430
if (chdir(calhome) == -1)
usr.bin/calendar/calendar.c
442
if (chdir(calendarDirs[1]) == -1)
usr.bin/calendar/calendar.c
527
if (chdir(path) == -1) {
usr.bin/dfregress/runlist.c
129
r = chdir(testcase_dir_only);
usr.bin/dsynth/build.c
2548
if (chdir(work->basedir) < 0)
usr.bin/login/login.c
393
if (!*pwd->pw_dir || chdir(pwd->pw_dir) < 0) {
usr.bin/login/login.c
396
if (chdir("/") < 0)
usr.bin/mail/cmd3.c
172
if (chdir(cp) < 0) {
usr.bin/newgrp/newgrp.c
264
if (chdir(pwd->pw_dir) < 0) {
usr.bin/newgrp/newgrp.c
266
chdir("/");
usr.bin/newkey/newkey.c
111
if (chdir(YPDBPATH) < 0)
usr.bin/patch/patch.c
587
if (chdir(optarg) < 0)
usr.bin/ruptime/ruptime.c
111
if (chdir(_PATH_RWHODIR) || (dirp = opendir(".")) == NULL)
usr.bin/rwho/rwho.c
101
if (chdir(_PATH_RWHODIR) || (dirp = opendir(".")) == NULL)
usr.bin/su/su.c
539
if (chdir(p ? p : pwd->pw_dir) < 0)
usr.bin/tip/cmds.c
759
if (chdir(cp) < 0)
usr.bin/top/top.c
122
chdir("/tmp");
usr.bin/who/who.c
156
if (chdir("/dev")) {
usr.sbin/autofs/common.c
1170
error = chdir("/");
usr.sbin/chroot/chroot.c
146
if (chdir(argv[0]) == -1 || chroot(".") == -1)
usr.sbin/cron/cron/do_command.c
286
chdir(env_get("HOME", e->envp));
usr.sbin/cron/cron/popen.c
181
chdir(env_get("HOME", e->envp));
usr.sbin/cron/crontab/crontab.c
402
if (chdir("/tmp") < 0)
usr.sbin/cron/lib/misc.c
198
if (chdir(CRONDIR) < OK)
usr.sbin/ftp-proxy/ftp-proxy.c
324
if (chroot(CHROOT_DIR) != 0 || chdir("/") != 0 ||
usr.sbin/jail/jail.c
101
if (chdir(path) != 0)
usr.sbin/jail/jail.c
161
if (chdir(pwd->pw_dir) < 0)
usr.sbin/jexec/jexec.c
53
if (chdir("/") == -1)
usr.sbin/lpr/common_source/displayq.c
110
if (chdir(pp->spool_dir) < 0)
usr.sbin/lpr/common_source/rmjob.c
107
if (chdir(pp->spool_dir) < 0)
usr.sbin/lpr/lpc/cmds.c
1145
if (chdir(pp->spool_dir) < 0) {
usr.sbin/lpr/lpc/lpc.c
394
cdres = chdir(pp->spool_dir);
usr.sbin/lpr/lpd/printjob.c
177
if (chdir(pp->spool_dir) < 0) {
usr.sbin/lpr/lpd/recvjob.c
106
if (chdir(pp->spool_dir) < 0)
usr.sbin/mtree/mtree.c
270
if (dir && chdir(dir))
usr.sbin/pflogd/privsep.c
94
if (chdir("/") != 0)
usr.sbin/pw/pw.c
241
if (chdir(_PATH_YP) == -1)
usr.sbin/rarpd/rarpd.c
556
if (chdir(tftp_dir) == -1) {
usr.sbin/rwhod/rwhod.c
241
if (chdir(_PATH_RWHODIR) < 0)
usr.sbin/rwhod/rwhod.c
468
if (chdir(_PATH_DEV)) {
usr.sbin/rwhod/rwhod.c
507
if (chdir(_PATH_RWHODIR)) {
usr.sbin/syslogd/syslogd.c
2140
(void)chdir("/");