/src/regress/sys/kern/getcwd/ |
Makefile | 6 PROG= getcwd 7 SRCS= getcwd.c old_getcwd.c 11 @./getcwd -r 12 @./getcwd -p 15 @find /usr -type d -print | ./getcwd -s
|
/src/regress/sys/kern/ |
Makefile | 3 SUBDIR+= execve getcwd ras unfdpass
|
/src/tests/lib/libc/ssp/ |
h_getcwd2.c | 6 getcwd(char* buf, size_t buflen) function in typeref:typename:char * 15 if (getcwd(buf, sizeof buf) == NULL) 16 err(1, "getcwd failed");
|
h_getcwd.c | 44 (void)getcwd(b, len);
|
t_ssp.sh | 274 atf_test_case getcwd 277 atf_set "descr" "Checks getcwd(3)" 290 atf_set "descr" "Checks getcwd(3) override" 297 -e 'match:.*getcwd failed: Function not implemented$' $prog 320 atf_add_test_case getcwd
|
/src/lib/libc/ssp/ |
ssp_redirect.c | 49 if (getcwd(NULL, 0) == NULL)
|
/src/include/ssp/ |
unistd.h | 45 __ssp_redirect_raw(char *, getcwd, getcwd, (char *__buf, size_t __len),
|
/src/tests/lib/librumphijack/ |
h_cwd.c | 84 if (getcwd(pwd, sizeof(pwd)) == NULL) 92 if (getcwd(pwd, sizeof(pwd)) == NULL) 100 if (getcwd(pwd, sizeof(pwd)) == NULL) 106 if (getcwd(pwd, sizeof(pwd)) == NULL) 113 if (getcwd(pwd, sizeof(pwd)) == NULL) 119 if (getcwd(pwd, sizeof(pwd)) == NULL) 139 if (getcwd(pwd, sizeof(pwd)) == NULL) 140 err(EXIT_FAILURE, "getcwd");
|
/src/lib/libc/compat-43/ |
getwd.c | 51 "warning: getwd() possibly used unsafely, consider using getcwd()") 60 if ((p = getcwd(buf, MAXPATHLEN)) != NULL)
|
/src/tests/lib/libc/gen/ |
t_getcwd.c | 47 atf_tc_set_md_var(tc, "descr", "Test error conditions in getcwd(3)"); 56 ATF_REQUIRE(getcwd(buf, 0) == NULL); 61 ATF_REQUIRE(getcwd((void *)-1, sizeof(buf)) == NULL); 68 atf_tc_set_md_var(tc, "descr", "A basic test of getcwd(3)"); 90 * Test that getcwd(3) works with basic 119 if (getcwd(buf, sizeof(buf)) == NULL) { 120 str = "getcwd(3) failed"; 125 str = "getcwd(3) returned incorrect path";
|
t_realpath.c | 125 (void)getcwd(path, sizeof(path)); 126 (void)getcwd(slnk, sizeof(slnk));
|
/src/usr.bin/mail/ |
temp.c | 90 if (getcwd(pathbuf, sizeof(pathbuf)) != NULL) 93 warn("getcwd");
|
/src/lib/libc/gen/ |
getcwd.c | 1 /* $NetBSD: getcwd.c,v 1.53 2012/06/21 23:29:23 enami Exp $ */ 38 static char sccsid[] = "@(#)getcwd.c 8.5 (Berkeley) 2/7/95"; 40 __RCSID("$NetBSD: getcwd.c,v 1.53 2012/06/21 23:29:23 enami Exp $"); 58 __weak_alias(getcwd,_getcwd) 114 if (resolved && getcwd(resolved, MAXPATHLEN) == NULL) { 221 __ssp_real(getcwd)(char *pt, size_t size)
|
/src/tests/kernel/ |
t_proccwd.c | 88 getcwd(cwdbuf, MAXPATHLEN); 121 ATF_REQUIRE(getcwd(buf, sizeof(buf)) != NULL);
|
/src/bin/pwd/ |
pwd.c | 103 p = getcwd(NULL, 0);
|
/src/tests/lib/libc/sys/ |
t_chroot.c | 60 (void)getcwd(buf, sizeof(buf)); 147 ATF_REQUIRE(getcwd(buf, sizeof(buf)) != NULL); 185 (void)getcwd(buf, sizeof(buf)); 271 ATF_REQUIRE(getcwd(buf, sizeof(buf)) != NULL);
|
t_link.c | 56 if (getcwd(buf, sizeof(buf)) == NULL)
|
t_ptrace.c | 163 REQUIRE_LIBC(getcwd(buf, sizeof(buf)), NULL);
|
/src/tests/lib/libc/c063/ |
t_faccessat.c | 131 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1); 190 ATF_REQUIRE(getcwd(cwd, MAXPATHLEN)); 212 ATF_REQUIRE(getcwd(cwd, MAXPATHLEN)); 231 ATF_REQUIRE(getcwd(cwd, MAXPATHLEN));
|
t_fstatat.c | 140 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
t_openat.c | 134 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
t_unlinkat.c | 129 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
t_fchmodat.c | 144 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
/src/tests/lib/libc/gen/posix_spawn/ |
t_spawn.c | 288 REQUIRE_LIBC(getcwd(chdirpath, sizeof(chdirpath)), NULL); 312 const char *testdir = getcwd(NULL, 0); 344 REQUIRE_LIBC(getcwd(cwd, sizeof(cwd)), NULL); 391 REQUIRE_LIBC(getcwd(chdirpath, sizeof(chdirpath)), NULL); 414 const char *testdir = getcwd(NULL, 0); 448 REQUIRE_LIBC(getcwd(cwd, sizeof(cwd)), NULL);
|
/src/usr.bin/ldd/ |
ldd.c | 162 if (getcwd(cwd, sizeof(cwd)) == NULL)
|