/freebsd/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. 91 return cwd 95 return cwd + path 96 if last_dir == cwd: 98 for d in [last_dir, cwd]: 141 def abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 143 Return an absolute path, resolving via cwd or last_dir if needed. 146 rpath = resolve(path, cwd, last_di 74 resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr) global() argument 135 abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr) global() argument 585 parse_path(self, path, cwd, op=None, w=[]) global() argument [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 256 # we track cwd and ldir (of interest) per pid 257 # CWD is bmake's cwd 259 ,C) CWD=$path cwd=$path ldir=$path 283 eval ldir=\${ldir_$pid:-$CWD} cwd=\${cwd_$pid:-$CWD} 294 /*) cwd=$path;; 295 *) cwd=`cd $cwd/ [all...] |
/freebsd/share/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. 91 return cwd 95 return cwd + path 96 if last_dir == cwd: 98 for d in [last_dir, cwd]: 141 def abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 143 Return an absolute path, resolving via cwd or last_dir if needed. 146 rpath = resolve(path, cwd, last_di 74 resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr) global() argument 135 abspath(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr) global() argument 585 parse_path(self, path, cwd, op=None, w=[]) global() argument [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 256 # we track cwd and ldir (of interest) per pid 257 # CWD is bmake's cwd 259 ,C) CWD=$path cwd=$path ldir=$path 283 eval ldir=\${ldir_$pid:-$CWD} cwd=\${cwd_$pid:-$CWD} 294 /*) cwd=$path;; 295 *) cwd=`cd $cwd/ [all...] |
/freebsd/sbin/bectl/tests/ |
H A D | bectl_test.sh | 111 cwd=$(realpath .) 113 disk=${cwd}/disk.img 114 mount=${cwd}/mnt 174 cwd=$(realpath .) 176 disk=${cwd}/disk.img 177 mount=${cwd}/mnt 262 cwd=$(realpath .) 264 disk=${cwd}/disk.img 265 mount=${cwd}/mnt 298 cwd=$(realpath .) [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/migration/ |
H A D | migration.kshlib | 53 cwd=$PWD 56 cd $cwd || return 1 86 cwd=$PWD 90 cd $cwd || return 1 110 cwd=$PWD 114 cd $cwd
|
/freebsd/contrib/less/ |
H A D | lsystem.c | 53 char cwd[FILENAME_MAX+1]; in lsystem() 82 getcwd(cwd, FILENAME_MAX); in lsystem() 202 chdir(cwd); in lsystem() 208 if (cwd[1] == ':') in lsystem() 210 if (cwd[0] >= 'a' && cwd[0] <= 'z') in lsystem() 211 setdisk(cwd[0] - 'a'); in lsystem() 212 else if (cwd[0] >= 'A' && cwd[0] <= 'Z') in lsystem() 213 setdisk(cwd[ in lsystem() 54 char cwd[FILENAME_MAX+1]; lsystem() local [all...] |
/freebsd/tests/sys/cddl/zfs/tests/migration/ |
H A D | migration.kshlib | 48 cwd=$PWD 55 cd $cwd 89 cwd=$PWD 110 cd $cwd 123 cwd=$PWD 144 cd $cwd
|
H A D | migration_004_pos.ksh | 68 cwd=$PWD 75 cd $cwd 76 (( $? != 0 )) && log_untested "Could not change directory to $cwd"
|
H A D | migration_005_pos.ksh | 68 cwd=$PWD 75 cd $cwd 76 (( $? != 0 )) && log_untested "Could not change directory to $cwd"
|
H A D | migration_006_pos.ksh | 68 cwd=$PWD 75 cd $cwd 76 (( $? != 0 )) && log_untested "Could not change directory to $cwd"
|
/freebsd/lib/libpam/modules/pam_chroot/ |
H A D | pam_chroot.c | 54 const char *dir, *end, *cwd, *user; in pam_sm_open_session() local 73 cwd = end + 2; in pam_sm_open_session() 75 if ((cwd = openpam_get_option(pamh, "cwd")) == NULL) in pam_sm_open_session() 76 cwd = "/"; in pam_sm_open_session() 92 if (chdir(cwd) == -1) { in pam_sm_open_session() 96 pam_setenv(pamh, "HOME", cwd, 1); in pam_sm_open_session()
|
/freebsd/contrib/tcsh/ |
H A D | sh.dir.c | 62 Char *cwd; in agetcwd() local 83 cwd = SAVE(buf); in agetcwd() 85 return cwd; in agetcwd() 139 char *cwd; in dinit() local 144 if (swd_ok && (cwd = getenv("PWD")) != NULL) { in dinit() 145 if (stat(cwd, &shp) != -1 && in dinit() 148 tcp = SAVE(cwd); in dinit() 339 Char *dp, *cwd; in dnormalize() local 374 cwd = xmalloc((Strlen(dcwd->di_name) + 3) * sizeof(Char)); in dnormalize() 375 (void) Strcpy(cwd, dcwd->di_name); in dnormalize() [all …]
|
/freebsd/lib/libpathconv/tests/ |
H A D | abs2rel.c | 39 char cwd[MAXPATHLEN]; in main() local 46 if (!getcwd(cwd, MAXPATHLEN)) { in main() 51 strcpy(cwd, argv[2]); in main() 53 if (abs2rel(argv[1], cwd, result, MAXPATHLEN)) { in main()
|
H A D | rel2abs.c | 38 char cwd[MAXPATHLEN]; in main() local 45 if (!getcwd(cwd, MAXPATHLEN)) { in main() 50 strcpy(cwd, argv[2]); in main() 52 if (rel2abs(argv[1], cwd, result, MAXPATHLEN)) { in main()
|
/freebsd/lib/libbe/tests/ |
H A D | be_create.sh | 69 cwd=$(atf_get_srcdir) 77 if [ -f "${cwd}/disk.img" ]; then 78 rm ${cwd}/disk.img 100 cwd=$(atf_get_srcdir) 102 disk=${cwd}/disk.img 103 mount=${cwd}/mnt 104 prog=${cwd}/./target_prog
|
/freebsd/contrib/googletest/googletest/src/ |
H A D | gtest-filepath.cc | 111 char cwd[GTEST_PATH_MAX_ + 1] = {'\0'}; in GetCurrentDir() 112 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir() 114 char cwd[GTEST_PATH_MAX_ + 1] = {'\0'}; in GetCurrentDir() 115 char* result = getcwd(cwd, sizeof(cwd)); in GetCurrentDir() 120 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir() 122 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir()
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_sparse_basic.c | 506 char *cwd; in DEFINE_TEST() local 587 cwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */ in DEFINE_TEST() 589 cwd = getcwd(NULL, 0); in DEFINE_TEST() 591 if (!assert(cwd != NULL)) in DEFINE_TEST() 593 if (!is_sparse_supported(cwd)) { in DEFINE_TEST() 594 free(cwd); in DEFINE_TEST() 651 free(cwd); in DEFINE_TEST() 656 char *cwd; in DEFINE_TEST() local 674 cwd = getcwd(NULL, PATH_MAX);/* Solaris getcwd needs the size. */ in DEFINE_TEST() 676 cwd = getcwd(NULL, 0); in DEFINE_TEST() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/ |
H A D | zpool_destroy_002_pos.ksh | 59 [[ -n $cwd ]] && log_must cd $cwd 78 typeset cwd="" 95 cwd=$PWD
|
/freebsd/tools/test/stress2/misc/ |
H A D | fsync2.sh | 85 char cwd[1024]; 87 if (getcwd(cwd, sizeof(cwd)) == NULL) 100 if (chdir(cwd) == -1)
|
/freebsd/tests/sys/kern/ |
H A D | sysctl_kern_proc.c | 65 char cwd[PATH_MAX]; in ATF_TC_BODY() local 90 ATF_REQUIRE(getcwd(cwd, sizeof(cwd)) == cwd); in ATF_TC_BODY() 91 ATF_REQUIRE(strcmp(cwd, kfile.kf_path) == 0); in ATF_TC_BODY()
|
/freebsd/contrib/bmake/ |
H A D | meta.c | 241 const char *cwd) in meta_name() argument 276 snprintf(buf, sizeof buf, "%s/%s", cwd, tname); in meta_name() 746 char cwd[MAXPATHLEN]; in meta_job_error() local 758 if (getcwd(cwd, sizeof cwd) == NULL) in meta_job_error() 761 Global_Set(".ERROR_CWD", cwd); in meta_job_error() 1077 static char cwd[MAXPATHLEN]; in meta_oodate() local 1142 if (getcwd(cwd, sizeof cwd) == NULL) in meta_oodate() 1144 cwdlen = strlen(cwd); in meta_oodate() 1146 strlcpy(lcwd, cwd, sizeof lcwd); in meta_oodate() 1147 strlcpy(latestdir, cwd, sizeof latestdir); in meta_oodate() [all …]
|
/freebsd/contrib/capsicum-test/ |
H A D | fexecve.cc | 176 char cwd[1024]; in TEST_F() local 177 getcwd(cwd, sizeof(cwd)); in TEST_F() 190 char *p = cwd + strlen(cwd); in TEST_F()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_destroy/ |
H A D | zpool_destroy_002_pos.ksh | 52 [[ -n $cwd ]] && log_must cd $cwd 111 log_must cd $cwd
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inuse/ |
H A D | inuse_003_pos.ksh | 92 typeset cwd="" 145 cwd=$PWD 151 log_must cd $cwd
|