Home
last modified time | relevance | path

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

12345678910>>...108

/openbsd-src/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);
39 _LIBCPP_FUNC_VIS bool __copy_file(const path& __from, const path& __to, copy_options __opt, error_c…
40 _LIBCPP_FUNC_VIS void __copy_symlink(const path& __existing_symlink, const path& __new_symlink, err…
41 _LIBCPP_FUNC_VIS void __copy(const path& __from, const path& __to, copy_options __opt, error_code* …
42 _LIBCPP_FUNC_VIS bool __create_directories(const path&, error_code* = nullptr);
43 _LIBCPP_FUNC_VIS void __create_directory_symlink(const path& __to, const path& __new_symlink, error…
44 _LIBCPP_FUNC_VIS bool __create_directory(const path&, error_code* = nullptr);
45 _LIBCPP_FUNC_VIS bool __create_directory(const path&, const path& __attributes, error_code* = nullp…
46 _LIBCPP_FUNC_VIS void __create_hard_link(const path& __to, const path& __new_hard_link, error_code*…
[all …]
/openbsd-src/gnu/llvm/libcxx/include/
H A Dfilesystem18 // `class path` from http://eel.is/c++draft/fs.class.path.general#6
19 class path {
27 path() noexcept;
28 path(const path& p);
29 path(path&& p) noexcept;
30 path(string_type&& source, format fmt = auto_format);
32 path(const Source& source, format fmt = auto_format);
34 path(InputIterator first, InputIterator last, format fmt = auto_format);
36 path(const Source& source, const locale& loc, format fmt = auto_format);
38path(InputIterator first, InputIterator last, const locale& loc, format fmt = auto_format);
[all …]
/openbsd-src/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()
32 errx(1, "0: dirname(%s) = %s != %s", path, str, dname); in main()
57 strlcpy(path, "", sizeof(path)); in main()
58 str = dirname(path); in main()
60 errx(1, "2: dirname(%s) = %s != .", path, str); in main()
64 strlcat(path, "/", sizeof(path)); /* path cleared above */ in main()
[all …]
/openbsd-src/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);
29 foreach (@path) { $_ = '.' if $_ eq '' }
30 return @path;
54 my ($self,$path) = @_;
55 return unless defined $path;
57 $path
[all...]
H A DVMS.pm72 my($self,$path) = @_;
74 return undef unless defined $path;
78 if ($path =~ m|/|) {
79 my $pathify = $path =~ m|/\Z(?!\n)|;
80 $path = $self->SUPER::canonpath($path);
82 return $path if $unix_rpt;
83 $path = $pathify ? vmspath($path) : vmsify($path);
323 sub path { global() subroutine
[all...]
H A DWin32.pm13 # Some regexes we use for path splitting
109 As of right now, this returns 2 if the path is absolute with a
130 complete path ending with a filename
168 sub path { subroutine
169 my @path = split(';', $ENV{PATH});
170 s/"//g for @path;
171 @path = grep length, @path;
172 unshift(@path, ".");
173 return @path;
[all...]
H A DUnix.pm30 path. On UNIX eliminates successive slashes and successive "/.".
32 $cpath = File::Spec->canonpath( $path ) ;
44 my ($self,$path) = @_;
45 return unless defined $path;
56 && ( $path =~ s{^(//[^/]+)/?\z}{}s || $path =~ s{^(//[^/]+)/}{/}s ) ) {
60 # $path =~ s|/+|/|g unless ($^O eq 'cygwin');
64 $path =~ s|/{2,}|/|g; # xx////xx -> xx/xx
65 $path =~ s{(?:/\.)+(?:/|\z)}{/}g; # xx/././xx -> xx/xx
66 $path
254 sub path { global() subroutine
[all...]
H A DMac.pm38 my ($self,$path) = @_;
39 return $path;
44 Concatenate two or more directory names to form a path separated by colons
47 puts a trailing ":" on the end of the complete path, because that's what's
48 done in MacPerl's environment and helps to distinguish a file path from a
49 directory path.
52 path is relative by default and I<not> absolute. This decision was made due
62 is a path, but not a name, since it contains a punctuation character ":").
87 The resulting path is relative by default, i.e. the resulting path wil
414 sub path { global() subroutine
[all...]
/openbsd-src/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)
25 unc_start, rest = os.path.splitunc(start)
28 % (path, start))
39 rel_list = [os.path.pardir] * (len(start_list) - i) + path_list[i:]
41 return os.path.curdir
42 return os.path.join(*rel_list)
[all …]
/openbsd-src/gnu/usr.bin/perl/ext/FileCache/t/
H A D03append.t12 for my $path ( @files ){
13 cacheout $path;
14 print $path "$path 3\n";
16 for my $path ( @files ){
17 cacheout $path;
18 print $path "$path 33\n";
20 for my $path ( @files ){
21 open($path, '<', $path);
22 push @cat, do{ local $/; <$path>};
23 close($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)$/);
19 next unless fileno($path);
20 print $path "$path 2\n";
21 close($path);
22 open($path, '<', $path);
23 <$path>;
[all …]
/openbsd-src/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/test/
H A Dtest_discovery.py33 original_isfile = os.path.isfile
36 os.path.isfile = original_isfile
37 original_isdir = os.path.isdir
40 os.path.isdir = original_isdir
45 os.listdir = lambda path: path_lists.pop(0)
48 def isdir(path): argument
49 return path.endswith('dir')
50 os.path.isdir = isdir
53 def isfile(path): argument
55 return not path.endswith('dir') and not 'another_dir' in path
[all …]
/openbsd-src/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()
61 str = basename(path); in main()
66 strlcpy(path, "/", sizeof(path)); in main()
[all …]
/openbsd-src/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);
14 ok(Win32::CreateDirectory($path));
15 ok(-d $path);
17 ok(!Win32::CreateDirectory($path));
18 ok(!Win32::CreateFile($path));
20 ok(rmdir($path));
[all …]
/openbsd-src/sys/net/
H A Dpf_ruleset.c98 int c = strcmp(a->path, b->path); in pf_anchor_compare()
114 pf_find_anchor(const char *path) in pf_find_anchor() argument
121 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor()
128 pf_find_ruleset(const char *path) in pf_find_ruleset() argument
132 while (*path == '/') in pf_find_ruleset()
133 path++; in pf_find_ruleset()
134 if (!*path) in pf_find_ruleset()
136 anchor = pf_find_anchor(path); in pf_find_ruleset()
144 pf_get_leaf_ruleset(char *path, char **path_remainder) in pf_get_leaf_ruleset() argument
150 p = path; in pf_get_leaf_ruleset()
[all …]
/openbsd-src/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);
122 const_iterator begin(StringRef path, Style style = Style::native);
127 const_iterator end(StringRef path);
132 reverse_iterator rbegin(StringRef path, Style style = Style::native);
137 reverse_iterator rend(StringRef path);
155 void remove_filename(SmallVectorImpl<char> &path, Style style = Style::native);
[all …]
/openbsd-src/gnu/llvm/lldb/source/Host/common/
H A DFileSystem.cpp92 llvm::ErrorOr<vfs::Status> FileSystem::GetStatus(const Twine &path) const { in GetStatus()
93 return m_fs->status(path); in GetStatus()
103 sys::TimePoint<> FileSystem::GetModificationTime(const Twine &path) const { in GetModificationTime()
104 ErrorOr<vfs::Status> status = m_fs->status(path); in GetModificationTime()
116 uint64_t FileSystem::GetByteSize(const Twine &path) const { in GetByteSize()
117 ErrorOr<vfs::Status> status = m_fs->status(path); in GetByteSize()
134 uint32_t FileSystem::GetPermissions(const Twine &path) const { in GetPermissions()
136 return GetPermissions(path, ec); in GetPermissions()
139 uint32_t FileSystem::GetPermissions(const Twine &path, in GetPermissions() argument
141 ErrorOr<vfs::Status> status = m_fs->status(path); in GetPermissions()
[all …]
/openbsd-src/usr.bin/rsync/
H A Dmktemp.c75 mktemp_internalat(int pfd, char *path, int slen, enum tmpmode mode, in mktemp_internalat() argument
86 len = strlen(path); in mktemp_internalat()
91 ep = path + len - slen; in mktemp_internalat()
93 for (start = ep; start > path && start[-1] == 'X'; start--) in mktemp_internalat()
125 if (fstatat(pfd, path, &sb, AT_SYMLINK_NOFOLLOW) != 0) in mktemp_internalat()
129 fd = openat(pfd, path, flags, S_IRUSR|S_IWUSR); in mktemp_internalat()
134 if (mkdirat(pfd, path, S_IRUSR|S_IWUSR|S_IXUSR) == 0) in mktemp_internalat()
140 if (symlinkat(link, pfd, path) == 0) in mktemp_internalat()
146 if (mkfifoat(pfd, path, S_IRUSR|S_IWUSR) == 0) in mktemp_internalat()
156 if (mknodat(pfd, path, S_IRUSR|S_IWUSR|dev_type, dev) in mktemp_internalat()
[all …]
/openbsd-src/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')
56 tu = TranslationUnit.from_source(path)
57 self.assertEqual(tu.spelling, path)
60 path = os.path.join(kInputsDir, 'hello.cpp')
61 tu = get_tu(path)
67 path = os.path.join(kInputsDir, 'parse_arguments.c')
68 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
74 path = os.path.join(kInputsDir, 'parse_arguments.c')
75 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/File-Temp/lib/File/
H A DTemp.pm401 my $path = _replace_XX($template, $options{"suffixlen"});
413 ($volume, $directories, $file) = File::Spec->splitpath( $path, 1);
442 ($volume, $directories, $file) = File::Spec->splitpath( $path );
510 $fh = VMS::Stdio::vmssysopen($path, $OPENFLAGS, $perms, 'fop=dlt');
517 $open_success = sysopen($fh, $path, $flags, $perms);
522 chmod($perms, $path) unless $has_perms;
525 return ($fh, $path);
532 ${$options{ErrStr}} = "Could not create temp file $path: $!";
542 if (mkdir( $path, 0700)) {
544 chmod(0700, $path);
[all …]
/openbsd-src/gnu/llvm/lldb/source/Utility/
H A DFileSpec.cpp47 return llvm::sys::path::is_style_posix(style); in PathStyleIsPosix()
51 return llvm::sys::path::get_separator(style).data(); in GetPathSeparators()
58 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize() argument
62 std::replace(path.begin(), path.end(), '/', '\\'); in Denormalize()
70 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() argument
71 SetFile(path, style); in FileSpec()
74 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() argument
75 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec()
89 inline char safeCharAtIndex(const llvm::StringRef &path, size_t i) { in safeCharAtIndex() argument
90 if (i < path.size()) in safeCharAtIndex()
[all …]
/openbsd-src/gnu/llvm/clang/tools/scan-build/bin/
H A Dset-xcode-analyzer20 def FindClangSpecs(path): argument
21 print "(+) Searching for xcspec file in: ", path
22 for root, dirs, files in os.walk(path):
25 yield os.path.join(root, f)
27 def ModifySpec(path, isBuiltinAnalyzer, pathToChecker): argument
30 with open(path) as f:
34 with open(path) as f2:
52 print "(+) processing:", path
54 shutil.copy(t.name, path)
55 os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
[all …]
/openbsd-src/regress/lib/libc/sys/
H A Dt_mkfifo.c47 static const char path[] = "fifo"; variable
56 if (mkfifo(path, 0600) == 0) { in support()
57 ATF_REQUIRE(unlink(path) == 0); in support()
81 ATF_REQUIRE(mkfifo(path, 0600) == 0); in ATF_TC_BODY()
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()
129 ATF_REQUIRE(mkfifo(path, 0600) == 0); in ATF_TC_BODY()
138 ATF_REQUIRE_ERRNO(EEXIST, mkfifo(path, 0600) == -1); in ATF_TC_BODY()
146 ATF_REQUIRE(unlink(path) == 0); in ATF_TC_BODY()
[all …]
/openbsd-src/sys/ufs/ext2fs/
H A Dext2fs_extents.c45 *path, daddr_t lbn) in ext4_ext_binsearch_index()
47 struct ext4_extent_header *ehp = path->ep_header; in ext4_ext_binsearch_index()
60 path->ep_index = l - 1; in ext4_ext_binsearch_index()
64 ext4_ext_binsearch(struct inode *ip, struct ext4_extent_path *path, daddr_t lbn) in ext4_ext_binsearch() argument
66 struct ext4_extent_header *ehp = path->ep_header; in ext4_ext_binsearch()
82 path->ep_ext = l - 1; in ext4_ext_binsearch()
130 daddr_t lbn, struct ext4_extent_path *path) in ext4_ext_find_extent() argument
144 path->ep_header = ehp; in ext4_ext_find_extent()
147 ext4_ext_binsearch_index(ip, path, lbn); in ext4_ext_find_extent()
148 path->ep_depth = 0; in ext4_ext_find_extent()
[all …]
/openbsd-src/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()
41 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
42 free(user); free(host); free(path); in test_parse()
47 &user, &host, &path), 0); in test_parse()
50 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
51 free(user); free(host); free(path); in test_parse()
[all …]

12345678910>>...108