| /src/contrib/kyua/utils/fs/ |
| H A D | path_test.cpp | 43 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 D | path.cpp | 90 fs::path::path(const std::string& text) : in path() function in fs::path 100 fs::path::c_str(void) const in c_str() 110 fs::path::str(void) const in str() 121 fs::path 122 fs::path::branch_path(void) const in branch_path() 126 return fs::path("."); in branch_path() 128 return fs::path("/"); in branch_path() 130 return fs::path(_repr.substr(0, end_pos)); in branch_path() 138 fs::path::leaf_name(void) const in leaf_name() 154 fs::path [all …]
|
| /src/contrib/llvm-project/libcxx/include/__filesystem/ |
| H A D | operations.h | 36 _LIBCPP_EXPORTED_FROM_ABI path __absolute(const path&, error_code* __ec = nullptr); 37 _LIBCPP_EXPORTED_FROM_ABI path __canonical(const path&, error_code* __ec = nullptr); 39 __copy_file(const path& __from, const path& __to, copy_options __opt, error_code* __ec = nullptr); 41 __copy_symlink(const path& __existing_symlink, const path& __new_symlink, error_code* __ec = nullpt… 43 __copy(const path& __from, const path& __to, copy_options __opt, error_code* __ec = nullptr); 44 _LIBCPP_EXPORTED_FROM_ABI bool __create_directories(const path&, error_code* = nullptr); 46 __create_directory_symlink(const path& __to, const path& __new_symlink, error_code* __ec = nullptr); 47 _LIBCPP_EXPORTED_FROM_ABI bool __create_directory(const path&, error_code* = nullptr); 48 _LIBCPP_EXPORTED_FROM_ABI bool __create_directory(const path&, const path& __attributes, error_code… 50 __create_hard_link(const path& __to, const path& __new_hard_link, error_code* __ec = nullptr); [all …]
|
| /src/contrib/atf/atf-c++/detail/ |
| H A D | fs_test.cpp | 73 using atf::fs::path; in ATF_TEST_CASE_BODY() 75 ATF_REQUIRE_EQ(path(".").str(), "."); in ATF_TEST_CASE_BODY() 76 ATF_REQUIRE_EQ(path("..").str(), ".."); in ATF_TEST_CASE_BODY() 78 ATF_REQUIRE_EQ(path("foo").str(), "foo"); in ATF_TEST_CASE_BODY() 79 ATF_REQUIRE_EQ(path("foo/bar").str(), "foo/bar"); in ATF_TEST_CASE_BODY() 80 ATF_REQUIRE_EQ(path("foo/bar/").str(), "foo/bar"); in ATF_TEST_CASE_BODY() 82 ATF_REQUIRE_EQ(path("/foo").str(), "/foo"); in ATF_TEST_CASE_BODY() 83 ATF_REQUIRE_EQ(path("/foo/bar").str(), "/foo/bar"); in ATF_TEST_CASE_BODY() 84 ATF_REQUIRE_EQ(path("/foo/bar/").str(), "/foo/bar"); in ATF_TEST_CASE_BODY() 86 ATF_REQUIRE_EQ(path("///foo").str(), "/foo"); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | fs.hpp | 67 class path { class 83 explicit path(const std::string&); 88 path(const path&); 93 path(const atf_fs_path_t *); 98 ~path(void); 122 path branch_path(void) const; 155 path to_absolute(void) const; 160 path& operator=(const path&); 165 bool operator==(const path&) const; 170 bool operator!=(const path&) const; [all …]
|
| /src/contrib/llvm-project/libcxx/include/ |
| H A D | filesystem | 18 // `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); 38 … path(InputIterator first, InputIterator last, const locale& loc, format fmt = auto_format); [all …]
|
| /src/sys/contrib/dev/rtw89/ |
| H A D | rtw8852c_rfk.c | 153 u8 path; in _wait_rx_mode() local 157 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode() 158 if (!(kpath & BIT(path))) in _wait_rx_mode() 162 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode() 166 path, ret); in _wait_rx_mode() 304 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument 312 path_offset = (path == RF_PATH_A ? 0 : 0x28); in _dack_reload_by_path() 320 val32 |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path() 329 val32 |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path() 338 val32 |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path() [all …]
|
| H A D | rtw8852a_rfk.c | 94 u8 path; in _wait_rx_mode() local 98 for (path = 0; path < RF_PATH_MAX; path++) { in _wait_rx_mode() 99 if (!(kpath & BIT(path))) in _wait_rx_mode() 103 2, 5000, false, rtwdev, path, 0x00, in _wait_rx_mode() 107 path, ret); in _wait_rx_mode() 254 enum rtw89_rf_path path, u8 index) in _dack_reload_by_path() argument 266 if (path == RF_PATH_A) in _dack_reload_by_path() 275 tmp |= dack->msbk_d[path][index][i + 12] << (i * 8); in _dack_reload_by_path() 283 tmp |= dack->msbk_d[path][index][i + 8] << (i * 8); in _dack_reload_by_path() 291 tmp |= dack->msbk_d[path][index][i + 4] << (i * 8); in _dack_reload_by_path() [all …]
|
| H A D | rtw8852b_rfk.c | 236 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument 239 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 241 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 245 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument 248 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 250 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 253 static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path) in _iqk_check_cal() argument 270 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, ret=%d\n", path, ret); in _iqk_check_cal() 272 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[IQK]S%x, 0x8008 = 0x%x\n", path, val); in _iqk_check_cal() 296 enum rtw89_rf_path path) in _set_rx_dck() argument [all …]
|
| H A D | rtw8851b_rfk.c | 151 u8 path) in _adc_fifo_rst() argument 159 enum rtw89_rf_path path, bool is_bybb) in _rfk_rf_direct_cntrl() argument 162 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x1); in _rfk_rf_direct_cntrl() 164 rtw89_write_rf(rtwdev, path, RR_RSV1, RR_RSV1_RST, 0x0); in _rfk_rf_direct_cntrl() 168 enum rtw89_rf_path path, bool is_bybb) in _rfk_drf_direct_cntrl() argument 171 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x1); in _rfk_drf_direct_cntrl() 173 rtw89_write_rf(rtwdev, path, RR_BBDC, RR_BBDC_SEL, 0x0); in _rfk_drf_direct_cntrl() 176 static void _txck_force(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _txck_force() argument 179 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x0); in _txck_force() 184 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_VAL, ck); in _txck_force() [all …]
|
| H A D | rtw8852bt_rfk.c | 135 static void _rfk_get_thermal(struct rtw89_dev *rtwdev, u8 kidx, enum rtw89_rf_path path) in _rfk_get_thermal() argument 139 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 140 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x0); in _rfk_get_thermal() 141 rtw89_write_rf(rtwdev, path, RR_TM, RR_TM_TRI, 0x1); in _rfk_get_thermal() 145 dpk->bp[path][kidx].ther_dpk = rtw89_read_rf(rtwdev, path, RR_TM, RR_TM_VAL); in _rfk_get_thermal() 148 dpk->bp[path][kidx].ther_dpk); in _rfk_get_thermal() 253 void _txck_force(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, bool force, in _txck_force() argument 256 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x0); in _txck_force() 261 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_VAL, ck); in _txck_force() 262 rtw89_phy_write32_mask(rtwdev, R_P0_RXCK | (path << 13), B_P0_TXCK_ON, 0x1); in _txck_force() [all …]
|
| /src/sbin/pfctl/ |
| H A D | pf_ruleset.c | 93 int c = strcmp(a->path, b->path); in pf_anchor_compare() 144 pf_find_anchor(const char *path) in pf_find_anchor() argument 151 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor() 158 pf_find_ruleset(const char *path) in pf_find_ruleset() argument 162 while (*path == '/') in pf_find_ruleset() 163 path++; in pf_find_ruleset() 164 if (!*path) in pf_find_ruleset() 166 anchor = pf_find_anchor(path); in pf_find_ruleset() 174 pf_find_or_create_ruleset(const char *path) in pf_find_or_create_ruleset() argument 180 if (path[0] == 0) in pf_find_or_create_ruleset() [all …]
|
| /src/sys/netpfil/pf/ |
| H A D | pf_ruleset.c | 87 int c = strcmp(a->path, b->path); in pf_kanchor_compare() 95 int c = strcmp(a->path, b->path); in pf_keth_anchor_compare() 132 pf_find_kanchor(const char *path) in pf_find_kanchor() argument 139 strlcpy(key->path, path, sizeof(key->path)); in pf_find_kanchor() 175 pf_find_kruleset(const char *path) in pf_find_kruleset() argument 179 while (*path == '/') in pf_find_kruleset() 180 path++; in pf_find_kruleset() 181 if (!*path) in pf_find_kruleset() 183 anchor = pf_find_kanchor(path); in pf_find_kruleset() 190 pf_get_leaf_kruleset(char *path, char **path_remainder) in pf_get_leaf_kruleset() argument [all …]
|
| /src/sbin/devfs/ |
| H A D | devfs.rules | 28 add path null unhide 29 add path zero unhide 30 add path crypto unhide 31 add path random unhide 32 add path urandom unhide 38 add path 'ptyp*' unhide 39 add path 'ptyq*' unhide 40 add path 'ptyr*' unhide 41 add path 'ptys*' unhide 42 add path 'ptyP*' unhide [all …]
|
| /src/contrib/ncurses/ncurses/tinfo/ |
| H A D | access.c | 74 last_delim(const char *path) in last_delim() argument 78 if ((check = strrchr(path, '\\')) != NULL) in last_delim() 80 if ((check = strrchr(path, '/')) != NULL) { in last_delim() 81 if ((check - path) > (result - path)) in last_delim() 111 _nc_to_dospath(const char *path, char *buffer) in _nc_to_dospath() argument 113 if (UsesDrive(path) || IsRelative(path)) { in _nc_to_dospath() 114 if ((strlen(path) < PATH_MAX) && (strpbrk(path, "/") != NULL)) { in _nc_to_dospath() 117 while ((ch = (*ptr++ = *path++)) != '\0') { in _nc_to_dospath() 121 path = buffer; in _nc_to_dospath() 123 } else if (last_delim(path) != NULL) { in _nc_to_dospath() [all …]
|
| /src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| H A D | tst.cleanpath.d | 34 path[i++] = "/foo/bar/baz"; 35 path[i++] = "/foo/bar///baz/"; 36 path[i++] = "/foo/bar/baz/"; 37 path[i++] = "/foo/bar/baz//"; 38 path[i++] = "/foo/bar/baz/."; 39 path[i++] = "/foo/bar/baz/./"; 40 path[i++] = "/foo/bar/../../baz/.//"; 41 path[i++] = "foo/bar/./././././baz/"; 42 path[i++] = "/foo/bar/baz/../../../../../../"; 43 path[i++] = "/../../../../../../"; [all …]
|
| /src/contrib/kyua/engine/ |
| H A D | filters_test.cpp | 50 return engine::test_filter(fs::path(test_program), test_case); in mkfilter() 60 const engine::test_filter filter(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY() 61 ATF_REQUIRE_EQ(fs::path("foo/bar"), filter.test_program); in ATF_TEST_CASE_BODY() 70 ATF_REQUIRE_EQ(fs::path("foo"), filter.test_program); in ATF_TEST_CASE_BODY() 120 const engine::test_filter filter(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY() 129 const engine::test_filter f(fs::path("foo/bar"), "baz"); in ATF_TEST_CASE_BODY() 133 const engine::test_filter f(fs::path("foo/bar"), ""); 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() 148 const engine::test_filter f2(fs::path("foo"), "bar"); in ATF_TEST_CASE_BODY() [all …]
|
| /src/sys/fs/ext2fs/ |
| H A D | ext2_extents.c | 184 ext4_ext_print_path(struct inode *ip, struct ext4_extent_path *path) in ext4_ext_print_path() argument 188 depth = path->ep_depth; in ext4_ext_print_path() 193 for (k = 0; k <= depth && error == 0; k++, path++) { in ext4_ext_print_path() 194 if (path->ep_index) { in ext4_ext_print_path() 195 error = ext4_ext_walk_index(ip, path->ep_index, in ext4_ext_print_path() 197 } else if (path->ep_ext) { in ext4_ext_print_path() 198 error = ext4_ext_walk_extent(ip, path->ep_ext); in ext4_ext_print_path() 491 ext4_ext_binsearch_index(struct ext4_extent_path *path, int blk) in ext4_ext_binsearch_index() argument 496 eh = path->ep_header; in ext4_ext_binsearch_index() 512 path->ep_index = l - 1; in ext4_ext_binsearch_index() [all …]
|
| /src/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_store_subr.c | 76 bhnd_nvstore_path *path; in bhnd_nvstore_path_new() local 79 path = bhnd_nv_malloc(sizeof(*path)); in bhnd_nvstore_path_new() 80 if (path == NULL) in bhnd_nvstore_path_new() 83 path->index = NULL; in bhnd_nvstore_path_new() 84 path->num_vars = 0; in bhnd_nvstore_path_new() 86 path->pending = bhnd_nvram_plist_new(); in bhnd_nvstore_path_new() 87 if (path->pending == NULL) in bhnd_nvstore_path_new() 90 path->path_str = bhnd_nv_strndup(path_str, path_len); in bhnd_nvstore_path_new() 91 if (path->path_str == NULL) in bhnd_nvstore_path_new() 94 return (path); in bhnd_nvstore_path_new() [all …]
|
| /src/sys/cam/ |
| H A D | cam_xpt.h | 66 struct cam_path *path, void *args); 79 struct cam_path *path, 83 struct cam_path *path, 96 struct cam_path *path); 97 void xpt_free_path(struct cam_path *path); 98 void xpt_path_counts(struct cam_path *path, uint32_t *bus_ref, 103 int xpt_path_comp_dev(struct cam_path *path, 105 char * xpt_path_string(struct cam_path *path, char *str, 107 void xpt_path_sbuf(struct cam_path *path, struct sbuf *sb); 108 path_id_t xpt_path_path_id(struct cam_path *path); [all …]
|
| /src/usr.sbin/ckdist/ |
| H A D | ckdist.c | 63 #define isstdin(path) ((path)[0] == '-' && !(path)[1]) argument 74 static int ckdist(const char *path, int type); 75 static int chkmd5(FILE * fp, const char *path); 76 static int chkinf(FILE * fp, const char *path); 77 static int report(const char *path, const char *name, int error); 78 static const char *distname(const char *path, const char *name, 80 static const char *stripath(const char *path); 81 static int distfile(const char *path); 83 static int fail(const char *path, const char *msg); 181 ckdist(const char *path, int type) in ckdist() argument [all …]
|
| /src/crypto/krb5/src/util/support/ |
| H A D | path.c | 49 find_sep(const char *path) in find_sep() argument 54 slash = strrchr(path, '/'); in find_sep() 55 backslash = strrchr(path, '\\'); in find_sep() 61 return strrchr(path, '/'); in find_sep() 67 k5_path_split(const char *path, char **parent_out, char **basename_out) in k5_path_split() argument 77 pathstart = path; in k5_path_split() 79 if (*path != '\0' && path[1] == ':') in k5_path_split() 80 pathstart = path + 2; in k5_path_split() 99 parent = malloc(pend - path + 1); in k5_path_split() 102 memcpy(parent, path, pend - path); in k5_path_split() [all …]
|
| /src/lib/libc/stdio/ |
| H A D | mktemp.c | 52 mkostempsat(int dfd, char *path, int slen, int oflags) in mkostempsat() argument 56 return (_gettemp(dfd, path, &fd, 0, slen, oflags) ? fd : -1); in mkostempsat() 60 mkostemps(char *path, int slen, int oflags) in mkostemps() argument 64 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, oflags) ? fd : -1); in mkostemps() 68 mkstemps(char *path, int slen) in mkstemps() argument 72 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, 0) ? fd : -1); in mkstemps() 76 mkostemp(char *path, int oflags) in mkostemp() argument 80 return (_gettemp(AT_FDCWD, path, &fd, 0, 0, oflags) ? fd : -1); in mkostemp() 84 mkstemp(char *path) in mkstemp() argument 88 return (_gettemp(AT_FDCWD, path, &fd, 0, 0, 0) ? fd : -1); in mkstemp() [all …]
|
| /src/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | Path.h | 25 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 …]
|
| /src/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | FileSystem.cpp | 80 llvm::ErrorOr<vfs::Status> FileSystem::GetStatus(const Twine &path) const { in GetStatus() 81 return m_fs->status(path); in GetStatus() 91 sys::TimePoint<> FileSystem::GetModificationTime(const Twine &path) const { in GetModificationTime() 92 ErrorOr<vfs::Status> status = m_fs->status(path); in GetModificationTime() 104 uint64_t FileSystem::GetByteSize(const Twine &path) const { in GetByteSize() 105 ErrorOr<vfs::Status> status = m_fs->status(path); in GetByteSize() 122 uint32_t FileSystem::GetPermissions(const Twine &path) const { in GetPermissions() 124 return GetPermissions(path, ec); in GetPermissions() 127 uint32_t FileSystem::GetPermissions(const Twine &path, in GetPermissions() argument 129 ErrorOr<vfs::Status> status = m_fs->status(path); in GetPermissions() [all …]
|