| /src/lib/libpam/modules/pam_chroot/ |
| pam_chroot.c | 62 const char *dir, *end, *cwd, *user; local 84 cwd = end + 2; 86 if ((cwd = openpam_get_option(pamh, "cwd")) == NULL) 87 cwd = "/"; 103 if (chdir(cwd) == -1) { 107 pam_setenv(pamh, "HOME", cwd, 1);
|
| /src/sys/conf/ |
| newvers_stand.sh | 41 cwd=$(dirname "$0") 81 osr=$(sh "${cwd}/osrelease.sh")
|
| newvers.sh | 227 cwd=$(dirname "$0") 228 copyright="$(cat "${cwd}/copyright")" 229 osrelcmd=${cwd}/osrelease.sh
|
| /src/tests/lib/libc/c063/ |
| t_faccessat.c | 125 char cwd[MAXPATHLEN]; local 131 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1); 183 char cwd[MAXPATHLEN]; local 190 ATF_REQUIRE(getcwd(cwd, MAXPATHLEN)); 191 snprintf(abs_path, sizeof(abs_path), "%s/%s", cwd, FILE); 205 char cwd[MAXPATHLEN]; local 212 ATF_REQUIRE(getcwd(cwd, MAXPATHLEN)); 213 snprintf(abs_path, sizeof(abs_path), "%s/%s", cwd, DIR); 226 char cwd[MAXPATHLEN]; local 231 ATF_REQUIRE(getcwd(cwd, MAXPATHLEN)) [all...] |
| t_fchmodat.c | 138 char cwd[MAXPATHLEN]; local 144 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
| t_fstatat.c | 133 char cwd[MAXPATHLEN]; local 140 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
| t_openat.c | 128 char cwd[MAXPATHLEN]; local 134 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
| t_unlinkat.c | 123 char cwd[MAXPATHLEN]; local 129 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
| t_fchownat.c | 170 char cwd[MAXPATHLEN]; local 179 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
| t_utimensat.c | 171 char cwd[MAXPATHLEN]; local 177 RL(dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0));
|
| /src/usr.bin/ldd/ |
| ldd.c | 126 char cwd[MAXPATHLEN], path[MAXPATHLEN]; local 162 if (getcwd(cwd, sizeof(cwd)) == NULL) 170 strcpy(path, cwd);
|
| /src/bin/ksh/ |
| path.c | 29 * - if file starts with ./ or ../ append cwd and file to result 32 * then cwd is appended to result. 41 make_path(cwd, file, cdpathp, xsp, phys_pathp) 42 const char *cwd; 84 && (cwd && *cwd)) 86 len = strlen(cwd); 88 memcpy(xp, cwd, len); 90 if (!ISDIRSEP(cwd[len - 1]))
|
| /src/bin/csh/ |
| dir.c | 117 const char *cwd; local 122 if ((cwd = getenv("PWD")) != NULL) { 123 if (stat(cwd, &shp) != -1 && swd.st_dev == shp.st_dev && 125 ecp = cwd; 280 Char *dp, *cwd; local 282 cwd = xreallocarray(NULL, (size_t)(Strlen(dcwd->di_name) + 3), 284 (void)Strcpy(cwd, dcwd->di_name); 304 dp = Strrchr(cwd, '/'); 314 cwd[dotdot = Strlen(cwd)] = '/' [all...] |
| /src/tests/lib/libc/gen/posix_spawn/ |
| t_spawn.c | 320 printf("cwd: %s\n", testdir); 342 char cwd[PATH_MAX], filepath[PATH_MAX]; local 344 REQUIRE_LIBC(getcwd(cwd, sizeof(cwd)), NULL); 345 if (snprintf(filepath, sizeof(filepath), "%s/%s", cwd, FILENAME) 347 atf_tc_fail("too deep: %s", cwd); 445 char cwd[PATH_MAX], filepath[PATH_MAX]; local 448 REQUIRE_LIBC(getcwd(cwd, sizeof(cwd)), NULL); 449 if (snprintf(filepath, sizeof(filepath), "%s/%s", cwd, FILENAME [all...] |
| /src/tests/fs/common/ |
| fstest_nfs.c | 81 char cwd[MAXPATHLEN]; local 94 "/%s/%s.etherbus", getcwd(cwd, sizeof(cwd)), image); 96 snprintf(imagepath, sizeof imagepath, "/%s/%s", cwd, image);
|
| /src/usr.bin/make/ |
| meta.c | 143 * cwd causing getcwd to do a lot more work. 232 const char *cwd) 267 snprintf(buf, sizeof buf, "%s/%s", cwd, tname); 474 fprintf(fp, "CWD %s\n", getcwd(buf, sizeof buf)); 569 * and :tA will resolve that to cwd. 704 char cwd[MAXPATHLEN]; local 716 if (getcwd(cwd, sizeof cwd) == NULL) 719 Global_Set(".ERROR_CWD", cwd); 1030 static char cwd[MAXPATHLEN] local [all...] |
| /src/sys/compat/linux/arch/amd64/ |
| linux_machdep.h | 46 u_int16_t cwd; member in struct:linux__fpstate
|
| /src/libexec/httpd/ |
| lua-bozo.c | 196 char cwd[MAXPATHLEN], *path; local 198 getcwd(cwd, sizeof(cwd) - 1); 199 bozoasprintf(httpd, &path, "%s/%s", cwd, script);
|
| /src/usr.bin/make/unit-tests/ |
| modmisc.mk | 8 # strip cwd from path.
|
| /src/games/warp/ |
| warp.h | 311 EXT char *cwd INIT(NULL); /* current working directory */
|
| /src/libexec/ftpd/ |
| extern.h | 122 void cwd(const char *);
|
| ftpcmd.y | 139 USER PASS ACCT CWD CDUP SMNT 200 | CWD check_login CRLF 203 cwd(homedir); 206 | CWD check_login SP pathname CRLF 209 cwd($4); 217 cwd(".."); 1228 { "CWD", CWD, OSTR, 1, "[ <sp> directory-name ]", 0, }, 1292 { "XCWD", CWD, OSTR, 1, "[ <sp> directory-name ]", 0, },
|
| /src/sys/compat/linux/arch/i386/ |
| linux_ptrace.c | 79 long cwd; member in struct:linux_fpctx
|
| /src/sbin/fsck_lfs/ |
| dir.c | 303 fileerror(ino_t cwd, ino_t ino, const char *errmesg) 311 pwarn("PARENT=%lld\n", (long long)cwd); 312 getpathname(pathbuf, sizeof(pathbuf), cwd, ino);
|
| /src/distrib/sets/ |
| regpkg | 249 /^@cwd/ { prefix = $2; next } 473 # XXX: Work around yet another pkg_add bug: @cwd lines 477 # "@cwd /" line) will be the dir name passed to 653 @cwd*) 654 # There should be exactly one @cwd line. 797 # Ignores @cwd lines. This should be safe, given how
|