Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 2472) sorted by relevance

12345678910>>...99

/openbsd/gnu/llvm/libcxx/include/__filesystem/
H A Doperations.h37 _LIBCPP_FUNC_VIS path __absolute(const path&, error_code* __ec = nullptr);
38 _LIBCPP_FUNC_VIS path __canonical(const path&, error_code* __ec = nullptr);
50 _LIBCPP_FUNC_VIS bool __equivalent(const path&, const path&, error_code* __ec = nullptr);
57 _LIBCPP_FUNC_VIS path __weakly_canonical(path const& __p, error_code* __ec = nullptr);
58 _LIBCPP_FUNC_VIS path __read_symlink(const path&, error_code* __ec = nullptr);
61 _LIBCPP_FUNC_VIS void __rename(const path& __from, const path& __to, error_code* __ec = nullptr);
65 inline _LIBCPP_HIDE_FROM_ABI path absolute(const path& __p) { return __absolute(__p); } in absolute()
148 inline _LIBCPP_INLINE_VISIBILITY path proximate(const path& __p, const path& __base, error_code& __… in proximate()
163 inline _LIBCPP_INLINE_VISIBILITY path relative(const path& __p, const path& __base, error_code& __e… in relative()
166 return path(); in relative()
[all …]
/openbsd/gnu/llvm/libcxx/include/
H A Dfilesystem28 path(const path& p);
29 path(path&& p) noexcept;
41 path& operator=(const path& p);
52 path& operator/=(const path& p);
60 path& operator+=(const path& x);
78 path& replace_extension(const path& replacement = path());
89 friend path operator/(const path& lhs, const path& rhs);
269 path absolute(const path& p);
272 path canonical(const path& p);
386 path relative(const path& p, const path& base=current_path());
[all …]
/openbsd/regress/lib/libc/dirname/
H A Ddirname_test.c17 char path[2 * PATH_MAX]; in main() local
25 strlcpy(path, "/", sizeof(path)); in main()
27 strlcat(path, dir, sizeof(path)); in main()
29 strlcat(path, fname, sizeof(path)); in main()
30 str = dirname(path); in main()
57 strlcpy(path, "", sizeof(path)); in main()
58 str = dirname(path); in main()
64 strlcat(path, "/", sizeof(path)); /* path cleared above */ in main()
70 strlcpy(path, "/", sizeof(path)); /* reset path */ in main()
72 strlcat(path, dir, sizeof(path)); in main()
[all …]
/openbsd/gnu/usr.bin/perl/dist/PathTools/lib/File/Spec/
H A DOS2.pm25 sub path { subroutine
26 my $path = $ENV{PATH};
27 $path =~ s:\\:/:g;
28 my @path = split(';',$path);
30 return @path;
58 $path =~ s|\\|/|g;
66 return $path;
74 $path =~
82 $path =~
139 $path = $self->rel2abs( $path ) ;
[all …]
H A DVMS.pm72 my($self,$path) = @_;
78 if ($path =~ m|/|) {
80 $path = $self->SUPER::canonpath($path);
83 $path = $pathify ? vmspath($path) : vmsify($path);
87 $path =~ s/(?<!\^)>/]/;
117 $path =~ s/(?<!\^)\[\]// unless $path eq '[]';
118 return $unix_rpt ? unixify($path) : $path;
189 my $spath = $path;
323 sub path { subroutine
443 my($path,$base) = @_;
[all …]
H A DWin32.pm168 sub path { subroutine
170 s/"//g for @path;
171 @path = grep length, @path;
172 unshift(@path, ".");
173 return @path;
218 $path =~
224 $path =~
402 $path =~ s{(?:
411 while ( $path =~ s{(?:
433 if $path eq ""
[all …]
H A DUnix.pm44 my ($self,$path) = @_;
56 && ( $path =~ s{^(//[^/]+)/?\z}{}s || $path =~ s{^(//[^/]+)/}{/}s ) ) {
66 $path =~ s|^(?:\./)+||s unless $path eq "./"; # ./xx -> xx
69 $path =~ s|/\z|| unless $path eq "/"; # xx/ -> xx
70 return "$node$path";
254 sub path { subroutine
258 return @path;
400 ($path, $base) = map $self->canonpath($_), $path, $base;
406 ($path, $base) = map $self->rel2abs($_), $path, $base;
518 $path = $self->catdir( $base, $path ) ;
[all …]
H A DMac.pm38 my ($self,$path) = @_;
39 return $path;
414 sub path { subroutine
453 $path =~
518 return @result if ( (!defined($path)) || ($path eq '') );
584 $path .= ':' unless (substr($path, -1) eq ':'); # ensure trailing ':'
589 $path .= $file;
592 return $path;
637 return $path;
646 $path = $self->rel2abs( $path ) ;
[all …]
/openbsd/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/
H A Dcompatibility.py16 def _relpath_nt(path, start=os.path.curdir): argument
19 if not path:
21 start_list = os.path.abspath(start).split(os.path.sep)
22 path_list = os.path.abspath(path).split(os.path.sep)
24 unc_path, rest = os.path.splitunc(path)
41 return os.path.curdir
47 def _relpath_posix(path, start=os.path.curdir): argument
50 if not path:
53 start_list = os.path.abspath(start).split(os.path.sep)
54 path_list = os.path.abspath(path).split(os.path.sep)
[all …]
/openbsd/gnu/usr.bin/perl/ext/FileCache/t/
H A D03append.t12 for my $path ( @files ){
13 cacheout $path;
14 print $path "$path 3\n";
17 cacheout $path;
18 print $path "$path 33\n";
21 open($path, '<', $path);
23 close($path);
30 cacheout $path;
31 print $path "$path 333\n";
34 open($path, '<', $path);
[all …]
H A D02maxopen.t11 for my $path ( @files ){
12 cacheout $path;
13 print $path "$path 1\n";
17 for my $path ( @files ){
18 ok(fileno($path) || $path =~ /^max_(?:foo|bar)$/);
20 print $path "$path 2\n";
21 close($path);
22 open($path, '<', $path);
23 <$path>;
24 push @cat, <$path>;
[all …]
/openbsd/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/test/
H A Dtest_discovery.py55 return not path.endswith('dir') and not 'another_dir' in path
59 loader._get_module_from_name = lambda path: path + ' module'
93 os.path.isdir = lambda path: True
96 os.path.isfile = lambda path: os.path.basename(path) not in directories
104 self.path = path
106 if os.path.basename(path) == 'test_directory':
113 return self.path == other.path
153 os.path.isfile = lambda path: False
162 full_path = os.path.abspath(os.path.normpath('/foo'))
170 os.path.isfile = lambda path: True
[all …]
/openbsd/regress/lib/libc/basename/
H A Dbasename_test.c16 char path[2 * PATH_MAX]; in main() local
23 strlcpy(path, "/", sizeof(path)); in main()
24 strlcat(path, dir, sizeof(path)); in main()
25 strlcat(path, fname, sizeof(path)); in main()
26 str = basename(path); in main()
53 strlcpy(path, "", sizeof(path)); in main()
54 str = basename(path); in main()
60 strlcat(path, "/", sizeof(path)); /* path cleared above */ in main()
66 strlcpy(path, "/", sizeof(path)); in main()
67 strlcat(path, dir, sizeof(path)); in main()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Win32/t/
H A DCreateFile.t5 my $path = "testing-$$";
6 rmdir($path) if -d $path;
7 unlink($path) if -f $path;
11 ok(!-d $path);
12 ok(!-f $path);
15 ok(-d $path);
20 ok(rmdir($path));
21 ok(!-d $path);
24 ok(-f $path);
25 ok(-s $path, 0);
[all …]
/openbsd/sys/net/
H A Dpf_ruleset.c98 int c = strcmp(a->path, b->path); in pf_anchor_compare()
121 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor()
133 path++; in pf_find_ruleset()
134 if (!*path) in pf_find_ruleset()
150 p = path; in pf_get_leaf_ruleset()
163 leaf = path; in pf_get_leaf_ruleset()
206 strlcpy(anchor->path, parent->path, sizeof(anchor->path)); in pf_create_anchor()
207 strlcat(anchor->path, "/", sizeof(anchor->path)); in pf_create_anchor()
209 strlcat(anchor->path, anchor->name, sizeof(anchor->path)); in pf_create_anchor()
254 path++; in pf_find_or_create_ruleset()
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/Support/
H A DPath.h25 namespace path {
82 friend const_iterator begin(StringRef path, Style style);
83 friend const_iterator end(StringRef path);
107 friend reverse_iterator rbegin(StringRef path, Style style);
108 friend reverse_iterator rend(StringRef path);
127 const_iterator end(StringRef path);
137 reverse_iterator rend(StringRef path);
223 void append(SmallVectorImpl<char> &path, const Twine &a,
269 inline void make_preferred(SmallVectorImpl<char> &path,
273 native(path, style);
[all …]
/openbsd/gnu/llvm/lldb/source/Host/common/
H A DFileSystem.cpp149 bool FileSystem::Exists(const Twine &path) const { return m_fs->exists(path); } in Exists()
176 m_fs->isLocal(path, b); in IsLocal()
219 SmallString<128> path; in MakeAbsolute() local
237 if (path.empty()) in Resolve()
241 SmallString<128> resolved(path.begin(), path.end()); in Resolve()
243 Resolver.ResolveFullPath(llvm::StringRef(path.begin(), path.size()), in Resolve()
250 path.clear(); in Resolve()
263 SmallString<128> path; in Resolve() local
267 Resolve(path); in Resolve()
351 llvm::StringRef parent = llvm::sys::path::parent_path(path); in ResolveExecutableLocation()
[all …]
/openbsd/usr.bin/rsync/
H A Dmktemp.c86 len = strlen(path); in mktemp_internalat()
91 ep = path + len - slen; in mktemp_internalat()
212 mkstempat(int fd, char *path) in mkstempat() argument
229 return path; in mkstemplinkat()
239 mkstempfifoat(int fd, char *path) in mkstempfifoat() argument
244 return path; in mkstempfifoat()
257 if (mktemp_internalat(fd, path, 0, in mkstempnodat()
260 return path; in mkstempnodat()
275 return path; in mkstempsock()
292 dirlen = cp - path; in mktemplate()
[all …]
/openbsd/gnu/llvm/clang/bindings/python/tests/cindex/
H A Dtest_translation_unit.py28 kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS')
55 path = os.path.join(kInputsDir, 'hello.cpp')
60 path = os.path.join(kInputsDir, 'hello.cpp')
67 path = os.path.join(kInputsDir, 'parse_arguments.c')
165 self.assertTrue(os.path.exists(path))
166 self.assertGreater(os.path.getsize(path), 0)
175 self.assertTrue(os.path.exists(path))
176 self.assertGreater(os.path.getsize(path), 0)
184 self.assertFalse(os.path.exists(os.path.dirname(path)))
198 self.assertTrue(os.path.exists(path))
[all …]
/openbsd/gnu/usr.bin/perl/cpan/File-Temp/lib/File/
H A DTemp.pm565 return (undef, $path) unless -e $path;
638 return $path;
671 my $path = shift;
704 unless (-d $path) {
735 my $path = shift;
763 $path = File::Spec->rel2abs($path);
1094 ${*$fh} = $path;
2146 croak "unlink0: $path has become a directory!" if -d $path;
2220 my @path = stat $path;
2222 unless (@path) {
[all …]
/openbsd/gnu/llvm/clang/tools/scan-build/bin/
H A Dset-xcode-analyzer20 def FindClangSpecs(path): argument
25 yield os.path.join(root, f)
30 with open(path) as f:
34 with open(path) as f2:
52 print "(+) processing:", path
54 shutil.copy(t.name, path)
82 if options.path:
84 path = os.path.expanduser(options.path)
85 if not path.endswith("clang"):
87 path = os.path.join(path, "bin", "clang");
[all …]
/openbsd/gnu/llvm/lldb/source/Utility/
H A DFileSpec.cpp62 std::replace(path.begin(), path.end(), '/', '\\'); in Denormalize()
71 SetFile(path, style); in FileSpec()
90 if (i < path.size()) in safeCharAtIndex()
91 return path[i]; in safeCharAtIndex()
113 if (path.empty()) in needsNormalization()
116 if (path[0] == '.') in needsNormalization()
326 s << path; in Dump()
328 if (!m_filename && !path.empty() && path.back() != path_separator) in Dump()
368 if (!path) in GetPath()
395 path.insert(path.end(), '/'); in GetPath()
[all …]
/openbsd/regress/lib/libc/sys/
H A Dt_mkfifo.c56 if (mkfifo(path, 0600) == 0) { in support()
57 ATF_REQUIRE(unlink(path) == 0); in support()
93 fd = open(path, O_RDONLY); in ATF_TC_BODY()
108 (void)unlink(path); in ATF_TC_BODY()
113 (void)unlink(path); in ATF_TC_CLEANUP()
151 (void)unlink(path); in ATF_TC_CLEANUP()
200 (void)unlink(path); in ATF_TC_BODY()
205 (void)unlink(path); in ATF_TC_CLEANUP()
236 (void)unlink(path); in ATF_TC_CLEANUP()
264 (void)unlink(path); in ATF_TC_CLEANUP()
[all …]
/openbsd/sys/ufs/ext2fs/
H A Dext2fs_extents.c45 *path, daddr_t lbn) in ext4_ext_binsearch_index()
60 path->ep_index = l - 1; in ext4_ext_binsearch_index()
82 path->ep_ext = l - 1; in ext4_ext_binsearch()
148 path->ep_depth = 0; in ext4_ext_find_extent()
149 path->ep_ext = NULL; in ext4_ext_find_extent()
155 path->ep_bp = NULL; in ext4_ext_find_extent()
158 &path->ep_bp); in ext4_ext_find_extent()
161 path->ep_bp = NULL; in ext4_ext_find_extent()
168 path->ep_depth = i; in ext4_ext_find_extent()
169 path->ep_ext = NULL; in ext4_ext_find_extent()
[all …]
/openbsd/regress/usr.bin/ssh/unittests/misc/
H A Dtest_parse.c25 char *user, *host, *path; in test_parse() local
29 &user, &host, &path), 0); in test_parse()
32 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
33 free(user); free(host); free(path); in test_parse()
38 &user, &host, &path), 0); in test_parse()
42 free(user); free(host); free(path); in test_parse()
47 &user, &host, &path), 0); in test_parse()
51 free(user); free(host); free(path); in test_parse()
56 &user, &host, &path), 0); in test_parse()
59 ASSERT_STRING_EQ(path, "."); in test_parse()
[all …]

12345678910>>...99