| /freebsd-13.1/contrib/kyua/utils/fs/ |
| H A D | path_test.cpp | 190 ATF_REQUIRE(!(path("/") < path("/"))); in ATF_TEST_CASE_BODY() 191 ATF_REQUIRE(!(path("/") < path("///"))); in ATF_TEST_CASE_BODY() 195 ATF_REQUIRE( path("/a") < path("/b")); in ATF_TEST_CASE_BODY() 196 ATF_REQUIRE(!(path("/b") < path("/a"))); in ATF_TEST_CASE_BODY() 198 ATF_REQUIRE( path("/a") < path("/aa")); in ATF_TEST_CASE_BODY() 199 ATF_REQUIRE(!(path("/aa") < path("/a"))); in ATF_TEST_CASE_BODY() 206 ATF_REQUIRE(path("/") == path("///")); in ATF_TEST_CASE_BODY() 207 ATF_REQUIRE(path("/a") == path("///a")); in ATF_TEST_CASE_BODY() 218 ATF_REQUIRE(path("/") != path("//a/")); in ATF_TEST_CASE_BODY() 219 ATF_REQUIRE(path("/a") != path("a///")); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | path.cpp | 90 fs::path::path(const std::string& text) : in path() function in fs::path 121 fs::path 154 fs::path 176 fs::path::is_parent_of(path p) const in is_parent_of() 182 } while (p != fs::path(".") && p != fs::path("/")); in is_parent_of() 216 fs::path::operator<(const fs::path& p) const in operator <() 233 fs::path::operator==(const fs::path& p) const in operator ==() 248 fs::path::operator!=(const fs::path& p) const in operator !=() 267 fs::path 283 fs::path [all …]
|
| H A D | operations.hpp | 50 void copy(const fs::path&, const fs::path&); 51 path current_path(void); 52 bool exists(const fs::path&); 55 bool is_directory(const fs::path&); 56 void mkdir(const path&, const int); 57 void mkdir_p(const path&, const int); 60 void mount_tmpfs(const path&); 62 void rm_r(const path&); 63 void rmdir(const path&); 65 void unlink(const path&); [all …]
|
| /freebsd-13.1/contrib/llvm-project/libcxx/include/experimental/ |
| H A D | filesystem | 18 void swap(path& lhs, path& rhs) noexcept; 28 path operator/ (const path& lhs, const path& rhs); 30 // fs.path.io operators are friends of path. 78 path absolute(const path& p); 81 path canonical(const path& p); 188 path proximate(const path& p, const path& base = current_path()); 189 path proximate(const path& p, const path& base, error_code &ec); 191 path read_symlink(const path& p); 195 path relative(const path& p, const path& base=current_path()); 196 path relative(const path& p, const path& base, error_code& ec); [all …]
|
| /freebsd-13.1/contrib/atf/atf-c++/detail/ |
| H A D | fs_test.cpp | 166 ATF_REQUIRE(path("/") == path("///")); in ATF_TEST_CASE_BODY() 167 ATF_REQUIRE(path("/a") == path("///a")); in ATF_TEST_CASE_BODY() 168 ATF_REQUIRE(path("/a") == path("///a///")); in ATF_TEST_CASE_BODY() 183 ATF_REQUIRE(path("/") != path("//a/")); in ATF_TEST_CASE_BODY() 184 ATF_REQUIRE(path("/a") != path("a///")); in ATF_TEST_CASE_BODY() 186 ATF_REQUIRE(path("a/b/c") != path("a/b")); in ATF_TEST_CASE_BODY() 187 ATF_REQUIRE(path("a/b/c") != path("a//b")); in ATF_TEST_CASE_BODY() 188 ATF_REQUIRE(path("a/b/c") != path("/a/b/c")); in ATF_TEST_CASE_BODY() 254 ATF_REQUIRE(!(path("aaa") < path("aaa"))); in ATF_TEST_CASE_BODY() 256 ATF_REQUIRE( path("aab") < path("abc")); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | fs.hpp | 67 class path { class 88 path(const path&); 93 path(const atf_fs_path_t *); 98 ~path(void); 122 path branch_path(void) const; 160 path& operator=(const path&); 189 path operator/(const path&) const; 341 directory(const path&); 359 bool exists(const path&); 377 void remove(const path&); [all …]
|
| H A D | fs.cpp | 108 impl::path::path(const std::string& s) in path() function in impl::path 115 impl::path::path(const path& p) in path() function in impl::path 122 impl::path::path(const atf_fs_path_t *p) in path() function in impl::path 129 impl::path::~path(void) in ~path() 169 impl::path 217 impl::path::operator=(const path& p) in operator =() 233 impl::path::operator==(const path& p) in operator ==() 240 impl::path::operator!=(const path& p) in operator !=() 260 impl::path::operator/(const path& p) in operator /() 274 impl::path::operator<(const path& p) in operator <() [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_subr/ |
| H A D | path.c | 286 assert(is_canonical(path, strlen(path))); in svn_path_component_count() 297 while (*path && *path != '/') in svn_path_component_count() 359 path->len = previous_segment(path->data, path->len); in svn_path_remove_component() 360 path->data[path->len] = '\0'; in svn_path_remove_component() 409 assert(is_canonical(path, strlen(path))); in svn_path_is_empty() 738 if (path[0] == '.' && (path[1] == '\0' || path[1] == '/')) in svn_path_is_dotpath_present() 760 if (path[0] == '\0' || path[1] == '\0') in svn_path_is_backpath_present() 764 if (path[0] == '.' && path[1] == '.' && (path[2] == '\0' || path[2] == '/')) in svn_path_is_backpath_present() 797 if (j > 0 && path[j] == ':' && path[j+1] == '/' && path[j+2] == '/') in skip_uri_scheme() 866 path = skip_uri_scheme(path); in svn_path_is_uri_safe() [all …]
|
| /freebsd-13.1/sbin/devfs/ |
| H A D | devfs.rules | 29 add path log unhide 30 add path null unhide 31 add path zero unhide 32 add path crypto unhide 33 add path random unhide 72 add path ptmx unhide 73 add path pts unhide 75 add path fd unhide 87 add path fuse unhide 88 add path zfs unhide [all …]
|
| /freebsd-13.1/sys/fs/ext2fs/ |
| H A D | ext2_extents.c | 349 if (!path) in ext4_ext_drop_refs() 364 if (!path) in ext4_ext_path_free() 395 path = *ppath; in ext4_ext_find_extent() 547 if (path) { in ext4_ext_blkpref() 623 if (!path) in ext4_ext_dirty() 1210 path = NULL; in ext4_ext_get_blocks() 1293 if (path) { in ext4_ext_get_blocks() 1343 path--; in ext4_ext_rm_index() 1487 if (path->ep_index < EXT_FIRST_INDEX(path->ep_header)) in ext4_ext_more_to_rm() 1537 path[i].ep_index = EXT_LAST_INDEX(path[i].ep_header); in ext4_ext_remove_space() [all …]
|
| /freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| H A D | tst.cleanpath.d | 44 path[i++] = "/./"; 46 path[i++] = "./"; 47 path[i++] = "//"; 48 path[i++] = "/."; 49 path[i++] = "/./"; 50 path[i++] = "/./."; 51 path[i++] = "/.//"; 52 path[i++] = "."; 53 path[i++] = "/////"; 54 path[i++] = ""; [all …]
|
| /freebsd-13.1/contrib/kyua/engine/ |
| H A D | filters_test.cpp | 70 ATF_REQUIRE_EQ(fs::path("foo"), filter.test_program); in ATF_TEST_CASE_BODY() 137 const engine::test_filter f(fs::path("foo"), ""); in ATF_TEST_CASE_BODY() 147 const engine::test_filter f1(fs::path("foo"), ""); in ATF_TEST_CASE_BODY() 223 const engine::test_filter f(fs::path("top"), ""); in ATF_TEST_CASE_BODY() 283 const engine::test_filter f1(fs::path("d1/d2"), ""); in ATF_TEST_CASE_BODY() 295 const engine::test_filter f1(fs::path("d1/d2"), ""); in ATF_TEST_CASE_BODY() 532 state.match_test_case(fs::path("a/b/c"), "any"); in ATF_TEST_CASE_BODY() 533 state.match_test_case(fs::path("baz"), "tc"); in ATF_TEST_CASE_BODY() 534 state.match_test_case(fs::path("hey/d"), "yes"); in ATF_TEST_CASE_BODY() 549 state.match_test_program(fs::path("a/b/c")); in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-13.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_store_subr.c | 83 path = bhnd_nv_malloc(sizeof(*path)); in bhnd_nvstore_path_new() 84 if (path == NULL) in bhnd_nvstore_path_new() 87 path->index = NULL; in bhnd_nvstore_path_new() 88 path->num_vars = 0; in bhnd_nvstore_path_new() 98 return (path); in bhnd_nvstore_path_new() 107 bhnd_nv_free(path); in bhnd_nvstore_path_new() 731 info->path.str.value, info->path.str.value_len)); in bhnd_nvstore_var_register_path() 823 if (strcmp(alias->path->path_str, path) == 0) in bhnd_nvstore_find_alias() 984 alias->path = path; in bhnd_nvstore_register_alias() 1135 path = name; in bhnd_nvstore_parse_name_info() [all …]
|
| /freebsd-13.1/sys/cam/ |
| H A D | cam_xpt.h | 69 struct cam_path *path, void *args); 82 struct cam_path *path, 86 struct cam_path *path, 99 struct cam_path *path); 100 void xpt_free_path(struct cam_path *path); 127 #define xpt_path_lock(path) mtx_lock(xpt_path_mtx(path)) argument 128 #define xpt_path_unlock(path) mtx_unlock(xpt_path_mtx(path)) argument 129 #define xpt_path_assert(path, what) mtx_assert(xpt_path_mtx(path), (what)) argument 130 #define xpt_path_owned(path) mtx_owned(xpt_path_mtx(path)) argument 134 void *cbarg, struct cam_path *path); [all …]
|
| /freebsd-13.1/usr.sbin/ckdist/ |
| H A D | ckdist.c | 68 #define isstdin(path) ((path)[0] == '-' && !(path)[1]) argument 192 path = "(stdin)"; in ckdist() 216 warn("%s", path); in ckdist() 218 err(2, "%s", path); in ckdist() 365 if (!path) in distname() 367 name = stripath(path); in distname() 374 path = opt_dir; in distname() 375 plen = strlen(path); in distname() 377 plen = path && (s = strrchr(path, '/')) != NULL ? in distname() 404 s + 1 : path); in stripath() [all …]
|
| /freebsd-13.1/sbin/pfctl/ |
| H A D | pf_ruleset.c | 94 int c = strcmp(a->path, b->path); in pf_anchor_compare() 152 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor() 164 path++; in pf_find_ruleset() 165 if (!*path) in pf_find_ruleset() 184 path++; in pf_find_or_create_ruleset() 225 strlcpy(anchor->path, parent->path, in pf_find_or_create_ruleset() 227 strlcat(anchor->path, "/", sizeof(anchor->path)); in pf_find_or_create_ruleset() 229 strlcat(anchor->path, anchor->name, sizeof(anchor->path)); in pf_find_or_create_ruleset() 234 anchor->path, anchor->name, dup->path, dup->name); in pf_find_or_create_ruleset() 316 strlcpy(path, s->anchor->path, MAXPATHLEN); in pfctl_anchor_setup() [all …]
|
| /freebsd-13.1/lib/libc/stdio/ |
| H A D | mktemp.c | 74 mkstemps(char *path, int slen) in mkstemps() argument 82 mkostemp(char *path, int oflags) in mkostemp() argument 90 mkstemp(char *path) in mkstemp() argument 98 mkdtemp(char *path) in mkdtemp() argument 100 return (_gettemp(AT_FDCWD, path, (int *)NULL, 1, 0, 0) ? path : (char *)NULL); in mkdtemp() 104 _mktemp(char *path) in _mktemp() argument 106 return (_gettemp(AT_FDCWD, path, (int *)NULL, 0, 0, 0) ? path : (char *)NULL); in _mktemp() 113 mktemp(char *path) in mktemp() argument 115 return (_mktemp(path)); in mktemp() 135 trv = path + strlen(path); in _gettemp() [all …]
|
| /freebsd-13.1/sys/netpfil/pf/ |
| H A D | pf_ruleset.c | 84 int c = strcmp(a->path, b->path); in pf_kanchor_compare() 128 strlcpy(key->path, path, sizeof(key->path)); in pf_find_kanchor() 154 path++; in pf_find_kruleset() 155 if (!*path) in pf_find_kruleset() 174 path++; in pf_find_or_create_kruleset() 215 strlcpy(anchor->path, parent->path, in pf_find_or_create_kruleset() 217 strlcat(anchor->path, "/", sizeof(anchor->path)); in pf_find_or_create_kruleset() 219 strlcat(anchor->path, anchor->name, sizeof(anchor->path)); in pf_find_or_create_kruleset() 224 anchor->path, anchor->name, dup->path, dup->name); in pf_find_or_create_kruleset() 307 strlcpy(path, s->anchor->path, MAXPATHLEN); in pf_kanchor_setup() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Path.h | 26 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); 106 const_iterator end(StringRef path); 116 reverse_iterator rend(StringRef path); 187 void append(SmallVectorImpl<char> &path, const Twine &a, 206 void append(SmallVectorImpl<char> &path, const_iterator begin, 219 void native(const Twine &path, SmallVectorImpl<char> &result, [all …]
|
| /freebsd-13.1/contrib/subversion/subversion/libsvn_fs_x/ |
| H A D | dag_cache.c | 103 ++path; in normalize_path() 128 segment_start = path->data + path->len; in next_entry_name() 148 path->len = segment_end - path->data; in next_entry_name() 174 segment_start = path->data + path->len - 1; in extract_last_segment() 186 svn_stringbuf_appendbytes(entry, path->data, path->len); in extract_last_segment() 226 char *path; member 324 && !memcmp(result->path, path->data, path_len)) in cache_lookup() 367 || memcmp(result->path, path->data, path_len)) in cache_lookup() 376 memcpy(result->path, path->data, path_len); in cache_lookup() 404 && !memcmp(result->path, path->data, path->len)) in cache_lookup_last_path() [all …]
|
| /freebsd-13.1/usr.sbin/bhyve/ |
| H A D | config.c | 56 copy = strdup(path); in _lookup_config_node() 75 path, tofree); in _lookup_config_node() 157 name = strrchr(path, '.'); in set_config_value() 160 name = path; in set_config_value() 162 node_name = strndup(path, name - path); in set_config_value() 177 value, path); in set_config_value() 202 name = path; in get_raw_config_value() 204 node_name = strndup(path, name - path); in get_raw_config_value() 270 if (path == NULL) in _expand_config_value() 281 path); in _expand_config_value() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libutil/ |
| H A D | t_pidfile.c | 83 path); in check_pidfile() 97 unlink(path); in ensure_deleted() 100 path); in ensure_deleted() 132 char *path; in generate_varrun_pidfile() local 142 return path; in generate_varrun_pidfile() 153 check_pidfile(path); in helper_default_path() 164 char *path; in ATF_TC_BODY() local 169 free(path); in ATF_TC_BODY() 180 check_pidfile(path); in helper_custom_basename() 191 char *path; in ATF_TC_BODY() local [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/module/zcommon/ |
| H A D | zfs_namecheck.c | 70 get_dataset_depth(const char *path) in get_dataset_depth() argument 72 const char *loc = path; in get_dataset_depth() 108 if (path[0] == '\0') { in zfs_component_namecheck() 114 for (loc = path; *loc; loc++) { in zfs_component_namecheck() 143 if (path[0] != '@') { in permset_namecheck() 146 *what = path[0]; in permset_namecheck() 198 if (path[0] == '/') { in entity_namecheck() 204 if (path[0] == '\0') { in entity_namecheck() 210 const char *start = path; in entity_namecheck() 373 if (path == NULL || *path != '/') { in mountpoint_namecheck() [all …]
|
| /freebsd-13.1/sys/sys/ |
| H A D | kernel.h | 323 (path), \ 330 #define TUNABLE_INT_FETCH(path, var) getenv_int((path), (var)) argument 342 (path), \ 349 #define TUNABLE_LONG_FETCH(path, var) getenv_long((path), (var)) argument 361 (path), \ 380 (path), \ 399 (path), \ 418 (path), \ 425 #define TUNABLE_QUAD_FETCH(path, var) getenv_quad((path), (var)) argument 437 (path), \ [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | FileSystem.cpp | 168 bool FileSystem::Exists(const Twine &path) const { return m_fs->exists(path); } in Exists() 256 if (path.empty()) in Resolve() 260 SmallString<128> resolved(path.begin(), path.end()); in Resolve() 262 Resolver.ResolveFullPath(llvm::StringRef(path.begin(), path.size()), in Resolve() 269 path.clear(); in Resolve() 286 Resolve(path); in Resolve() 299 Collect(path); in CreateDataBuffer() 350 llvm::StringRef parent = llvm::sys::path::parent_path(path); in ResolveExecutableLocation() 368 return llvm::sys::path::home_directory(path); in GetHomeDirectory() 460 if (!path) in Open() [all …]
|