/freebsd-11-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-11-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-11-stable/contrib/less/ |
H A D | lsystem.c | 57 char cwd[FILENAME_MAX+1]; local 86 getcwd(cwd, FILENAME_MAX); 211 chdir(cwd); 217 if (cwd[1] == ':') 219 if (cwd[0] >= 'a' && cwd[0] <= 'z') 220 setdisk(cwd[0] - 'a'); 221 else if (cwd[0] >= 'A' && cwd[0] <= 'Z') 222 setdisk(cwd[ [all...] |
/freebsd-11-stable/share/mk/ |
H A D | meta2deps.py | 24 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 D | meta2deps.sh | 23 # 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-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-11-stable/lib/libbe/tests/ |
H A D | be_create.sh | 70 cwd=$(atf_get_srcdir) 78 if [ -f "${cwd}/disk.img" ]; then 79 rm ${cwd}/disk.img 91 cwd=$(atf_get_srcdir) 93 disk=${cwd}/disk.img 94 mount=${cwd}/mnt 95 prog=${cwd}/./target_prog
|
/freebsd-11-stable/sbin/bectl/tests/ |
H A D | bectl_test.sh | 96 cwd=$(realpath .) 98 disk=${cwd}/disk.img 99 mount=${cwd}/mnt 146 cwd=$(realpath .) 148 disk=${cwd}/disk.img 149 mount=${cwd}/mnt 226 cwd=$(realpath .) 228 disk=${cwd}/disk.img 229 mount=${cwd}/mnt 254 cwd [all...] |
/freebsd-11-stable/contrib/tcsh/ |
H A D | sh.dir.c | 61 Char *cwd; local 82 cwd = SAVE(buf); 84 return cwd; 138 char *cwd; local 143 if (swd_ok && (cwd = getenv("PWD")) != NULL) { 144 if (stat(cwd, &shp) != -1 && 147 tcp = SAVE(cwd); 344 Char *dp, *cwd; local 379 cwd = xmalloc((Strlen(dcwd->di_name) + 3) * sizeof(Char)); 380 (void) Strcpy(cwd, dcw [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Initialization/ |
H A D | SystemInitializerCommon.cpp | 81 if (llvm::Expected<std::string> cwd = 83 llvm::StringRef working_dir = llvm::StringRef(*cwd).rtrim(); 90 return cwd.takeError();
|
/freebsd-11-stable/contrib/gcc/config/i386/ |
H A D | crtfastmath.c | 86 unsigned short int cwd; member in struct:__anon1238
|
/freebsd-11-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-11-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-11-stable/crypto/heimdal/appl/ftp/ftpd/ |
H A D | extern.h | 66 void cwd(const char *);
|
/freebsd-11-stable/libexec/ftpd/ |
H A D | extern.h | 38 void cwd(char *);
|
/freebsd-11-stable/contrib/bmake/ |
H A D | meta.c | 154 * cwd causing getcwd to do a lot more work. 247 const char *cwd) 282 snprintf(buf, sizeof(buf), "%s/%s", cwd, tname); 621 * and :tA will resolve that to cwd. 726 char cwd[MAXPATHLEN]; local 745 getcwd(cwd, sizeof(cwd)); 746 Var_Set(".ERROR_CWD", cwd, VAR_GLOBAL, 0); 1031 static char cwd[MAXPATHLEN]; local 1101 if (getcwd(cwd, sizeo 244 meta_name(char *mname, size_t mnamelen, const char *dname, const char *tname, const char *cwd) argument [all...] |
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | os_internal.c | 150 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-stable/contrib/bmake/unit-tests/ |
H A D | modmisc.mk | 8 # strip cwd from path.
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/ |
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_faccessat.c | 125 char cwd[MAXPATHLEN]; local 131 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);
|
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);
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectReproducer.cpp | 58 "cwd", 398 Expected<std::string> cwd = variable 400 if (!cwd) { 401 SetError(result, cwd.takeError()); 404 result.AppendMessage(*cwd);
|