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

123

/freebsd-11.0-release/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-11.0-release/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-11.0-release/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-11.0-release/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]:
106 def abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr):
108 Return an absolute path, resolving via cwd or last_dir if needed.
112 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
258 *) eval ldir_$lpid=$ldir cwd_$lpid=$cwd;;
260 eval ldir=\${ldir_$pid:-$CWD} cwd=\${cwd_$pid:-$CWD}
269 /*) cwd=$path;;
270 *) cwd
[all...]
/freebsd-11.0-release/share/mk/
H A Dmeta2deps.py24 them relative to 'cwd', we check relative to the last
77 def resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr):
79 Return an absolute path, resolving via cwd or last_dir if needed.
86 return cwd
88 return cwd + path[1:]
89 if last_dir == cwd:
91 for d in [last_dir, cwd]:
107 def abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr):
109 Return an absolute path, resolving via cwd or last_dir if needed.
113 rpath = resolve(path, cwd, last_di
[all...]
H A Dmeta2deps.sh23 # CWD "cwd"
31 # C "pid" "cwd"
40 # normal 'C'hdir entry, and "cwd" is remembered so that it can
245 # we track cwd and ldir (of interest) per pid
246 # CWD is bmake's cwd
248 ,C) CWD=$path cwd=$path ldir=$path
259 *) eval ldir_$lpid=$ldir cwd_$lpid=$cwd;;
261 eval ldir=\${ldir_$pid:-$CWD} cwd=\${cwd_$pid:-$CWD}
270 /*) cwd=$path;;
271 *) cwd
[all...]
/freebsd-11.0-release/contrib/libarchive/libarchive/test/
H A Dtest_sparse_basic.c439 char *cwd; local
501 cwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */
503 cwd = getcwd(NULL, 0);
505 if (!assert(cwd != NULL))
507 if (!is_sparse_supported(cwd)) {
508 free(cwd);
537 free(cwd);
542 char *cwd; local
551 cwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */
553 cwd
[all...]
/freebsd-11.0-release/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-11.0-release/contrib/gcc/config/i386/
H A Dcrtfastmath.c86 unsigned short int cwd; member in struct:__anon1238
/freebsd-11.0-release/contrib/bmake/
H A Dmeta.c150 * cwd causing getcwd to do a lot more work.
243 const char *cwd)
276 snprintf(buf, sizeof(buf), "%s/%s", cwd, tname);
610 * and :tA will resolve that to cwd.
710 char cwd[MAXPATHLEN]; local
729 getcwd(cwd, sizeof(cwd));
730 Var_Set(".ERROR_CWD", cwd, VAR_GLOBAL, 0);
922 static char cwd[MAXPATHLEN]; local
992 if (getcwd(cwd, sizeo
240 meta_name(struct GNode *gn, char *mname, size_t mnamelen, const char *dname, const char *tname, const char *cwd) argument
[all...]
/freebsd-11.0-release/crypto/heimdal/appl/ftp/ftpd/
H A Dextern.h66 void cwd(const char *);
/freebsd-11.0-release/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-11.0-release/libexec/ftpd/
H A Dextern.h38 void cwd(char *);
/freebsd-11.0-release/contrib/wpa/src/utils/
H A Dos_internal.c150 char *buf = NULL, *cwd, *ret; local
160 cwd = getcwd(buf, len);
161 if (cwd == NULL) {
172 cwd_len = os_strlen(cwd);
177 os_memcpy(ret, cwd, cwd_len);
/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/c063/
H A Dt_faccessat.c127 char cwd[MAXPATHLEN]; local
133 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_fchmodat.c135 char cwd[MAXPATHLEN]; local
141 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_fstatat.c135 char cwd[MAXPATHLEN]; local
142 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_openat.c130 char cwd[MAXPATHLEN]; local
136 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
H A Dt_unlinkat.c125 char cwd[MAXPATHLEN]; local
131 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
/freebsd-11.0-release/contrib/bmake/unit-tests/
H A Dmodmisc.mk8 # strip cwd from path.
/freebsd-11.0-release/contrib/llvm/tools/lldb/source/Target/
H A DProcessLaunchInfo.cpp450 const char *cwd = getcwd(current_working_dir, sizeof(current_working_dir)); local
451 if (cwd && cwd[0])
452 new_path += cwd;
/freebsd-11.0-release/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerPlatform.cpp363 char cwd[PATH_MAX]; local
364 if (getcwd(cwd, sizeof(cwd)) == NULL)
368 response.PutBytesAsRawHex8(cwd, strlen(cwd));
/freebsd-11.0-release/release/picobsd/tinyware/oinit/
H A Doinit.c70 char cwd[BUFSIZE]; variable
135 getcwd(cwd,BUFSIZE);
146 if(getcwd(cwd,BUFSIZE)==NULL) return(-1);
147 printf("%s\n",cwd);
526 getcwd(cwd,BUFSIZE);
533 printf("(%d)%s%s",mypid,cwd,prompt);
935 getcwd(cwd,BUFSIZE);
/freebsd-11.0-release/contrib/atf/atf-c/detail/
H A Dfs.c773 char *cwd; local
776 cwd = getcwd(NULL, 0);
778 cwd = getcwd(NULL, MAXPATHLEN);
780 if (cwd == NULL) {
785 err = atf_fs_path_init_fmt(p, "%s", cwd);
786 free(cwd);

Completed in 258 milliseconds

123