Home
last modified time | relevance | path

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

12345678910>>...58

/minix3/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 …]
H A Dpath.hpp53 class path { class
58 explicit path(const std::string&);
63 path branch_path(void) const;
65 path to_absolute(void) const;
68 bool is_parent_of(path) const;
71 bool operator<(const path&) const;
72 bool operator==(const path&) const;
73 bool operator!=(const path&) const;
74 path operator/(const std::string&) const;
75 path operator/(const path&) const;
[all …]
H A Doperations.hpp46 class path;
49 path current_path(void);
50 bool exists(const fs::path&);
51 utils::optional< path > find_in_path(const char*);
52 void mkdir(const path&, const int);
53 void mkdir_p(const path&, const int);
54 fs::path mkdtemp(const std::string&);
55 fs::path mkstemp(const std::string&);
56 void rm_r(const path&);
57 void rmdir(const path&);
[all …]
/minix3/external/bsd/bind/dist/unit/atf-src/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 …]
H A 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 …]
/minix3/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 …]
H A 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 …]
/minix3/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 …]
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Support/
H A DPath.h26 namespace path {
57 friend const_iterator begin(StringRef path);
58 friend const_iterator end(StringRef path);
83 friend reverse_iterator rbegin(StringRef path);
84 friend reverse_iterator rend(StringRef path);
98 const_iterator begin(StringRef path);
103 const_iterator end(StringRef path);
108 reverse_iterator rbegin(StringRef path);
113 reverse_iterator rend(StringRef path);
129 void remove_filename(SmallVectorImpl<char> &path);
[all …]
/minix3/external/bsd/llvm/dist/clang/bindings/python/tests/cindex/
H A Dtest_translation_unit.py17 kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS')
20 path = os.path.join(kInputsDir, 'hello.cpp')
21 tu = TranslationUnit.from_source(path)
22 assert tu.spelling == path
25 path = os.path.join(kInputsDir, 'hello.cpp')
26 tu = get_tu(path)
32 path = os.path.join(kInputsDir, 'parse_arguments.c')
33 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
39 path = os.path.join(kInputsDir, 'parse_arguments.c')
40 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
[all …]
/minix3/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 …]
/minix3/external/bsd/llvm/dist/llvm/lib/Support/
H A DPath.cpp36 using llvm::sys::path::is_separator;
46 StringRef find_first_component(StringRef path) { in find_first_component() argument
54 if (path.empty()) in find_first_component()
55 return path; in find_first_component()
59 if (path.size() >= 2 && std::isalpha(static_cast<unsigned char>(path[0])) && in find_first_component()
60 path[1] == ':') in find_first_component()
61 return path.substr(0, 2); in find_first_component()
65 if ((path.size() > 2) && in find_first_component()
66 is_separator(path[0]) && in find_first_component()
67 path[0] == path[1] && in find_first_component()
[all …]
/minix3/tests/lib/libutil/
H A 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 …]
/minix3/external/bsd/llvm/dist/llvm/utils/llvm-lit/
H A Dllvm-lit.in11 sys.path.insert(0, os.path.join(llvm_source_root, 'utils', 'lit'))
17 'llvm_site_config' : os.path.join(llvm_obj_root, 'test', 'lit.site.cfg'),
18 'llvm_unit_site_config' : os.path.join(llvm_obj_root, 'test', 'Unit',
22 clang_obj_root = os.path.join(llvm_obj_root, 'tools', 'clang')
24 if os.path.exists(clang_obj_root):
26 os.path.join(clang_obj_root, 'test', 'lit.site.cfg')
27 clang_tools_extra_obj_root = os.path.join(clang_obj_root, 'tools', 'extra')
28 if os.path.exists(clang_tools_extra_obj_root):
30 os.path.join(clang_tools_extra_obj_root, 'test', 'lit.site.cfg')
32 lld_obj_root = os.path.join(llvm_obj_root, 'tools', 'lld')
[all …]
/minix3/external/bsd/llvm/dist/clang/tools/scan-build/
H A Dset-xcode-analyzer20 def FindClangSpecs(path): argument
21 print "(+) Searching for xcspec file in: ", path
22 for root, dirs, files in os.walk(path):
25 yield os.path.join(root, f)
27 def ModifySpec(path, isBuiltinAnalyzer, pathToChecker): argument
30 with open(path) as f:
34 with open(path) as f2:
52 print "(+) processing:", path
54 shutil.copy(t.name, path)
55 os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
[all …]
/minix3/lib/libc/gen/
H A Ddirname.c48 xdirname_r(const char *path, char *buf, size_t buflen) in __weak_alias()
57 if (path == NULL || *path == '\0') { in __weak_alias()
58 path = "."; in __weak_alias()
64 endp = path + strlen(path) - 1; in __weak_alias()
65 while (endp != path && *endp == '/') in __weak_alias()
69 while (endp > path && *endp != '/') in __weak_alias()
72 if (endp == path) { in __weak_alias()
73 path = *endp == '/' ? "/" : "."; in __weak_alias()
80 while (endp > path && *endp == '/'); in __weak_alias()
82 len = endp - path + 1; in __weak_alias()
[all …]
H A Dgetcwd.c71 realpath(const char * __restrict path, char * __restrict resolved) in __weak_alias()
81 if (path == NULL) { in __weak_alias()
105 if (*path == '\0') { in __weak_alias()
112 if (*path != '/') { in __weak_alias()
126 while (*path == '/') in __weak_alias()
127 path++; in __weak_alias()
129 if (*path == '\0') { in __weak_alias()
137 q = path; in __weak_alias()
143 if (path[0] == '.') { in __weak_alias()
144 if (q - path == 1) { in __weak_alias()
[all …]
/minix3/minix/tests/
H A Dtest43.c23 static char *remove_last_path_component(char *path) in remove_last_path_component() argument
27 assert(path); in remove_last_path_component()
31 for (current = path; *current; current++) in remove_last_path_component()
43 if (last <= path) in remove_last_path_component()
48 return path; in remove_last_path_component()
51 static int check_path_components(const char *path) in check_path_components() argument
56 assert(strlen(path) < sizeof(buffer)); in check_path_components()
59 while (*path) in check_path_components()
64 *(bufferpos++) = *(path++); in check_path_components()
65 } while (*path && *path != '/'); in check_path_components()
[all …]
/minix3/external/bsd/llvm/dist/clang/test/Analysis/
H A Dunix-api.c14 void open_1(const char *path) { in open_1() argument
16 fd = open(path, O_RDONLY); // no-warning in open_1()
21 void open_2(const char *path) { in open_2() argument
24 …fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than three ar… in open_2()
29 void open_3(const char *path) { in open_3() argument
31 fd = open(path, O_RDONLY, NULL); // expected-warning{{Third argument to 'open' is not an integer}} in open_3()
36 void open_4(const char *path) { in open_4() argument
38 fd = open(path, O_RDONLY, ""); // expected-warning{{Third argument to 'open' is not an integer}} in open_4()
43 void open_5(const char *path) { in open_5() argument
48 fd = open(path, O_RDONLY, st); // expected-warning{{Third argument to 'open' is not an integer}} in open_5()
[all …]
/minix3/tests/lib/libc/sys/
H A 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 …]

12345678910>>...58