Symbol: cwd
bin/csh/dir.c
117
const char *cwd;
bin/csh/dir.c
122
if ((cwd = getenv("PWD")) != NULL) {
bin/csh/dir.c
123
if (stat(cwd, &shp) != -1 && swd.st_dev == shp.st_dev &&
bin/csh/dir.c
125
ecp = cwd;
bin/csh/dir.c
280
Char *dp, *cwd;
bin/csh/dir.c
282
cwd = xreallocarray(NULL, (size_t)(Strlen(dcwd->di_name) + 3),
bin/csh/dir.c
284
(void)Strcpy(cwd, dcwd->di_name);
bin/csh/dir.c
304
dp = Strrchr(cwd, '/');
bin/csh/dir.c
314
cwd[dotdot = Strlen(cwd)] = '/';
bin/csh/dir.c
315
cwd[dotdot + 1] = '\0';
bin/csh/dir.c
316
dp = Strspl(cwd, cp);
bin/csh/dir.c
317
free(cwd);
bin/csh/dir.c
321
if (!*cwd) {
bin/csh/dir.c
322
cwd[0] = '/';
bin/csh/dir.c
323
cwd[1] = '\0';
bin/csh/dir.c
325
return cwd;
bin/ksh/path.c
41
make_path(cwd, file, cdpathp, xsp, phys_pathp)
bin/ksh/path.c
42
const char *cwd;
bin/ksh/path.c
84
&& (cwd && *cwd))
bin/ksh/path.c
86
len = strlen(cwd);
bin/ksh/path.c
88
memcpy(xp, cwd, len);
bin/ksh/path.c
90
if (!ISDIRSEP(cwd[len - 1]))
games/warp/intrp.c
404
s = cwd;
games/warp/warp.h
311
EXT char *cwd INIT(NULL); /* current working directory */
lib/libpam/modules/pam_chroot/pam_chroot.c
103
if (chdir(cwd) == -1) {
lib/libpam/modules/pam_chroot/pam_chroot.c
107
pam_setenv(pamh, "HOME", cwd, 1);
lib/libpam/modules/pam_chroot/pam_chroot.c
62
const char *dir, *end, *cwd, *user;
lib/libpam/modules/pam_chroot/pam_chroot.c
84
cwd = end + 2;
lib/libpam/modules/pam_chroot/pam_chroot.c
86
if ((cwd = openpam_get_option(pamh, "cwd")) == NULL)
lib/libpam/modules/pam_chroot/pam_chroot.c
87
cwd = "/";
libexec/ftpd/extern.h
122
void cwd(const char *);
libexec/ftpd/ftpcmd.y
203
cwd(homedir);
libexec/ftpd/ftpcmd.y
209
cwd($4);
libexec/ftpd/ftpcmd.y
217
cwd("..");
libexec/httpd/lua-bozo.c
196
char cwd[MAXPATHLEN], *path;
libexec/httpd/lua-bozo.c
198
getcwd(cwd, sizeof(cwd) - 1);
libexec/httpd/lua-bozo.c
199
bozoasprintf(httpd, &path, "%s/%s", cwd, script);
sbin/fsck_ext2fs/dir.c
297
fileerror(ino_t cwd, ino_t ino, const char *errmesg)
sbin/fsck_ext2fs/dir.c
305
getpathname(pathbuf, sizeof(pathbuf), cwd, ino);
sbin/fsck_ffs/dir.c
420
fileerror(ino_t cwd, ino_t ino, const char *errmesg)
sbin/fsck_ffs/dir.c
429
getpathname(pathbuf, sizeof(pathbuf), cwd, ino);
sbin/fsck_lfs/dir.c
303
fileerror(ino_t cwd, ino_t ino, const char *errmesg)
sbin/fsck_lfs/dir.c
311
pwarn("PARENT=%lld\n", (long long)cwd);
sbin/fsck_lfs/dir.c
312
getpathname(pathbuf, sizeof(pathbuf), cwd, ino);
sys/compat/linux/arch/amd64/linux_machdep.h
46
u_int16_t cwd;
sys/compat/linux/arch/i386/linux_ptrace.c
79
long cwd;
tests/fs/common/fstest_nfs.c
81
char cwd[MAXPATHLEN];
tests/fs/common/fstest_nfs.c
94
"/%s/%s.etherbus", getcwd(cwd, sizeof(cwd)), image);
tests/fs/common/fstest_nfs.c
96
snprintf(imagepath, sizeof imagepath, "/%s/%s", cwd, image);
tests/kernel/t_lua.c
109
char cwd[PATH_MAX], path[PATH_MAX];
tests/kernel/t_lua.c
117
REQUIRE_LIBC(getcwd(cwd, sizeof(cwd)), NULL);
tests/kernel/t_lua.c
118
if ((size_t)snprintf(path, sizeof(path), "%s/test.lua", cwd) >=
tests/lib/libc/c063/t_faccessat.c
125
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_faccessat.c
131
ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
tests/lib/libc/c063/t_faccessat.c
183
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_faccessat.c
190
ATF_REQUIRE(getcwd(cwd, MAXPATHLEN));
tests/lib/libc/c063/t_faccessat.c
191
snprintf(abs_path, sizeof(abs_path), "%s/%s", cwd, FILE);
tests/lib/libc/c063/t_faccessat.c
205
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_faccessat.c
212
ATF_REQUIRE(getcwd(cwd, MAXPATHLEN));
tests/lib/libc/c063/t_faccessat.c
213
snprintf(abs_path, sizeof(abs_path), "%s/%s", cwd, DIR);
tests/lib/libc/c063/t_faccessat.c
226
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_faccessat.c
231
ATF_REQUIRE(getcwd(cwd, MAXPATHLEN));
tests/lib/libc/c063/t_faccessat.c
232
snprintf(abs_path, sizeof(abs_path), "%s/%s", cwd, DIR);
tests/lib/libc/c063/t_fchmodat.c
138
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_fchmodat.c
144
ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
tests/lib/libc/c063/t_fchownat.c
170
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_fchownat.c
179
ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
tests/lib/libc/c063/t_fstatat.c
133
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_fstatat.c
140
ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
tests/lib/libc/c063/t_openat.c
128
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_openat.c
134
ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
tests/lib/libc/c063/t_unlinkat.c
123
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_unlinkat.c
129
ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
tests/lib/libc/c063/t_utimensat.c
171
char cwd[MAXPATHLEN];
tests/lib/libc/c063/t_utimensat.c
177
RL(dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0));
tests/lib/libc/gen/posix_spawn/t_spawn.c
342
char cwd[PATH_MAX], filepath[PATH_MAX];
tests/lib/libc/gen/posix_spawn/t_spawn.c
344
REQUIRE_LIBC(getcwd(cwd, sizeof(cwd)), NULL);
tests/lib/libc/gen/posix_spawn/t_spawn.c
345
if (snprintf(filepath, sizeof(filepath), "%s/%s", cwd, FILENAME)
tests/lib/libc/gen/posix_spawn/t_spawn.c
347
atf_tc_fail("too deep: %s", cwd);
tests/lib/libc/gen/posix_spawn/t_spawn.c
445
char cwd[PATH_MAX], filepath[PATH_MAX];
tests/lib/libc/gen/posix_spawn/t_spawn.c
448
REQUIRE_LIBC(getcwd(cwd, sizeof(cwd)), NULL);
tests/lib/libc/gen/posix_spawn/t_spawn.c
449
if (snprintf(filepath, sizeof(filepath), "%s/%s", cwd, FILENAME)
tests/lib/libc/gen/posix_spawn/t_spawn.c
451
atf_tc_fail("too deep: %s", cwd);
usr.bin/ldd/ldd.c
128
char cwd[MAXPATHLEN], path[MAXPATHLEN];
usr.bin/ldd/ldd.c
164
if (getcwd(cwd, sizeof(cwd)) == NULL)
usr.bin/ldd/ldd.c
172
strcpy(path, cwd);
usr.bin/make/meta.c
1016
char *cwd, struct cached_stat *cstp, char *sdirs[])
usr.bin/make/meta.c
1021
return cwd;
usr.bin/make/meta.c
1037
char *latestdir, char *lcwd, char *cwd)
usr.bin/make/meta.c
1044
if (i < sdsz && strcmp(lcwd, cwd) != 0)
usr.bin/make/meta.c
1045
sdirs[i++] = cwd;
usr.bin/make/meta.c
1099
static char cwd[MAXPATHLEN];
usr.bin/make/meta.c
1167
if (getcwd(cwd, sizeof cwd) == NULL)
usr.bin/make/meta.c
1169
cwdlen = strlen(cwd);
usr.bin/make/meta.c
1171
strlcpy(lcwd, cwd, sizeof lcwd);
usr.bin/make/meta.c
1172
strlcpy(latestdir, cwd, sizeof latestdir);
usr.bin/make/meta.c
1175
sdirs[0] = cwd;
usr.bin/make/meta.c
1329
set_sdirs(sdirs, 4, latestdir, lcwd, cwd);
usr.bin/make/meta.c
1338
pid, buf[0], cwd, lcwd, latestdir);
usr.bin/make/meta.c
1369
child, cwd, lcwd, latestdir);
usr.bin/make/meta.c
1383
fname, lineno, cwd, lcwd);
usr.bin/make/meta.c
1385
set_sdirs(sdirs, 4, latestdir, lcwd, cwd);
usr.bin/make/meta.c
1495
if (strncmp(p, cwd, cwdlen) == 0)
usr.bin/make/meta.c
1569
set_sdirs(sdirs, 4, latestdir, lcwd, cwd);
usr.bin/make/meta.c
1572
if (*p != '/' || strncmp(p, cwd, cwdlen) != 0) {
usr.bin/make/meta.c
1587
set_sdirs(sdirs, 4, latestdir, lcwd, cwd);
usr.bin/make/meta.c
1674
if (strcmp(p, cwd) != 0) {
usr.bin/make/meta.c
226
const char *cwd)
usr.bin/make/meta.c
261
snprintf(buf, sizeof buf, "%s/%s", cwd, tname);
usr.bin/make/meta.c
697
char cwd[MAXPATHLEN];
usr.bin/make/meta.c
709
if (getcwd(cwd, sizeof cwd) == NULL)
usr.bin/make/meta.c
712
Global_Set(".ERROR_CWD", cwd);