Searched refs:cwd (Results 1 - 25 of 68) sorted by relevance

123

/freebsd-10-stable/lib/libpam/modules/pam_chroot/
H A Dpam_chroot.c55 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 Dtempdir.c47 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 Dlsystem.c52 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 Dmeta2deps.py23 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 Dmeta2deps.sh22 # 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 Dtest_sparse_basic.c500 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 Dperform.c262 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 Dsh.dir.c64 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 Dcrtfastmath.c86 unsigned short int cwd; member in struct:__anon1058
/freebsd-10-stable/usr.sbin/pkg_install/lib/
H A Dpen.c107 char cwd[FILENAME_MAX]; local
135 if (!getcwd(cwd, FILENAME_MAX)) {
146 return pushPen(cwd);
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Bin/
H A Dpathopens.d66 * 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 Dpathopens.d66 * 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 Dfstest_nfs.c80 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 Dextern.h66 void cwd(const char *);
/freebsd-10-stable/libexec/ftpd/
H A Dextern.h38 void cwd(char *);
/freebsd-10-stable/contrib/wpa/src/utils/
H A Dos_internal.c137 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 Dos_unix.c212 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 Dmeta.c154 * 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 Dmodmisc.mk8 # strip cwd from path.
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/
H A Dt_unlinkat.c123 char cwd[MAXPATHLEN]; local
129 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_openat.c128 char cwd[MAXPATHLEN]; local
134 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_faccessat.c125 char cwd[MAXPATHLEN]; local
131 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_fstatat.c133 char cwd[MAXPATHLEN]; local
140 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_fchmodat.c133 char cwd[MAXPATHLEN]; local
139 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
/freebsd-10-stable/sys/boot/fdt/
H A Dfdt_loader_cmd.c113 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...]

Completed in 149 milliseconds

123