Home
last modified time | relevance | path

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

12345678910>>...195

/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/libcxx/include/__filesystem/
H A Doperations.h20 #include <__filesystem/path.h>
37 _LIBCPP_FUNC_VIS path __absolute(const path&, error_code* __ec = nullptr);
38 _LIBCPP_FUNC_VIS path __canonical(const path&, error_code* __ec = nullptr);
39 _LIBCPP_FUNC_VIS bool __copy_file(const path& __from, const path& __to, copy_options __opt, error_c…
40 _LIBCPP_FUNC_VIS void __copy_symlink(const path& __existing_symlink, const path& __new_symlink, err…
41 _LIBCPP_FUNC_VIS void __copy(const path& __from, const path& __to, copy_options __opt, error_code* …
42 _LIBCPP_FUNC_VIS bool __create_directories(const path&, error_code* = nullptr);
43 _LIBCPP_FUNC_VIS void __create_directory_symlink(const path& __to, const path& __new_symlink, error…
44 _LIBCPP_FUNC_VIS bool __create_directory(const path&, error_code* = nullptr);
45 _LIBCPP_FUNC_VIS bool __create_directory(const path&, const path& __attributes, error_code* = nullp…
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/regress/usr.bin/make/
H A DMakefile12 env -i PATH=${PATH} ${MAKE} -e -r -f ${.CURDIR}/mk1 | diff - t1.out
17 cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mk2| diff - t2.out
20 cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mk3 -f mk3a|diff - t3.out
21 cd ${.CURDIR} && cat mk3a |env -i PATH=${PATH} ${MAKE} -r -f mk3 -f -|diff - t3.out
22 cd ${.CURDIR} && cat mk3 |env -i PATH=${PATH} ${MAKE} -r -f - -f mk3a|diff - t3.out
23 cd ${.CURDIR} && cat mk3 mk3a|env -i PATH=${PATH} ${MAKE} -r -f - |diff - t3.out
26 cd ${.CURDIR} && cat mk4 mk4a|env -i PATH=${PATH} ${MAKE} -r -f - |diff - t4.out
28 …if cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mk4 -f mk4a 2>/dev/null || test $$? -ge 128 …
33 …if cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mkfail 2>/dev/null || test $$? -ge 128; then…
35 cd ${.CURDIR} && env -i PATH=${PATH} MAKEFLAGS=-n ${MAKE} -r -f mkfail
[all …]
/openbsd-src/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/
H A Dcompatibility.py16 def _relpath_nt(path, start=os.path.curdir): argument
17 """Return a relative version of a path"""
19 if not path:
20 raise ValueError("no path specified")
21 start_list = os.path.abspath(start).split(os.path.sep)
22 path_list = os.path.abspath(path).split(os.path.sep)
24 unc_path, rest = os.path.splitunc(path)
25 unc_start, rest = os.path.splitunc(start)
28 % (path, start))
30 raise ValueError("path is on drive %s, start on drive %s"
[all …]
/openbsd-src/gnu/llvm/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"
37 using llvm::sys::path::is_separator;
38 using llvm::sys::path::Style;
61 StringRef find_first_component(StringRef path, Style style) { in find_first_component() argument
68 if (path.empty()) in find_first_component()
69 return path; in find_first_component()
73 if (path.size() >= 2 && in find_first_component()
74 std::isalpha(static_cast<unsigned char>(path[0])) && path[1] == ':') in find_first_component()
[all …]
H A DFileCollector.cpp13 #include "llvm/Support/Path.h"
34 static bool isCaseSensitivePath(StringRef Path) { in isCaseSensitivePath() argument
35 SmallString<256> TmpDest = Path, UpperDest, RealDest; in isCaseSensitivePath()
38 if (sys::fs::real_path(Path, TmpDest)) in isCaseSensitivePath()
40 Path = TmpDest; in isCaseSensitivePath()
42 // Change path to all upper case and ask for its real path, if the latter in isCaseSensitivePath()
43 // exists and is equal to path, it's not case sensitive. Default to case in isCaseSensitivePath()
46 UpperDest = Path.upper(); in isCaseSensitivePath()
47 if (!sys::fs::real_path(UpperDest, RealDest) && Path.equals(RealDest)) in isCaseSensitivePath()
54 assert(sys::path::is_absolute(Root) && "Root not absolute"); in FileCollector()
[all …]
/openbsd-src/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/test/
H A Dtest_discovery.py33 original_isfile = os.path.isfile
36 os.path.isfile = original_isfile
37 original_isdir = os.path.isdir
40 os.path.isdir = original_isdir
45 os.listdir = lambda path: path_lists.pop(0)
48 def isdir(path): argument
49 return path.endswith('dir')
50 os.path.isdir = isdir
53 def isfile(path): argument
55 return not path.endswith('dir') and not 'another_dir' in path
[all …]
/openbsd-src/regress/lib/libc/dirname/
H A Ddirname_test.c17 char path[2 * PATH_MAX]; in main() local
25 strlcpy(path, "/", sizeof(path)); in main()
27 strlcat(path, dir, sizeof(path)); in main()
29 strlcat(path, fname, sizeof(path)); in main()
30 str = dirname(path); in main()
32 errx(1, "0: dirname(%s) = %s != %s", path, str, dname); in main()
37 * 1) path is NULL in main()
38 * 2) path is the empty string in main()
39 * 3) path is composed entirely of slashes in main()
57 strlcpy(path, "", sizeof(path)); in main()
[all …]
/openbsd-src/regress/usr.bin/ssh/unittests/misc/
H A Dtest_parse.c25 char *user, *host, *path; in test_parse() local
28 ASSERT_INT_EQ(parse_user_host_path("someuser@some.host:some/path", in test_parse()
29 &user, &host, &path), 0); in test_parse()
32 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
33 free(user); free(host); free(path); in test_parse()
37 ASSERT_INT_EQ(parse_user_host_path("someuser@1.22.33.144:some/path", in test_parse()
38 &user, &host, &path), 0); in test_parse()
41 ASSERT_STRING_EQ(path, "some/path"); in test_parse()
42 free(user); free(host); free(path); in test_parse()
46 ASSERT_INT_EQ(parse_user_host_path("someuser@[1.22.33.144]:some/path", in test_parse()
[all …]
/openbsd-src/gnu/usr.bin/perl/ext/FileCache/t/
H A D03append.t12 for my $path ( @files ){
13 cacheout $path;
14 print $path "$path 3\n";
16 for my $path ( @files ){
17 cacheout $path;
18 print $path "$path 33\n";
20 for my $path ( @files ){
21 open($path, '<', $path);
22 push @cat, do{ local $/; <$path>};
23 close($path);
[all …]
/openbsd-src/gnu/llvm/compiler-rt/utils/
H A Dgenerate_netbsd_syscalls.awk16 # /usr/src/sys/kern/syscalls.master path in the NetBSD distribution.
43 # assert argument is a valid file path to syscall.master
48 # sanity check that the path ends with "syscall.master"
579 pcmd("const char *path = (const char *)path_;")
580 pcmd("if (path) {")
581 pcmd(" PRE_READ(path, __sanitizer::internal_strlen(path) + 1);")
585 pcmd(" const char *path = (const char *)path_;")
586 pcmd(" if (path) {")
587 pcmd(" POST_READ(path, __sanitizer::internal_strlen(path) + 1);")
603 pcmd("const char *path = (const char *)path_;")
[all …]
/openbsd-src/usr.bin/ssh/
H A Dsftp.163 .Oo user @ Oc host Op : path
67 .No sftp:// Oo user @ Oc host Oo : port Oc Op / path .
73 .Ar path
81 .Ar path
83 .Ar path
91 .Ar path
95 names from path names or port numbers, IPv6 addresses must be
176 .Qq /path/sftp-server -el debug3 .
355 Specifies the SSH2 subsystem or the path for an sftp server
357 A path i
[all...]
/openbsd-src/regress/lib/libc/basename/
H A Dbasename_test.c16 char path[2 * PATH_MAX]; in main() local
23 strlcpy(path, "/", sizeof(path)); in main()
24 strlcat(path, dir, sizeof(path)); in main()
25 strlcat(path, fname, sizeof(path)); in main()
26 str = basename(path); in main()
33 * 1) path is NULL in main()
34 * 2) path is the empty string in main()
35 * 3) path is composed entirely of slashes in main()
53 strlcpy(path, "", sizeof(path)); in main()
54 str = basename(path); in main()
[all …]
/openbsd-src/gnu/llvm/lldb/source/Host/common/
H A DFileSystem.cpp19 #include "llvm/Support/Path.h"
92 llvm::ErrorOr<vfs::Status> FileSystem::GetStatus(const Twine &path) const { in GetStatus()
93 return m_fs->status(path); in GetStatus()
103 sys::TimePoint<> FileSystem::GetModificationTime(const Twine &path) const { in GetModificationTime()
104 ErrorOr<vfs::Status> status = m_fs->status(path); in GetModificationTime()
116 uint64_t FileSystem::GetByteSize(const Twine &path) const { in GetByteSize()
117 ErrorOr<vfs::Status> status = m_fs->status(path); in GetByteSize()
134 uint32_t FileSystem::GetPermissions(const Twine &path) const { in GetPermissions()
136 return GetPermissions(path, ec); in GetPermissions()
139 uint32_t FileSystem::GetPermissions(const Twine &path, in GetPermissions() argument
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/Win32/t/
H A DCreateFile.t5 my $path = "testing-$$";
6 rmdir($path) if -d $path;
7 unlink($path) if -f $path;
11 ok(!-d $path);
12 ok(!-f $path);
14 ok(Win32::CreateDirectory($path));
15 ok(-d $path);
17 ok(!Win32::CreateDirectory($path));
18 ok(!Win32::CreateFile($path));
20 ok(rmdir($path));
[all …]
/openbsd-src/gnu/llvm/clang/bindings/python/tests/cindex/
H A Dtest_translation_unit.py28 kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS')
55 path = os.path.join(kInputsDir, 'hello.cpp')
56 tu = TranslationUnit.from_source(path)
57 self.assertEqual(tu.spelling, path)
60 path = os.path.join(kInputsDir, 'hello.cpp')
61 tu = get_tu(path)
67 path = os.path.join(kInputsDir, 'parse_arguments.c')
68 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
74 path = os.path.join(kInputsDir, 'parse_arguments.c')
75 tu = TranslationUnit.from_source(path, ['-DDECL_ONE=hello', '-DDECL_TWO=hi'])
[all …]
/openbsd-src/gnu/llvm/lldb/source/Utility/
H A DFileSpec.cpp47 return llvm::sys::path::is_style_posix(style); in PathStyleIsPosix()
51 return llvm::sys::path::get_separator(style).data(); in GetPathSeparators()
58 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize() argument
62 std::replace(path.begin(), path.end(), '/', '\\'); in Denormalize()
69 // Default constructor that can take an optional full path to a file on disk.
70 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() argument
71 SetFile(path, style); in FileSpec()
74 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() argument
75 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec()
80 /// \param[in] path
[all …]
/openbsd-src/gnu/llvm/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/
H A Dutil.py7 def which(cmd, mode=os.F_OK | os.X_OK, path=None): argument
8 """Given a command, mode, and a PATH string, return the path which
9 conforms to the given mode on the PATH, or None if there is no such
12 `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result
13 of os.environ.get("PATH"), or can be overridden with a custom search
14 path.
21 return (os.path.exists(fn) and os.access(fn, mode)
22 and not os.path.isdir(fn))
24 # If we're given a path with a directory part, look it up directly rather
25 # than referring to PATH directories. This includes checking relative to the
[all …]
/openbsd-src/sys/net/
H A Dpf_ruleset.c98 int c = strcmp(a->path, b->path); in pf_anchor_compare()
114 pf_find_anchor(const char *path) in pf_find_anchor() argument
121 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor()
128 pf_find_ruleset(const char *path) in pf_find_ruleset() argument
132 while (*path == '/') in pf_find_ruleset()
133 path++; in pf_find_ruleset()
134 if (!*path) in pf_find_ruleset()
136 anchor = pf_find_anchor(path); in pf_find_ruleset()
144 pf_get_leaf_ruleset(char *path, char **path_remainder) in pf_get_leaf_ruleset() argument
150 p = path; in pf_get_leaf_ruleset()
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/PathTools/lib/File/Spec/
H A DMac.pm38 my ($self,$path) = @_;
39 return $path;
44 Concatenate two or more directory names to form a path separated by colons
47 puts a trailing ":" on the end of the complete path, because that's what's
48 done in MacPerl's environment and helps to distinguish a file path from a
49 directory path.
52 path is relative by default and I<not> absolute. This decision was made due
62 is a path, but not a name, since it contains a punctuation character ":").
87 The resulting path is relative by default, i.e. the resulting path wil
414 sub path { global() subroutine
[all...]
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_syscalls_netbsd.inc132 const char *path = (const char *)path_;
133 if (path) {
134 PRE_READ(path, __sanitizer::internal_strlen(path) + 1);
140 const char *path = (const char *)path_;
141 if (path) {
142 POST_READ(path, __sanitizer::internal_strlen(path) + 1);
162 const char *path = (const char *)path_;
164 if (path) {
165 PRE_READ(path, __sanitizer::internal_strlen(path) + 1);
168 PRE_READ(path, __sanitizer::internal_strlen(link) + 1);
[all …]
/openbsd-src/gnu/llvm/lldb/source/Target/
H A DPathMappingList.cpp25 // We must normalize our path pairs that we store because if we don't then
28 // We would store a path pairs of "." and "/tmp" as raw strings. If the debug
29 // info contains "./foo/bar.c", the path will get normalized to "foo/bar.c".
30 // When PathMappingList::RemapPath() is called, it expects the path to start
31 // with the raw path pair, which doesn't work anymore because the paths have
33 // nomalized path pairs to ensure things match up.
34 std::string NormalizePath(llvm::StringRef path) { in NormalizePath() argument
35 // If we use "path" to construct a FileSpec, it will normalize the path for in NormalizePath()
37 return FileSpec(path).GetPath(); in NormalizePath()
61 void PathMappingList::Append(llvm::StringRef path, llvm::StringRef replacement, in Append() argument
[all …]
/openbsd-src/gnu/llvm/lldb/packages/Python/lldbsuite/test/
H A Dlldb_pylint_helper.py11 Provides helper support for adding lldb test paths to the python path.
30 """Adds lldb test-related paths to the python path.
36 system path.
46path.append(os.path.expanduser("~/path/to/lldb/packages/Python/lldbsuite/test")); import lldb_pyli…
48 Replace ~/path/to/lldb with a valid path to your local lldb source
50 this will work just fine. The path in your .pylintrc is just needed to
64 python directories to your path.
98 2. If 1 fails, use the path and look for an lldb[.exe] in there.
101 on the lldb python module path.
106 If Darwin, use 'xcrun lldb -P'; others: find lldb on path.
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h15 #include "llvm/Support/Path.h"
114 SmallString<128> Path; variable
125 EC = llvm::sys::fs::createUniqueDirectory(Name, Path);
128 std::string UnresolvedPath(Path.str());
129 EC = llvm::sys::fs::real_path(UnresolvedPath, Path);
132 Path = Name;
133 EC = llvm::sys::fs::create_directory(Path);
136 Path.clear();
141 if (!Path.empty()) { in ~TempDir()
142 EXPECT_FALSE(llvm::sys::fs::remove_directories(Path.str())); in ~TempDir()
[all …]

12345678910>>...195