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

1234567891011>>

/freebsd-current/lib/libc/gen/
H A Ddirname.c30 (dirname)(char *path) argument
35 * If path is a null pointer or points to an empty string,
38 if (path == NULL || *path == '\0')
42 end = path + strlen(path);
43 while (end > path + 1 && *(end - 1) == '/')
47 while (end > path && *(end - 1) != '/')
51 * If path does not contain a '/', then dirname() shall return a
54 if (end == path) {
[all...]
H A Dbasename.c30 (basename)(char *path) argument
35 * If path is a null pointer or points to an empty string,
38 if (path == NULL || *path == '\0')
42 ptr = path + strlen(path);
43 while (ptr > path + 1 && *(ptr - 1) == '/')
48 while (ptr > path && *(ptr - 1) != '/')
H A Ddirname_compat.c25 char * __freebsd11_dirname(char *path);
28 __freebsd11_dirname(char *path) argument
41 if (path == NULL || *path == '\0') {
48 endp = path + strlen(path) - 1;
49 while (endp > path && *endp == '/')
53 while (endp > path && *endp != '/')
57 if (endp == path) {
65 } while (endp > path
[all...]
/freebsd-current/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-current/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-current/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-current/crypto/openssh/openbsd-compat/
H A Ddirname.c28 dirname(const char *path) argument
35 if (path == NULL || *path == '\0') {
42 endp = path + strlen(path) - 1;
43 while (endp > path && *endp == '/')
47 while (endp > path && *endp != '/')
51 if (endp == path) {
59 } while (endp > path && *endp == '/');
62 len = endp - path
[all...]
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) != '/')
/freebsd-current/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-current/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-current/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-current/crypto/openssl/test/recipes/
H A D80-test_x509aux.t17 my @path = qw(test certs);
25 srctop_file(@path, "roots.pem"),
26 srctop_file(@path, "root+anyEKU.pem"),
27 srctop_file(@path, "root-anyEKU.pem"),
28 srctop_file(@path, "root-cert.pem"),
29 srctop_file(@path, "invalid-cert.pem"),
H A D15-test_out_option.t33 my $path = File::Spec->canonpath('./');
34 ok(!run(app([ 'openssl', 'rand', '-out', $path, '1'])),
35 "invalid output path: $path");
40 my $path = File::Spec->canonpath('randomname.bin');
41 ok(run(app([ 'openssl', 'rand', '-out', $path, '1'])),
42 "valid output path: $path");
55 my $path = File::Spec->canonpath($rand_path);
56 ok(!run(app([ 'openssl', 'rand', '-out', $path, '
[all...]
/freebsd-current/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-current/crypto/heimdal/lib/roken/
H A Dlstat.c39 lstat(const char *path, struct stat *buf) argument
41 return stat(path, buf);
/freebsd-current/lib/libpathconv/
H A Dpathconv.h28 char * rel2abs(const char *path, const char *base, char *result, const size_t size);
29 char * abs2rel(const char *path, const char *base, char *result, const size_t size);
/freebsd-current/contrib/llvm-project/libcxx/include/__filesystem/
H A Doperations.h20 #include <__filesystem/path.h>
37 _LIBCPP_EXPORTED_FROM_ABI path __absolute(const path&, error_code* __ec = nullptr);
38 _LIBCPP_EXPORTED_FROM_ABI path __canonical(const path&, error_code* __ec = nullptr);
40 __copy_file(const path& __from, const path& __to, copy_options __opt, error_code* __ec = nullptr);
42 __copy_symlink(const path& __existing_symlink, const path& __new_symlink, error_code* __ec = nullptr);
44 __copy(const path
[all...]
/freebsd-current/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-current/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...]
/freebsd-current/usr.sbin/bhyve/
H A Dconfig.h39 * case, the name must be the full path of the configuration
43 * Configuration variables are stored in a tree. The full path of a
62 * Similar to get_config_value_node but expects a full path to the
65 const char *get_config_value(const char *path);
72 * path. Will fail if the path names an existing leaf configuration
76 nvlist_t *create_config_node(const char *path);
80 * path. Will fail if the path names an existing leaf configuration
83 nvlist_t *find_config_node(const char *path);
[all...]

Completed in 231 milliseconds

1234567891011>>