/freebsd-10.0-release/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.0-release/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.0-release/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.0-release/contrib/bmake/mk/ |
H A D | meta2deps.py | 21 them relative to 'cwd', we check relative to the last 74 def resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 76 Return an absolute path, resolving via cwd or last_dir if needed. 83 return cwd 85 return cwd + path[1:] 86 if last_dir == cwd: 88 for d in [last_dir, cwd]: 104 def abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 106 Return an absolute path, resolving via cwd or last_dir if needed. 110 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 220 # we track cwd and ldir (of interest) per pid 221 # CWD is bmake's cwd 223 ,C) CWD=$path cwd=$path ldir=$path 234 *) eval ldir_$lpid=$ldir cwd_$lpid=$cwd;; 236 eval ldir=\${ldir_$pid:-$CWD} cwd=\${cwd_$pid:-$CWD} 245 /*) cwd=$path;; 246 *) cwd [all...] |
/freebsd-10.0-release/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.0-release/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.0-release/contrib/gcc/config/i386/ |
H A D | crtfastmath.c | 86 unsigned short int cwd; member in struct:__anon965
|
/freebsd-10.0-release/contrib/libarchive/libarchive/test/ |
H A D | test_sparse_basic.c | 345 char *cwd; local 406 cwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */ 408 cwd = getcwd(NULL, 0); 410 if (!assert(cwd != NULL)) 412 if (!is_sparse_supported(cwd)) { 413 free(cwd); 441 free(cwd);
|
/freebsd-10.0-release/contrib/atf/atf-run/ |
H A D | fs.cpp | 253 std::auto_ptr< char > cwd; local 255 cwd.reset(getcwd(NULL, 0)); 257 cwd.reset(getcwd(NULL, MAXPATHLEN)); 259 if (cwd.get() == NULL) 263 return atf::fs::path(cwd.get());
|
/freebsd-10.0-release/contrib/bmake/ |
H A D | meta.c | 139 * cwd causing getcwd to do a lot more work. 232 char cwd[MAXPATHLEN]; local 245 if (realpath(dname, cwd)) 246 dname = cwd; 274 snprintf(buf, sizeof(buf), "%s/%s", cwd, tname); 599 * and :tA will resolve that to cwd. 684 char cwd[MAXPATHLEN]; local 703 getcwd(cwd, sizeof(cwd)); 704 Var_Set(".ERROR_CWD", cwd, VAR_GLOBA 867 static char cwd[MAXPATHLEN]; local [all...] |
/freebsd-10.0-release/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.0-release/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.0-release/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.0-release/crypto/heimdal/appl/ftp/ftpd/ |
H A D | extern.h | 66 void cwd(const char *);
|
/freebsd-10.0-release/libexec/ftpd/ |
H A D | extern.h | 42 void cwd(char *);
|
/freebsd-10.0-release/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.0-release/release/picobsd/tinyware/oinit/ |
H A D | oinit.c | 70 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-10.0-release/contrib/atf/atf-c/detail/ |
H A D | fs.c | 777 char *cwd; local 780 cwd = getcwd(NULL, 0); 782 cwd = getcwd(NULL, MAXPATHLEN); 784 if (cwd == NULL) { 789 err = atf_fs_path_init_fmt(p, "%s", cwd); 790 free(cwd);
|
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Target/ |
H A D | TargetList.cpp | 252 char cwd[PATH_MAX]; local 253 if (getcwd (cwd, sizeof(cwd))) 255 std::string cwd_user_exe_path (cwd);
|
/freebsd-10.0-release/sys/i386/linux/ |
H A D | linux_ptrace.c | 168 l_long cwd; member in struct:linux_pt_fpreg 181 linux_r->cwd = bsd_r->fpr_env[0]; 194 bsd_r->fpr_env[0] = linux_r->cwd; 205 l_ushort cwd; member in struct:linux_pt_fpxreg
|
/freebsd-10.0-release/sys/boot/fdt/ |
H A D | fdt_loader_cmd.c | 116 static char cwd[FDT_CWD_LEN] = "/"; variable 858 /* Handle path specification relative to cwd */ 859 len = strlen(cwd) + strlen(path) + 1; 863 strcpy(tmp, cwd); 875 strcpy(cwd, path); 947 path = cwd; 973 if (strcmp(cwd, "/") == 0) 1381 o = fdt_path_offset(fdtp, cwd); 1383 path = (char *)&cwd; 1387 path = cwd; [all...] |
/freebsd-10.0-release/contrib/sendmail/libsm/ |
H A D | mpeix.c | 588 ** we must obtain the cwd and restore it after the setuid(). 609 char *cwd; local 629 if ((cwd = getcwd(cwd_buf, PATH_MAX + 1)) == NULL)
|
/freebsd-10.0-release/contrib/groff/src/libs/libbib/ |
H A D | index.cpp | 444 const char *cwd = pool; local 445 int need_slash = (cwd[0] != 0 446 && strchr(DIR_SEPS, strchr(cwd, '\0')[-1]) == 0); 447 int len = strlen(cwd) + strlen(filename) + need_slash + 1; 453 strcpy(filename_buffer, cwd);
|