Symbol: getcwd
bin/pwd/pwd.c
71
return (getcwd(pwd, sizeof(pwd)));
bin/sh/cd.c
393
if (getcwd(pwd, i) != NULL)
crypto/heimdal/appl/ftp/ftp/cmds.c
1069
if (getcwd(buf, sizeof(buf)) != NULL)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
156
if (getcwd(path, sizeof(path)-1) == NULL)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1801
ret = getcwd(path, sizeof(path));
crypto/openssh/openbsd-compat/openbsd-compat.h
90
char *getcwd(char *pt, size_t size);
crypto/openssh/servconf.c
826
if (getcwd(cwd, sizeof(cwd)) == NULL)
crypto/openssh/sftp-realpath.c
91
if (getcwd(resolved, PATH_MAX) == NULL) {
crypto/openssh/sftp-server.c
1560
if (getcwd(cwd, sizeof(cwd)) == NULL) {
crypto/openssh/sftp.c
1782
if (!getcwd(path_buf, sizeof(path_buf))) {
include/ssp/unistd.h
77
__ssp_redirect_raw(char *, getcwd, getcwd, (char *__buf, size_t __len),
include/unistd.h
345
char *getcwd(char *, size_t);
lib/libc/compat-43/getwd.c
43
if ( (p = getcwd(buf, MAXPATHLEN)) )
lib/libc/gen/getcwd.c
55
__ssp_real(getcwd)(char *pt, size_t size)
lib/libc/stdlib/realpath.c
66
if (getcwd(resolved, PATH_MAX) == NULL) {
lib/libc/tests/secure/fortify_unistd_test.c
203
getcwd(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
224
getcwd(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
247
getcwd(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
270
getcwd(__stack.__buf, __len);
lib/libc/tests/secure/fortify_unistd_test.c
302
getcwd(__stack.__buf, __len);
lib/libpathconv/tests/abs2rel.c
46
if (!getcwd(cwd, MAXPATHLEN)) {
lib/libpathconv/tests/rel2abs.c
45
if (!getcwd(cwd, MAXPATHLEN)) {
libexec/rtld-elf/rtld.c
810
else if (getcwd(buf, sizeof(buf)) == NULL ||
libexec/tftpd/tests/functional.c
357
ATF_REQUIRE_EQ(pwd, getcwd(pwd, sizeof(pwd)));
libexec/tftpd/tests/functional.c
462
ATF_REQUIRE(getcwd(&command[2], sizeof(command) - 2) != NULL);
stand/ficl/testmain.c
60
cp = getcwd(NULL, 80);
tests/sys/audit/inter-process.c
1456
ATF_REQUIRE(getcwd(dirpath, sizeof(dirpath)) != NULL);
tests/sys/audit/process-control.c
384
ATF_REQUIRE(getcwd(dirpath, sizeof(dirpath)) != NULL);
tests/sys/capsicum/fexecve.cc
177
getcwd(cwd, sizeof(cwd));
tests/sys/fs/fusefs/readlink.cc
155
ASSERT_NE(nullptr, getcwd(wd, sizeof(wd))) << strerror(errno);
tests/sys/fs/fusefs/statfs.cc
115
ASSERT_NE(nullptr, getcwd(mp, PATH_MAX)) << strerror(errno);
tests/sys/fs/fusefs/statfs.cc
153
ASSERT_NE(nullptr, getcwd(mp, PATH_MAX)) << strerror(errno);
tests/sys/fs/fusefs/statfs.cc
70
ASSERT_NE(nullptr, getcwd(mp, PATH_MAX)) << strerror(errno);
tests/sys/kern/sysctl_kern_proc.c
90
ATF_REQUIRE(getcwd(cwd, sizeof(cwd)) == cwd);
tests/sys/vfs/lookup_cap_dotdot.c
57
ATF_REQUIRE(getcwd(cwd, sizeof(cwd)) != NULL);
tools/regression/doat/doat.c
112
absolute_path = (char *)getcwd(NULL, 0);
tools/test/stress2/lib/main.c
202
if ((home = getcwd(NULL, 0)) == NULL)
tools/test/stress2/lib/resources.c
63
if (getcwd(path, sizeof(path)) == NULL)
tools/test/stress2/lib/resources.c
86
if (getcwd(path, sizeof(path)) == NULL)
tools/test/stress2/testcases/openat/doat.c
107
absolute_path = getcwd(NULL, 0);
tools/test/stress2/testcases/openat/openat.c
89
if (getcwd(apath, sizeof(apath)) == NULL)
tools/test/stress2/tools/bench.c
130
getcwd(path, sizeof(path));
tools/test/stress2/tools/fstool.c
226
if (getcwd(here, sizeof(here)) == NULL)
usr.bin/at/at.c
167
if (getcwd(ptr, size-1) != NULL)
usr.sbin/config/mkoptions.cc
371
getcwd(genopt, sizeof(genopt));
usr.sbin/lpr/lpr/lpr.c
573
if (getcwd(buf, sizeof(buf)) == NULL)
usr.sbin/makefs/mtree.c
268
res = getcwd(NULL, 0);