Home
last modified time | relevance | path

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

12345678910>>...99

/netbsd/src/external/bsd/kyua-cli/dist/utils/fs/
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 …]
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/
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/dist/libstdc++-v3/include/bits/
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 …]
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/bsd/atf/dist/atf-c++/detail/
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 …]
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 …]
Dfs.cpp69 static bool safe_access(const impl::path&, int, int);
80 safe_access(const impl::path& p, int mode, int experr) in safe_access()
112 impl::path::path(const std::string& s) in path() function in impl::path
119 impl::path::path(const path& p) in path() function in impl::path
126 impl::path::path(const atf_fs_path_t *p) in path() function in impl::path
133 impl::path::~path(void) in ~path()
139 impl::path::c_str(void) in c_str()
146 impl::path::c_path(void) in c_path()
153 impl::path::str(void) in str()
160 impl::path::is_absolute(void) in is_absolute()
[all …]
/netbsd/src/external/bsd/atf/dist/tools/
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 …]
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 …]
Dfs.cpp61 static void cleanup_aux(const impl::path&, dev_t, bool);
62 static void cleanup_aux_dir(const impl::path&, const impl::file_info&,
64 static void do_unmount(const impl::path&);
65 static bool safe_access(const impl::path&, int, int);
79 eaccess(const tools::fs::path& p, int mode) in eaccess()
140 safe_access(const impl::path& p, int mode, int experr) in safe_access()
173 cleanup_aux(const impl::path& p, dev_t parent_device, bool erase) in cleanup_aux()
198 cleanup_aux_dir(const impl::path& p, const impl::file_info& fi, in cleanup_aux_dir()
247 do_unmount(const impl::path& in_path) in do_unmount()
252 const impl::path& abs_path = in_path.is_absolute() ? in do_unmount()
[all …]
/netbsd/src/sys/ufs/ext2fs/
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/
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 …]
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/sys/dist/pf/net/
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/tests/lib/libutil/
Dt_pidfile.c71 check_pidfile(const char *path) in check_pidfile() argument
76 printf("Validating contents of pidfile '%s'\n", path); in check_pidfile()
78 if ((file = fopen(path, "r")) == NULL) in check_pidfile()
79 errx(EXIT_FAILURE, "Cannot open expected pidfile '%s'", path); in check_pidfile()
83 path); in check_pidfile()
93 ensure_deleted(const char *path) in ensure_deleted() argument
95 printf("Ensuring pidfile %s does not exist any more\n", path); in ensure_deleted()
96 if (access(path, R_OK) != -1) { in ensure_deleted()
97 unlink(path); in ensure_deleted()
100 path); in ensure_deleted()
[all …]
/netbsd/src/share/examples/refuse/icfs/
Dicfs.c69 strtolower(const char *path, char *name, size_t size) in strtolower() argument
74 for (cp = path, np = name ; (int)(np - name) < size ; np++, cp++) { in strtolower()
99 icfs_getattr(const char *path, struct stat *st) in icfs_getattr() argument
105 if (strcmp(path, "/") == 0) { in icfs_getattr()
110 if ((ep = virtdir_find_tgt(&tree, path, strlen(path))) == NULL) { in icfs_getattr()
122 icfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, in icfs_readdir() argument
131 if ((ep = virtdir_find_tgt(&tree, path, strlen(path))) == NULL) { in icfs_readdir()
150 icfs_open(const char *path, struct fuse_file_info *fi) in icfs_open() argument
157 icfs_read(const char *path, char *buf, size_t size, off_t offset, in icfs_read() argument
167 if ((ep = virtdir_find_tgt(&tree, path, strlen(path))) == NULL) { in icfs_read()
[all …]
/netbsd/src/usr.sbin/cpuctl/arch/
Dsparc.c49 char path[128]; in identifycpu() local
60 snprintf(path, sizeof path, "hw.%s.cacheinfo", cpuname); in identifycpu()
62 if (sysctlbyname(path, &cacheinfo, &len, 0, 0) == -1) in identifycpu()
63 err(1, "couldn't get %s", path); in identifycpu()
65 snprintf(path, sizeof path, "hw.%s.mid", cpuname); in identifycpu()
67 if (sysctlbyname(path, &mid, &len, 0, 0) == -1) in identifycpu()
68 err(1, "couldn't get %s", path); in identifycpu()
70 snprintf(path, sizeof path, "hw.%s.clock_frequency", cpuname); in identifycpu()
72 if (sysctlbyname(path, &hz, &len, 0, 0) == -1) in identifycpu()
73 err(1, "couldn't get %s", path); in identifycpu()
[all …]
Dsparc64.c49 char path[128]; in identifycpu() local
62 snprintf(path, sizeof path, "hw.%s.cacheinfo", cpuname); in identifycpu()
64 if (sysctlbyname(path, &cacheinfo, &len, 0, 0) == -1) in identifycpu()
65 err(1, "couldn't get %s", path); in identifycpu()
67 snprintf(path, sizeof path, "hw.%s.id", cpuname); in identifycpu()
69 if (sysctlbyname(path, &id, &len, 0, 0) == -1) in identifycpu()
70 err(1, "couldn't get %s", path); in identifycpu()
72 snprintf(path, sizeof path, "hw.%s.ver", cpuname); in identifycpu()
74 if (sysctlbyname(path, &ver, &len, 0, 0) == -1) in identifycpu()
75 err(1, "couldn't get %s", path); in identifycpu()
[all …]
/netbsd/src/tests/lib/libc/sys/
Dt_mkfifo.c46 static const char path[] = "fifo"; variable
55 if (mkfifo(path, 0600) == 0) { in support()
56 ATF_REQUIRE(unlink(path) == 0); in support()
80 ATF_REQUIRE(mkfifo(path, 0600) == 0); in ATF_TC_BODY()
92 fd = open(path, O_RDONLY); in ATF_TC_BODY()
107 (void)unlink(path); in ATF_TC_BODY()
112 (void)unlink(path); in ATF_TC_CLEANUP()
128 ATF_REQUIRE(mkfifo(path, 0600) == 0); in ATF_TC_BODY()
137 ATF_REQUIRE_ERRNO(EEXIST, mkfifo(path, 0600) == -1); in ATF_TC_BODY()
145 ATF_REQUIRE(unlink(path) == 0); in ATF_TC_BODY()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dtree-ssa-threadupdate.cc132 vec<jump_thread_edge *> *path; member
200 jt_path_registry::push_edge (vec<jump_thread_edge *> *path, in push_edge() argument
204 path->safe_push (x); in push_edge()
218 const vec<jump_thread_edge *> &path, in dump_jump_thread_path() argument
225 path[0]->e->src->index, path[0]->e->dest->index); in dump_jump_thread_path()
229 path[0]->e->src->index, path[0]->e->dest->index); in dump_jump_thread_path()
231 for (unsigned int i = 1; i < path.length (); i++) in dump_jump_thread_path()
237 if (path[i]->e == NULL) in dump_jump_thread_path()
241 path[i]->e->src->index, path[i]->e->dest->index); in dump_jump_thread_path()
242 switch (path[i]->type) in dump_jump_thread_path()
[all …]
Dtree-diagnostic-path.cc50 path_label (const diagnostic_path *path, unsigned start_idx) in path_label() argument
51 : m_path (path), m_start_idx (start_idx) in path_label()
118 event_range (const diagnostic_path *path, unsigned start_idx, in event_range()
120 : m_path (path), in event_range()
125 m_path_label (path, start_idx), in event_range()
211 path_summary (const diagnostic_path &path, bool check_rich_locations);
220 path_summary::path_summary (const diagnostic_path &path, in path_summary() argument
223 const unsigned num_events = path.num_events (); in path_summary()
228 const diagnostic_event &event = path.get_event (idx); in path_summary()
233 cur_event_range = new event_range (&path, idx, event); in path_summary()
[all …]
/netbsd/src/external/ibm-public/postfix/dist/src/flush/
Dflush.c268 static VSTRING *flush_site_to_path(VSTRING *path, const char *site) in flush_site_to_path() argument
285 if (path == 0) in flush_site_to_path()
286 path = vstring_alloc(10); in flush_site_to_path()
293 VSTRING_ADDCH(path, tolower(ch)); in flush_site_to_path()
295 VSTRING_ADDCH(path, '_'); in flush_site_to_path()
296 VSTRING_TERMINATE(path); in flush_site_to_path()
299 msg_info("site %s to path %s", site, STR(path)); in flush_site_to_path()
301 return (path); in flush_site_to_path()
334 static int flush_add_path(const char *path, const char *queue_id) in flush_add_path() argument
342 if (!mail_queue_id_ok(path)) in flush_add_path()
[all …]
/netbsd/src/share/examples/refuse/fanoutfs/
Dfanoutfs.c110 findentry(const char *path, char *name, size_t namesize, struct stat *sp) in findentry() argument
119 (void) snprintf(name, namesize, "%s%s", dirs.v[i], path); in findentry()
140 mkdirs(char *path) in mkdirs() argument
145 (void) snprintf(name, sizeof(name), "%s%s", dirs.v[0], path); in mkdirs()
146 slash = &name[strlen(path) + 1]; in mkdirs()
198 fanoutfs_getattr(const char *path, struct stat *st) in fanoutfs_getattr() argument
203 if (strcmp(path, "/") == 0) { in fanoutfs_getattr()
208 if (findentry(path, name, sizeof(name), st) < 0) { in fanoutfs_getattr()
216 fanoutfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, in fanoutfs_readdir() argument
229 (void) snprintf(name, sizeof(name), "%s%s", dirs.v[i], path); in fanoutfs_readdir()
[all …]
/netbsd/src/lib/libutil/
Dpidfile.c117 pidfile_varrun_path(char *path, size_t len, const char *bname) in pidfile_varrun_path() argument
124 if ((size_t)snprintf(path, len, "%s%s.pid", _PATH_VARRUN, bname) >= len) in pidfile_varrun_path()
135 pidfile_read(const char *path) in pidfile_read() argument
142 if (path == NULL && pidfile_path[0] != '\0') in pidfile_read()
143 path = pidfile_path; in pidfile_read()
144 if (path == NULL || strchr(path, '/') == NULL) { in pidfile_read()
145 if (pidfile_varrun_path(dpath, sizeof(dpath), path) == -1) in pidfile_read()
147 path = dpath; in pidfile_read()
150 if ((fd = open(path, O_RDONLY | O_CLOEXEC | O_NONBLOCK)) == -1) in pidfile_read()
176 pidfile_lock(const char *path) in pidfile_lock() argument
[all …]

12345678910>>...99