/freebsd-10-stable/lib/libpam/modules/pam_chroot/ |
H A D | pam_chroot.c | 55 const char *dir, *end, *cwd, *user; local 74 cwd = end + 2; 76 if ((cwd = openpam_get_option(pamh, "cwd")) == NULL) 77 cwd = "/"; 93 if (chdir(cwd) == -1) { 97 pam_setenv(pamh, "HOME", cwd, 1);
|
/freebsd-10-stable/contrib/apr/file_io/unix/ |
H A D | tempdir.c | 47 char *cwd; local 116 if (APR_SUCCESS == apr_filepath_get(&cwd, APR_FILEPATH_NATIVE, p)) { 117 if (test_tempdir(cwd, p)) { 118 dir = cwd;
|
/freebsd-10-stable/contrib/less/ |
H A D | lsystem.c | 52 char cwd[FILENAME_MAX+1]; local 81 getcwd(cwd, FILENAME_MAX); 204 chdir(cwd); 210 if (cwd[1] == ':') 212 if (cwd[0] >= 'a' && cwd[0] <= 'z') 213 setdisk(cwd[0] - 'a'); 214 else if (cwd[0] >= 'A' && cwd[0] <= 'Z') 215 setdisk(cwd[ [all...] |
/freebsd-10-stable/contrib/bmake/mk/ |
H A D | meta2deps.py | 23 them relative to 'cwd', we check relative to the last 76 def resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 78 Return an absolute path, resolving via cwd or last_dir if needed. 85 return cwd 87 return cwd + path[1:] 88 if last_dir == cwd: 90 for d in [last_dir, cwd]: 133 def abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 135 Return an absolute path, resolving via cwd or last_dir if needed. 138 rpath = resolve(path, cwd, last_di [all...] |
H A D | meta2deps.sh | 22 # CWD "cwd" 30 # C "pid" "cwd" 39 # normal 'C'hdir entry, and "cwd" is remembered so that it can 244 # we track cwd and ldir (of interest) per pid 245 # CWD is bmake's cwd 247 ,C) CWD=$path cwd=$path ldir=$path 260 eval ldir=\${ldir_$pid:-$CWD} cwd=\${cwd_$pid:-$CWD} 269 /*) cwd=$path;; 270 *) cwd=`cd $cwd/ [all...] |
/freebsd-10-stable/contrib/libarchive/libarchive/test/ |
H A D | test_sparse_basic.c | 500 char *cwd; local 581 cwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */ 583 cwd = getcwd(NULL, 0); 585 if (!assert(cwd != NULL)) 587 if (!is_sparse_supported(cwd)) { 588 free(cwd); 618 free(cwd); 623 char *cwd; local 641 cwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */ 643 cwd [all...] |
/freebsd-10-stable/usr.sbin/pkg_install/info/ |
H A D | perform.c | 262 char *cwd = NULL; local 266 cwd = getcwd(NULL, MAXPATHLEN); 267 asprintf(&resolved_path, "%s/%s/", cwd, pathname); 274 if (cwd != NULL) 275 free(cwd); 302 cmp_path(const char *target, const char *current, const char *cwd) argument 307 asprintf(&temp, "%s/%s", cwd, current); 374 char *cwd = NULL; local 390 cwd = itr->name; 395 if (!cmp_path(wp->file, itr->name, cwd)) [all...] |
/freebsd-10-stable/contrib/tcsh/ |
H A D | sh.dir.c | 64 Char *cwd; local 85 cwd = SAVE(buf); 87 return cwd; 141 char *cwd; local 146 if (swd_ok && (cwd = getenv("PWD")) != NULL) { 147 if (stat(cwd, &shp) != -1 && 150 tcp = SAVE(cwd); 347 Char *dp, *cwd; local 382 cwd = xmalloc((Strlen(dcwd->di_name) + 3) * sizeof(Char)); 383 (void) Strcpy(cwd, dcw [all...] |
/freebsd-10-stable/contrib/gcc/config/i386/ |
H A D | crtfastmath.c | 86 unsigned short int cwd; member in struct:__anon1058
|
/freebsd-10-stable/usr.sbin/pkg_install/lib/ |
H A D | pen.c | 107 char cwd[FILENAME_MAX]; local 135 if (!getcwd(cwd, FILENAME_MAX)) { 146 return pushPen(cwd);
|
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Bin/ |
H A D | pathopens.d | 66 * This routine takes the cwd and the filename, and generates a 68 * ignore the cwd. This also checks if the cwd ends in an 73 self->dir = strjoin(cwd, self->join);
|
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Proc/ |
H A D | pathopens.d | 66 * This routine takes the cwd and the filename, and generates a 68 * ignore the cwd. This also checks if the cwd ends in an 73 self->dir = strjoin(cwd, self->join);
|
/freebsd-10-stable/contrib/netbsd-tests/fs/common/ |
H A D | fstest_nfs.c | 80 char cwd[MAXPATHLEN]; local 91 sprintf(ethername, "/%s/%s.etherbus", getcwd(cwd, sizeof(cwd)), image); 93 sprintf(imagepath, "/%s/%s", cwd, image);
|
/freebsd-10-stable/crypto/heimdal/appl/ftp/ftpd/ |
H A D | extern.h | 66 void cwd(const char *);
|
/freebsd-10-stable/libexec/ftpd/ |
H A D | extern.h | 38 void cwd(char *);
|
/freebsd-10-stable/contrib/wpa/src/utils/ |
H A D | os_internal.c | 137 char *buf = NULL, *cwd, *ret; local 147 cwd = getcwd(buf, len); 148 if (cwd == NULL) { 159 cwd_len = strlen(cwd); 164 os_memcpy(ret, cwd, cwd_len);
|
H A D | os_unix.c | 212 char *buf = NULL, *cwd, *ret; local 223 cwd = getcwd(buf, len); 224 if (cwd == NULL) { 238 cwd_len = os_strlen(cwd); 243 os_memcpy(ret, cwd, cwd_len);
|
/freebsd-10-stable/contrib/bmake/ |
H A D | meta.c | 154 * cwd causing getcwd to do a lot more work. 247 const char *cwd) 280 snprintf(buf, sizeof(buf), "%s/%s", cwd, tname); 614 * and :tA will resolve that to cwd. 719 char cwd[MAXPATHLEN]; local 738 getcwd(cwd, sizeof(cwd)); 739 Var_Set(".ERROR_CWD", cwd, VAR_GLOBAL, 0); 1022 static char cwd[MAXPATHLEN]; local 1092 if (getcwd(cwd, sizeo 244 meta_name(char *mname, size_t mnamelen, const char *dname, const char *tname, const char *cwd) argument [all...] |
/freebsd-10-stable/contrib/bmake/unit-tests/ |
H A D | modmisc.mk | 8 # strip cwd from path.
|
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_unlinkat.c | 123 char cwd[MAXPATHLEN]; local 129 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
H A D | t_openat.c | 128 char cwd[MAXPATHLEN]; local 134 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
H A D | t_faccessat.c | 125 char cwd[MAXPATHLEN]; local 131 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
H A D | t_fstatat.c | 133 char cwd[MAXPATHLEN]; local 140 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
H A D | t_fchmodat.c | 133 char cwd[MAXPATHLEN]; local 139 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
|
/freebsd-10-stable/sys/boot/fdt/ |
H A D | fdt_loader_cmd.c | 113 static char cwd[FDT_CWD_LEN] = "/"; variable 808 /* Handle path specification relative to cwd */ 809 len = strlen(cwd) + strlen(path) + 1; 813 strcpy(tmp, cwd); 825 strcpy(cwd, path); 897 path = cwd; 923 if (strcmp(cwd, "/") == 0) 1330 o = fdt_path_offset(fdtp, cwd); 1332 path = (char *)&cwd; 1336 path = cwd; [all...] |