Home
last modified time | relevance | path

Searched full:path (Results 1 – 25 of 6626) sorted by relevance

12345678910>>...266

/src/contrib/llvm-project/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 …]
/src/contrib/llvm-project/libcxx/include/__filesystem/
H A Doperations.h19 #include <__filesystem/path.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…
[all …]
/src/contrib/llvm-project/llvm/include/llvm/Support/
H A DPath.h1 //===- llvm/Support/Path.h - Path Operating System Concept ------*- C++ -*-===//
9 // This file declares the llvm::sys::path namespace. It is designed after
11 // path class.
25 namespace path {
35 /// Check if \p S uses POSIX path rules.
48 /// Check if \p S uses Windows path rules.
54 /// Path iterator.
57 /// \a path. The traversal order is as follows:
76 StringRef Path; ///< The entire path. variable
77 StringRef Component; ///< The current component. Not necessarily in Path.
[all …]
/src/contrib/kyua/utils/fs/
H A Dpath_test.cpp29 #include "utils/fs/path.hpp"
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()
[all …]
H A Dpath.cpp29 #include "utils/fs/path.hpp"
41 /// Normalizes an input string to a valid path.
43 /// A normalized path cannot have empty components; i.e. there can be at most
48 /// \return The normalized string, representing a path.
50 /// \throw utils::fs::invalid_path_error If the path is empty.
84 /// Creates a new path object from a textual representation of a path.
86 /// \param text A valid representation of a path in textual form.
89 /// valid path.
90 fs::path::path(const std::string& text) : in path() function in fs::path
96 /// Gets a view of the path as an array of characters.
[all …]
/src/sys/contrib/edk2/Include/Library/
H A DDevicePathLib.h18 Determine whether a given device path is valid.
20 @param DevicePath A pointer to a device path data structure.
21 @param MaxSize The maximum size of the device path data structure.
41 Returns the Type field of a device path node.
43 Returns the Type field of the device path node specified by Node.
47 @param Node A pointer to a device path node data structure.
49 @return The Type field of the device path node specified by Node.
59 Returns the SubType field of a device path node.
61 Returns the SubType field of the device path node specified by Node.
65 @param Node A pointer to a device path node data structure.
[all …]
/src/sbin/devfs/
H A Ddevfs.rules28 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/sys/contrib/dev/rtw89/
H A Drtw8852c_rfk.c153 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 Drtw8852a_rfk.c94 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 Drtw8852b_rfk.c236 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 Drtw8851b_rfk.c151 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 Drtw8852bt_rfk.c135 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/lib/libefivar/
H A Duefi-dputil.c44 Device Path services. The thing to remember is device paths are built out of
45 nodes. The device path is terminated by an end node that is length
61 // Template for an end-of-device path node.
73 Determine whether a given device path is valid.
75 @param DevicePath A pointer to a device path data structure.
76 @param MaxSize The maximum size of the device path data structure.
148 // Only return TRUE when the End Device Path node is valid. in IsDevicePathValid()
154 Returns the Type field of a device path node.
156 Returns the Type field of the device path node specified by Node.
160 @param Node A pointer to a device path node data structure.
[all …]
H A Defivar-dp-parse.c90 @param Str Device Path Text.
233 Get one device node from entire device path text.
235 …@param DevicePath On input, the current Device Path node; on output, the next device path node
236 @param IsInstanceEnd This node is the end of a device path instance
294 // The '(' doesn't pair with ')', invalid device path text in GetNextDeviceNodeStr()
425 Converts a generic text device path node to device path structure.
427 @param Type The type of the device path node.
428 @param TextDeviceNode The input text device path node.
430 @return A pointer to device path structure.
467 Converts a generic text device path node to device path structure.
[all …]
/src/contrib/bmake/unit-tests/
H A Dvarname-dot-path.mk1 # $NetBSD: varname-dot-path.mk,v 1.3 2020/10/02 18:46:54 rillig Exp $
3 # Tests for the special .PATH variable, which TODO: describe the purpose.
5 _!= mkdir -p varname-dot-path.d
7 # By default, .PATH consists of "." and .CURDIR.
9 .if ${.PATH} != ". ${.CURDIR}"
10 . error ${.PATH}
13 # The special target .PATH adds a directory to the path.
14 .PATH: /
15 .if ${.PATH} != ". ${.CURDIR} /"
16 . error ${.PATH}
[all …]
/src/contrib/llvm-project/llvm/lib/Support/
H A DPath.cpp1 //===-- Path.cpp - Implement OS Path Concept ------------------------------===//
9 // This file implements the operating system Path API.
13 #include "llvm/Support/Path.h"
38 using llvm::sys::path::is_separator;
39 using llvm::sys::path::Style;
62 StringRef find_first_component(StringRef path, Style style) { in find_first_component() argument
69 if (path.empty()) in find_first_component()
70 return path; in find_first_component()
74 if (path.size() >= 2 && in find_first_component()
75 std::isalpha(static_cast<unsigned char>(path[0])) && path[1] == ':') in find_first_component()
[all …]
/src/contrib/atf/atf-c++/detail/
H A Dfs_test.cpp63 // Test cases for the "path" class.
69 set_md_var("descr", "Tests the path's normalization"); in ATF_TEST_CASE_HEAD()
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()
[all …]
/src/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_store_subr.c62 * Allocate and initialize a new path instance.
67 * @param path_str The path's canonical string representation.
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()
[all …]
/src/sbin/pfctl/
H A Dpf_ruleset.c93 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/fs/ext2fs/
H A Dext2_extents.c184 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()
191 printf("ip=%ju, Path:\n", ip->i_number); 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()
[all …]
/src/sys/netpfil/pf/
H A Dpf_ruleset.c87 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/sys/contrib/edk2/Include/Protocol/
H A DDevicePathUtilities.h14 /// Device Path Utilities protocol
22 Returns the size of the device path, in bytes.
24 @param DevicePath Points to the start of the EFI device path.
26 @return Size Size of the specified device path, in bytes, including the end-of-path tag.
37 Create a duplicate of the specified path.
39 @param DevicePath Points to the source EFI device path.
41 @retval Pointer A pointer to the duplicate device path.
52 Create a new path by appending the second device path to the first.
55 If Src1 and Src2 are both NULL, then a copy of an end-of-device-path is returned.
57 @param Src1 Points to the first device path.
[all …]
/src/contrib/kyua/engine/
H A Dfilters_test.cpp50 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()
110 // TODO(jmmv): Not implemented. At the moment, the only reason for a path in ATF_TEST_CASE_BODY()
113 // an argument with an invalid non-empty path... 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()
[all …]
/src/contrib/ofed/opensm/include/opensm/
H A Dosm_path.h55 * Declaration of path related objects.
58 /****h* OpenSM/DR Path
60 * DR Path
63 * The DR Path structure encapsulates a directed route through the subnet.
71 /****s* OpenSM: DR Path/osm_dr_path_t
84 uint8_t path[IB_SUBNET_PATH_HOPS_MAX]; member
89 * Bind handle for port to which this path applies.
92 * The number of hops in this path.
94 * path
95 * The array of port numbers that comprise this path.
[all …]
/src/crypto/openssh/regress/unittests/misc/
H A Dtest_parse.c29 char *user, *host, *path; in test_parse() local
32 ASSERT_INT_EQ(parse_user_host_path("someuser@some.host:some/path", in test_parse()
33 &user, &host, &path), 0); in test_parse()
36 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
37 free(user); free(host); free(path); in test_parse()
41 ASSERT_INT_EQ(parse_user_host_path("someuser@1.22.33.144:some/path", in test_parse()
42 &user, &host, &path), 0); in test_parse()
45 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
46 free(user); free(host); free(path); in test_parse()
50 ASSERT_INT_EQ(parse_user_host_path("someuser@[1.22.33.144]:some/path", in test_parse()
[all …]

12345678910>>...266