Searched refs:path (Results 1 - 25 of 2811) sorted by relevance

1234567891011>>

/freebsd-head/lib/libc/gen/
H A Ddirname.c33 (dirname)(char *path) argument
38 * If path is a null pointer or points to an empty string,
41 if (path == NULL || *path == '\0')
45 end = path + strlen(path);
46 while (end > path + 1 && *(end - 1) == '/')
50 while (end > path && *(end - 1) != '/')
54 * If path does not contain a '/', then dirname() shall return a
57 if (end == path) {
[all...]
H A Dbasename.c33 (basename)(char *path) argument
38 * If path is a null pointer or points to an empty string,
41 if (path == NULL || *path == '\0')
45 ptr = path + strlen(path);
46 while (ptr > path + 1 && *(ptr - 1) == '/')
51 while (ptr > path && *(ptr - 1) != '/')
H A Ddirname_compat.c29 __freebsd11_dirname(char *path) argument
42 if (path == NULL || *path == '\0') {
49 endp = path + strlen(path) - 1;
50 while (endp > path && *endp == '/')
54 while (endp > path && *endp != '/')
58 if (endp == path) {
66 } while (endp > path && *endp == '/');
69 len = endp - path
[all...]
/freebsd-head/contrib/kyua/utils/fs/
H A Dpath.hpp29 /// \file utils/fs/path.hpp
30 /// Provides the utils::fs::path class.
32 /// This is a poor man's reimplementation of the path class provided by
48 /// Representation and manipulation of a file system path.
50 /// Application code should always use this class to represent a path instead of
55 class path { class in namespace:utils::fs
56 /// Internal representation of the path.
60 explicit path(const std::string&);
65 path branch_path(void) const;
67 path to_absolut
[all...]
H A Dpath_test.cpp29 #include "utils/fs/path.hpp"
43 using utils::fs::path;
59 ATF_REQUIRE_EQ(".", path(".").str());
60 ATF_REQUIRE_EQ("..", path("..").str());
61 ATF_REQUIRE_EQ("/", path("/").str());
62 ATF_REQUIRE_EQ("/", path("///").str());
64 ATF_REQUIRE_EQ("foo", path("foo").str());
65 ATF_REQUIRE_EQ("foo/bar", path("foo/bar").str());
66 ATF_REQUIRE_EQ("foo/bar", path("foo/bar/").str());
68 ATF_REQUIRE_EQ("/foo", path("/fo
[all...]
H A Doperations.hpp50 void copy(const fs::path&, const fs::path&);
51 path current_path(void);
52 bool exists(const fs::path&);
53 utils::optional< path > find_in_path(const char*);
54 utils::units::bytes free_disk_space(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);
58 fs::path mkdtemp_publi
[all...]
H A Dpath_fwd.hpp30 /// Forward declarations for utils/fs/path.hpp
39 class path;
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
H A Dtst.cleanpath.d34 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[
[all...]
/freebsd-head/contrib/bmake/unit-tests/
H A Dvarmod-path.exp1 varmod-path.subdir/varmod-path.phony
2 varmod-path.subdir/varmod-path.real
3 varmod-path.enoent
/freebsd-head/contrib/llvm-project/lldb/bindings/interface/
H A DSBReproducer.i13 static const char *Capture(const char *path);
14 static const char *PassiveReplay(const char *path);
16 static void SetWorkingDirectory(const char *path);
/freebsd-head/contrib/atf/atf-c++/detail/
H A Dfs.hpp53 // The "path" class.
57 //! \brief A class to represent a path to a file.
59 //! The path class represents the route to a file or directory in the
64 //! It is important to note that the file pointed to by a path need not
67 class path { class in namespace:atf::fs
69 //! \brief Internal representation of a path.
74 //! \brief Constructs a new path from a user-provided string.
77 //! code or by the user and constructs a new path object. The string
83 explicit path(const std::string&);
88 path(cons
[all...]
H A Dfs_test.cpp63 // Test cases for the "path" class.
69 set_md_var("descr", "Tests the path's normalization");
73 using atf::fs::path;
75 ATF_REQUIRE_EQ(path(".").str(), ".");
76 ATF_REQUIRE_EQ(path("..").str(), "..");
78 ATF_REQUIRE_EQ(path("foo").str(), "foo");
79 ATF_REQUIRE_EQ(path("foo/bar").str(), "foo/bar");
80 ATF_REQUIRE_EQ(path("foo/bar/").str(), "foo/bar");
82 ATF_REQUIRE_EQ(path("/foo").str(), "/foo");
83 ATF_REQUIRE_EQ(path("/fo
[all...]
/freebsd-head/contrib/diff/lib/
H A Ddirname.h36 char *base_name (char const *path);
37 char *dir_name (char const *path);
38 size_t base_len (char const *path);
39 size_t dir_len (char const *path);
41 int strip_trailing_slashes (char *path);
/freebsd-head/contrib/llvm-project/lldb/include/lldb/API/
H A DSBReproducer.h22 static const char *Capture(const char *path);
23 static const char *Replay(const char *path);
24 static const char *Replay(const char *path, bool skip_version_check);
25 static const char *PassiveReplay(const char *path);
35 static void SetWorkingDirectory(const char *path);
/freebsd-head/contrib/kyua/store/
H A Dmigrate.hpp43 utils::fs::path migration_file(const int, const int);
44 void backup_database(const utils::fs::path&, const int);
50 void migrate_schema(const utils::fs::path&);
H A Dlayout.hpp38 /// When creating a new results file, the inputs to resolve the path can be:
40 /// public identifier and the path for internal consumption.
41 /// - A path: The user provided the specific location where he wants the file
45 /// When opening an existing results file, the inputs to resolve the path can
50 /// - A path: If the file exists, we just open that. If it doesn't exist or if
73 utils::fs::path find_results(const std::string&);
74 results_id_file_pair new_db(const std::string&, const utils::fs::path&);
75 utils::fs::path new_db_for_migration(const utils::fs::path&,
77 utils::fs::path query_store_di
[all...]
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dbasename.c27 basename(const char *path) argument
34 if (path == NULL || *path == '\0') {
41 endp = path + strlen(path) - 1;
42 while (endp > path && *endp == '/')
46 if (endp == path && *endp == '/') {
54 while (startp > path && *(startp - 1) != '/')
H A Ddirname.c29 dirname(const char *path) argument
36 if (path == NULL || *path == '\0') {
43 endp = path + strlen(path) - 1;
44 while (endp > path && *endp == '/')
48 while (endp > path && *endp != '/')
52 if (endp == path) {
60 } while (endp > path && *endp == '/');
63 len = endp - path
[all...]
H A Dmktemp.c47 mktemp_internal(char *path, int slen, int mode) argument
56 len = strlen(path);
61 ep = path + len - slen;
64 for (start = ep; start > path && start[-1] == 'X'; start--) {
78 if (lstat(path, &sb) != 0)
82 fd = open(path, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
87 if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR) == 0)
103 _mktemp(char *path)
105 if (mktemp_internal(path, 0, MKTEMP_NAME) == -1)
107 return(path);
121 mkstemp(char *path) argument
127 mkstemps(char *path, int slen) argument
133 mkdtemp(char *path) argument
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Dlstat.c39 lstat(const char *path, struct stat *buf) argument
41 return stat(path, buf);
/freebsd-head/lib/libpathconv/
H A Dpathconv.h30 char * rel2abs(const char *path, const char *base, char *result, const size_t size);
31 char * abs2rel(const char *path, const char *base, char *result, const size_t size);
/freebsd-head/contrib/llvm-project/lld/include/lld/Common/
H A DFilesystem.h16 void unlinkAsync(StringRef path);
17 std::error_code tryCreateFile(StringRef path);
/freebsd-head/contrib/kyua/engine/
H A Dkyuafile.hpp45 #include "utils/fs/path.hpp"
56 /// Test suites have two path references: one to the "source root" and another
60 /// containing the generated test programs and is prepended to the absolute path
70 utils::fs::path _source_root;
73 utils::fs::path _build_root;
79 explicit kyuafile(const utils::fs::path&, const utils::fs::path&,
83 static kyuafile load(const utils::fs::path&,
84 const utils::optional< utils::fs::path >,
88 const utils::fs::path
[all...]
/freebsd-head/contrib/bmake/
H A Ddirname.c61 xdirname_r(const char *path, char *buf, size_t buflen) argument
67 * If `path' is a null pointer or points to an empty string,
70 if (path == NULL || *path == '\0') {
71 path = ".";
77 endp = path + strlen(path) - 1;
78 while (endp != path && *endp == '/')
82 while (endp > path && *endp != '/')
85 if (endp == path) {
107 dirname(char *path) argument
[all...]
/freebsd-head/contrib/llvm-project/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) {
[all...]

Completed in 105 milliseconds

1234567891011>>