Home
last modified time | relevance | path

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

12345678910>>...178

/netbsd-src/external/bsd/kyua-cli/dist/utils/fs/
H A Dpath_test.cpp43 using utils::fs::path;
59 ATF_REQUIRE_EQ(".", path(".").str()); in ATF_TEST_CASE_BODY()
60 ATF_REQUIRE_EQ("..", path("..").str()); in ATF_TEST_CASE_BODY()
61 ATF_REQUIRE_EQ("/", path("/").str()); in ATF_TEST_CASE_BODY()
62 ATF_REQUIRE_EQ("/", path("///").str()); in ATF_TEST_CASE_BODY()
64 ATF_REQUIRE_EQ("foo", path("foo").str()); in ATF_TEST_CASE_BODY()
65 ATF_REQUIRE_EQ("foo/bar", path("foo/bar").str()); in ATF_TEST_CASE_BODY()
66 ATF_REQUIRE_EQ("foo/bar", path("foo/bar/").str()); in ATF_TEST_CASE_BODY()
68 ATF_REQUIRE_EQ("/foo", path("/foo").str()); in ATF_TEST_CASE_BODY()
69 ATF_REQUIRE_EQ("/foo/bar", path("/foo/bar").str()); in ATF_TEST_CASE_BODY()
[all …]
H A Dpath.cpp90 fs::path::path(const std::string& text) : in path() function in fs::path
98 fs::path::c_str(void) const in c_str()
106 fs::path::str(void) const in str()
117 fs::path
118 fs::path::branch_path(void) const in branch_path()
122 return fs::path("."); in branch_path()
124 return fs::path("/"); in branch_path()
126 return fs::path(_repr.substr(0, end_pos)); in branch_path()
134 fs::path::leaf_name(void) const in leaf_name()
150 fs::path
[all …]
/netbsd-src/external/bsd/pdisk/dist/
H A Dpathname.c76 open_pathname_as_media(char *path, int oflag) in open_pathname_as_media() argument
83 if (strncmp("/dev/", path, 5) == 0) { in open_pathname_as_media()
84 if (strncmp("/dev/scsi", path, 9) == 0) { in open_pathname_as_media()
85 if (path[9] >= '0' && path[9] <= '7' && path[10] == 0) { in open_pathname_as_media()
87 id = path[9] - '0'; in open_pathname_as_media()
89 } else if (path[9] >= '0' && path[9] <= '7' && path[10] == '.' in open_pathname_as_media()
90 && path[11] >= '0' && path[11] <= '7' && path[12] == 0) { in open_pathname_as_media()
92 id = path[11] - '0'; in open_pathname_as_media()
93 bus = path[9] - '0'; in open_pathname_as_media()
96 } else if (strncmp("/dev/ata", path, 8) == 0 in open_pathname_as_media()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/
H A Dfs_ops.h47 path absolute(const path& __p); in _GLIBCXX_VISIBILITY()
48 path absolute(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY()
50 path canonical(const path& __p); in _GLIBCXX_VISIBILITY()
51 path canonical(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY()
54 copy(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
58 copy(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY()
61 void copy(const path& __from, const path& __to, copy_options __options); in _GLIBCXX_VISIBILITY()
62 void copy(const path& __from, const path& __to, copy_options __options, in _GLIBCXX_VISIBILITY()
66 copy_file(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
70 copy_file(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY()
[all …]
H A Dfs_path.h70 class path; in _GLIBCXX_VISIBILITY() local
124 std::enable_if<__and_<__not_<is_same<remove_cv_t<_Tp1>, path>>, in _GLIBCXX_VISIBILITY()
127 path>::type; in _GLIBCXX_VISIBILITY()
184 class path in _GLIBCXX_VISIBILITY()
206 path() noexcept { } in _GLIBCXX_VISIBILITY()
208 path(const path& __p) = default; in _GLIBCXX_VISIBILITY()
210 path(path&& __p) in _GLIBCXX_VISIBILITY()
218 path(string_type&& __source, format = auto_format) in _GLIBCXX_VISIBILITY()
224 path(_Source const& __source, format = auto_format) in _GLIBCXX_VISIBILITY()
231 path(_InputIterator __first, _InputIterator __last, format = auto_format) in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/experimental/bits/
H A Dfs_ops.h54 path absolute(const path& __p, const path& __base = current_path()); in _GLIBCXX_VISIBILITY()
56 path canonical(const path& __p, const path& __base = current_path()); in _GLIBCXX_VISIBILITY()
57 path canonical(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY()
58 path canonical(const path& __p, const path& __base, error_code& __ec); in _GLIBCXX_VISIBILITY()
61 copy(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
65 copy(const path& __from, const path& __to, error_code& __ec) noexcept in _GLIBCXX_VISIBILITY()
68 void copy(const path& __from, const path& __to, copy_options __options); in _GLIBCXX_VISIBILITY()
69 void copy(const path& __from, const path& __to, copy_options __options, in _GLIBCXX_VISIBILITY()
73 copy_file(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
77 copy_file(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY()
[all …]
H A Dfs_path.h134 std::enable_if<__and_<__not_<is_same<_Tp1_nocv, path>>, in _GLIBCXX_VISIBILITY()
137 path>::type; in _GLIBCXX_VISIBILITY()
195 class path in _GLIBCXX_VISIBILITY()
209 path() noexcept { } in _GLIBCXX_VISIBILITY()
211 path(const path& __p) = default; in _GLIBCXX_VISIBILITY()
213 path(path&& __p) noexcept in _GLIBCXX_VISIBILITY()
221 path(string_type&& __source) in _GLIBCXX_VISIBILITY()
227 path(_Source const& __source) in _GLIBCXX_VISIBILITY()
234 path(_InputIterator __first, _InputIterator __last) in _GLIBCXX_VISIBILITY()
241 path(_Source const& __source, const locale& __loc) in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/
H A Dfs_ops.h48 path absolute(const path& __p); in _GLIBCXX_VISIBILITY()
51 path absolute(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY()
54 path canonical(const path& __p); in _GLIBCXX_VISIBILITY()
57 path canonical(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY()
60 copy(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
64 copy(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY()
67 void copy(const path& __from, const path& __to, copy_options __options); in _GLIBCXX_VISIBILITY()
68 void copy(const path& __from, const path& __to, copy_options __options, in _GLIBCXX_VISIBILITY()
72 copy_file(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
76 copy_file(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY()
[all …]
H A Dfs_path.h65 class path; in _GLIBCXX_VISIBILITY() local
117 inline constexpr bool __is_path_src<path> = false; in _GLIBCXX_VISIBILITY()
120 inline constexpr bool __is_path_src<volatile path> = false; in _GLIBCXX_VISIBILITY()
146 using _Path = enable_if_t<__is_path_src<_Tp>, path>; in _GLIBCXX_VISIBILITY()
150 using _Path2 = enable_if_t<__is_path_iter_src<_Tr>, path>; in _GLIBCXX_VISIBILITY()
293 class path in _GLIBCXX_VISIBILITY()
315 path() noexcept { } in _GLIBCXX_VISIBILITY()
317 path(const path& __p) = default; in _GLIBCXX_VISIBILITY()
319 path(path&& __p) noexcept in _GLIBCXX_VISIBILITY()
324 path(string_type&& __source, format = auto_format) in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/include/experimental/
H A Dfilesystem16 class path;
18 void swap(path& lhs, path& rhs) noexcept;
19 size_t hash_value(const path& p) noexcept;
21 bool operator==(const path& lhs, const path& rhs) noexcept;
22 bool operator!=(const path& lhs, const path& rhs) noexcept;
23 bool operator< (const path& lhs, const path& rhs) noexcept;
24 bool operator<=(const path& lhs, const path& rhs) noexcept;
25 bool operator> (const path& lhs, const path& rhs) noexcept;
26 bool operator>=(const path& lhs, const path& rhs) noexcept;
28 path operator/ (const path& lhs, const path& rhs);
[all …]
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/experimental/bits/
H A Dfs_ops.h55 path absolute(const path& __p, const path& __base = current_path()); in _GLIBCXX_VISIBILITY()
58 path canonical(const path& __p, const path& __base = current_path()); in _GLIBCXX_VISIBILITY()
61 path canonical(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY()
64 path canonical(const path& __p, const path& __base, error_code& __ec); in _GLIBCXX_VISIBILITY()
67 copy(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
71 copy(const path& __from, const path& __to, error_code& __ec) noexcept in _GLIBCXX_VISIBILITY()
74 void copy(const path& __from, const path& __to, copy_options __options); in _GLIBCXX_VISIBILITY()
76 void copy(const path& __from, const path& __to, copy_options __options, in _GLIBCXX_VISIBILITY()
80 copy_file(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY()
84 copy_file(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY()
[all …]
H A Dfs_path.h134 std::enable_if<__and_<__not_<is_same<_Tp1_nocv, path>>, in _GLIBCXX_VISIBILITY()
137 path>::type; in _GLIBCXX_VISIBILITY()
201 class path in _GLIBCXX_VISIBILITY()
215 path() noexcept; in _GLIBCXX_VISIBILITY()
216 path(const path& __p); in _GLIBCXX_VISIBILITY()
217 path(path&& __p) noexcept; in _GLIBCXX_VISIBILITY()
219 path(string_type&& __source); in _GLIBCXX_VISIBILITY()
223 path(_Source const& __source) in _GLIBCXX_VISIBILITY()
230 path(_InputIterator __first, _InputIterator __last) in _GLIBCXX_VISIBILITY()
237 path(_Source const& __source, const locale& __loc) in _GLIBCXX_VISIBILITY()
[all …]
/netbsd-src/external/bsd/atf/dist/atf-c++/detail/
H A Dfs_test.cpp76 using atf::fs::path; in ATF_TEST_CASE_BODY()
78 ATF_REQUIRE_EQ(path(".").str(), "."); in ATF_TEST_CASE_BODY()
79 ATF_REQUIRE_EQ(path("..").str(), ".."); in ATF_TEST_CASE_BODY()
81 ATF_REQUIRE_EQ(path("foo").str(), "foo"); in ATF_TEST_CASE_BODY()
82 ATF_REQUIRE_EQ(path("foo/bar").str(), "foo/bar"); in ATF_TEST_CASE_BODY()
83 ATF_REQUIRE_EQ(path("foo/bar/").str(), "foo/bar"); in ATF_TEST_CASE_BODY()
85 ATF_REQUIRE_EQ(path("/foo").str(), "/foo"); in ATF_TEST_CASE_BODY()
86 ATF_REQUIRE_EQ(path("/foo/bar").str(), "/foo/bar"); in ATF_TEST_CASE_BODY()
87 ATF_REQUIRE_EQ(path("/foo/bar/").str(), "/foo/bar"); in ATF_TEST_CASE_BODY()
89 ATF_REQUIRE_EQ(path("///foo").str(), "/foo"); in ATF_TEST_CASE_BODY()
[all …]
H A Dfs.hpp71 class path { class
87 explicit path(const std::string&);
92 path(const path&);
97 path(const atf_fs_path_t *);
102 ~path(void);
126 path branch_path(void) const;
159 path to_absolute(void) const;
164 path& operator=(const path&);
169 bool operator==(const path&) const;
174 bool operator!=(const path&) const;
[all …]
/netbsd-src/external/bsd/atf/dist/tools/
H A Dfs_test.cpp85 using tools::fs::path; in ATF_TEST_CASE_BODY()
87 ATF_REQUIRE_EQ(path(".").str(), "."); in ATF_TEST_CASE_BODY()
88 ATF_REQUIRE_EQ(path("..").str(), ".."); in ATF_TEST_CASE_BODY()
90 ATF_REQUIRE_EQ(path("foo").str(), "foo"); in ATF_TEST_CASE_BODY()
91 ATF_REQUIRE_EQ(path("foo/bar").str(), "foo/bar"); in ATF_TEST_CASE_BODY()
92 ATF_REQUIRE_EQ(path("foo/bar/").str(), "foo/bar"); in ATF_TEST_CASE_BODY()
94 ATF_REQUIRE_EQ(path("/foo").str(), "/foo"); in ATF_TEST_CASE_BODY()
95 ATF_REQUIRE_EQ(path("/foo/bar").str(), "/foo/bar"); in ATF_TEST_CASE_BODY()
96 ATF_REQUIRE_EQ(path("/foo/bar/").str(), "/foo/bar"); in ATF_TEST_CASE_BODY()
98 ATF_REQUIRE_EQ(path("///foo").str(), "/foo"); in ATF_TEST_CASE_BODY()
[all …]
H A Dfs.hpp63 class path { class
79 explicit path(const std::string&);
84 ~path(void);
103 path branch_path(void) const;
136 path to_absolute(void) const;
141 bool operator==(const path&) const;
146 bool operator!=(const path&) const;
156 path operator/(const std::string&) const;
165 path operator/(const path&) const;
171 bool operator<(const path&) const;
[all …]
/netbsd-src/sys/ufs/ext2fs/
H A Dext2fs_extents.c59 ext4_ext_binsearch_index(struct inode *ip, struct ext4_extent_path *path, in ext4_ext_binsearch_index() argument
62 struct ext4_extent_header *ehp = path->ep_header; in ext4_ext_binsearch_index()
78 path->ep_sparse_ext.e_blk = *first_lbn; in ext4_ext_binsearch_index()
79 path->ep_sparse_ext.e_len = first->ei_blk - *first_lbn; in ext4_ext_binsearch_index()
80 path->ep_sparse_ext.e_start_hi = 0; in ext4_ext_binsearch_index()
81 path->ep_sparse_ext.e_start_lo = 0; in ext4_ext_binsearch_index()
82 path->ep_is_sparse = true; in ext4_ext_binsearch_index()
85 path->ep_index = l - 1; in ext4_ext_binsearch_index()
86 *first_lbn = path->ep_index->ei_blk; in ext4_ext_binsearch_index()
87 if (path->ep_index < last) in ext4_ext_binsearch_index()
[all …]
/netbsd-src/external/bsd/kyua-cli/dist/engine/
H A Dfilters_test.cpp47 return engine::test_filter(fs::path(test_program), test_case); in mkfilter()
57 const engine::test_filter filter(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY()
58 ATF_REQUIRE_EQ(fs::path("foo/bar"), filter.test_program); in ATF_TEST_CASE_BODY()
67 ATF_REQUIRE_EQ(fs::path("foo"), filter.test_program); in ATF_TEST_CASE_BODY()
117 const engine::test_filter filter(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY()
126 const engine::test_filter f(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY()
130 const engine::test_filter f(fs::path("foo/bar"), ""); in ATF_TEST_CASE_BODY()
134 const engine::test_filter f(fs::path("foo"), ""); in ATF_TEST_CASE_BODY()
144 const engine::test_filter f1(fs::path("foo"), ""); in ATF_TEST_CASE_BODY()
145 const engine::test_filter f2(fs::path("foo"), "bar"); in ATF_TEST_CASE_BODY()
[all …]
H A Dkyuafile_test.cpp58 fs::path("config"), none); in ATF_TEST_CASE_BODY()
59 ATF_REQUIRE_EQ(fs::path("."), suite.source_root()); in ATF_TEST_CASE_BODY()
60 ATF_REQUIRE_EQ(fs::path("."), suite.build_root()); in ATF_TEST_CASE_BODY()
78 fs::mkdir(fs::path("dir"), 0755); in ATF_TEST_CASE_BODY()
85 fs::mkdir(fs::path("dir/subdir"), 0755); in ATF_TEST_CASE_BODY()
99 fs::path("config"), none); in ATF_TEST_CASE_BODY()
100 ATF_REQUIRE_EQ(fs::path("."), suite.source_root()); in ATF_TEST_CASE_BODY()
101 ATF_REQUIRE_EQ(fs::path("."), suite.build_root()); in ATF_TEST_CASE_BODY()
105 ATF_REQUIRE_EQ(fs::path("1st"), suite.test_programs()[0]->relative_path()); in ATF_TEST_CASE_BODY()
109 ATF_REQUIRE_EQ(fs::path("2nd"), suite.test_programs()[1]->relative_path()); in ATF_TEST_CASE_BODY()
[all …]
/netbsd-src/lib/librefuse/refuse/
H A Dfs.h59 int fuse_fs_getattr_v27(struct fuse_fs *fs, const char *path, struct stat *buf);
60 int fuse_fs_getattr_v30(struct fuse_fs* fs, const char* path, struct stat* buf, struct fuse_file_in…
61 int fuse_fs_fgetattr(struct fuse_fs* fs, const char* path, struct stat* buf, struct fuse_file_info*…
64 int fuse_fs_unlink(struct fuse_fs* fs, const char* path);
65 int fuse_fs_rmdir(struct fuse_fs* fs, const char* path);
66 int fuse_fs_symlink(struct fuse_fs* fs, const char* linkname, const char* path);
68 int fuse_fs_release(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi);
69 int fuse_fs_open(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi);
70 int fuse_fs_read(struct fuse_fs* fs, const char* path, char* buf, size_t size, off_t off, struct fu…
71 int fuse_fs_read_buf(struct fuse_fs* fs, const char* path, struct fuse_bufvec** bufp, size_t size, …
[all …]
/netbsd-src/sys/dist/pf/net/
H A Dpf_ruleset.c108 int c = strcmp(a->path, b->path); in pf_anchor_compare()
158 pf_find_anchor(const char *path) in pf_find_anchor() argument
164 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor()
171 pf_find_ruleset(const char *path) in pf_find_ruleset() argument
175 while (*path == '/') in pf_find_ruleset()
176 path++; in pf_find_ruleset()
177 if (!*path) in pf_find_ruleset()
179 anchor = pf_find_anchor(path); in pf_find_ruleset()
187 pf_find_or_create_ruleset(const char *path) in pf_find_or_create_ruleset() argument
194 if (path[0] == 0) in pf_find_or_create_ruleset()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DPath.h26 namespace path {
61 friend const_iterator begin(StringRef path, Style style);
62 friend const_iterator end(StringRef path);
86 friend reverse_iterator rbegin(StringRef path, Style style);
87 friend reverse_iterator rend(StringRef path);
101 const_iterator begin(StringRef path, Style style = Style::native);
106 const_iterator end(StringRef path);
111 reverse_iterator rbegin(StringRef path, Style style = Style::native);
116 reverse_iterator rend(StringRef path);
134 void remove_filename(SmallVectorImpl<char> &path, Style style = Style::native);
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/d/
H A Dd-incpath.cc32 prefixed_path (const char *path, const char *iprefix) in prefixed_path() argument
36 if (!filename_ncmp (path, cpp_PREFIX, cpp_PREFIX_len)) in prefixed_path()
54 return concat (relocated_prefix, path + cpp_PREFIX_len, NULL); in prefixed_path()
60 if (!filename_ncmp (path, cpp_GCC_INCLUDE_DIR, cpp_GCC_INCLUDE_DIR_len)) in prefixed_path()
61 return concat (iprefix, path + cpp_GCC_INCLUDE_DIR_len, NULL); in prefixed_path()
64 return xstrdup (path); in prefixed_path()
74 if (!global.path) in add_globalpaths()
75 global.path = d_gc_malloc<Strings> (); in add_globalpaths()
79 const char *path = (*paths)[i]; in add_globalpaths() local
80 const char *target = lrealpath (path); in add_globalpaths()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/
H A Dd-incpath.cc31 prefixed_path (const char *path, const char *iprefix) in prefixed_path() argument
37 if (!strncmp (path, cpp_PREFIX, len)) in prefixed_path()
55 return concat (relocated_prefix, path + len, NULL); in prefixed_path()
61 if (!strncmp (path, cpp_GCC_INCLUDE_DIR, len)) in prefixed_path()
62 return concat (iprefix, path + len, NULL); in prefixed_path()
65 return xstrdup (path); in prefixed_path()
75 if (!global.path) in add_globalpaths()
76 global.path = new Strings (); in add_globalpaths()
80 const char *path = (*paths)[i]; in add_globalpaths() local
81 const char *target = lrealpath (path); in add_globalpaths()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/include/
H A Dfilesystem16 class path;
18 void swap(path& lhs, path& rhs) noexcept;
19 size_t hash_value(const path& p) noexcept;
21 bool operator==(const path& lhs, const path& rhs) noexcept;
22 bool operator!=(const path& lhs, const path& rhs) noexcept;
23 bool operator< (const path& lhs, const path& rhs) noexcept;
24 bool operator<=(const path& lhs, const path& rhs) noexcept;
25 bool operator> (const path& lhs, const path& rhs) noexcept;
26 bool operator>=(const path& lhs, const path& rhs) noexcept;
28 path operator/ (const path& lhs, const path& rhs);
[all …]

12345678910>>...178