/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.cleanpath.d | 33 path[i++] = "/foo/bar/baz"; 34 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[ [all...] |
/freebsd-11-stable/contrib/atf/atf-c++/detail/ |
H A D | fs.hpp | 53 // 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 D | fs_test.cpp | 63 // 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-11-stable/contrib/diff/lib/ |
H A D | dirname.h | 36 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-11-stable/contrib/llvm-project/lldb/include/lldb/API/ |
H A D | SBReproducer.h | 22 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);
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | basename.c | 27 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 D | dirname.c | 29 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 D | mktemp.c | 47 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-11-stable/crypto/heimdal/lib/roken/ |
H A D | lstat.c | 39 lstat(const char *path, struct stat *buf) argument 41 return stat(path, buf);
|
/freebsd-11-stable/contrib/llvm-project/lld/include/lld/Common/ |
H A D | Filesystem.h | 16 void unlinkAsync(StringRef path); 17 std::error_code tryCreateFile(StringRef path);
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | dirname.c | 29 dirname(const 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...] |
H A D | basename.c | 29 basename_r(const char *path, char *bname) argument 35 if (path == NULL || *path == '\0') { 42 endp = path + strlen(path) - 1; 43 while (endp > path && *endp == '/') 47 if (endp == path && *endp == '/') { 55 while (startp > path && *(startp - 1) != '/') 69 basename(const char *path) argument 78 return (basename_r(path, bnam [all...] |
/freebsd-11-stable/contrib/gcc/ |
H A D | prefix.h | 28 extern char *update_path (const char *path, const char *key);
|
/freebsd-11-stable/contrib/groff/src/include/ |
H A D | relocate.h | 26 char *relocatep (const char *path); 27 char *relocate (const char *path);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_syscalls_netbsd.inc | 132 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-11-stable/contrib/bmake/ |
H A D | dirname.c | 57 xdirname_r(const char *path, char *buf, size_t buflen) argument 63 * If `path' is a null pointer or points to an empty string, 66 if (path == NULL || *path == '\0') { 67 path = "."; 73 endp = path + strlen(path) - 1; 74 while (endp != path && *endp == '/') 78 while (endp > path && *endp != '/') 81 if (endp == path) { 102 dirname(char *path) argument [all...] |
/freebsd-11-stable/lib/libc/stdio/ |
H A D | mktemp.c | 56 mkostemps(char *path, int slen, int oflags) argument 60 return (_gettemp(path, &fd, 0, slen, oflags) ? fd : -1); 64 mkstemps(char *path, int slen) argument 68 return (_gettemp(path, &fd, 0, slen, 0) ? fd : -1); 72 mkostemp(char *path, int oflags) argument 76 return (_gettemp(path, &fd, 0, 0, oflags) ? fd : -1); 80 mkstemp(char *path) argument 84 return (_gettemp(path, &fd, 0, 0, 0) ? fd : -1); 88 mkdtemp(char *path) argument 90 return (_gettemp(path, (in 94 _mktemp(char *path) argument 103 mktemp(char *path) argument 109 _gettemp(char *path, int *doopen, int domkdir, int slen, int oflags) argument [all...] |
/freebsd-11-stable/contrib/blacklist/port/ |
H A D | pidfile.c | 86 /* Given a new pidfile name in 'path', deletes any previously-created pidfile 93 cleanup_old_pidfile(const char* path) argument 96 if (strcmp(pidfile_path, path) != 0) { 114 * path to the pidfile; NULL on failure. */ 118 char *path; local 124 if (asprintf(&path, "%s%s.pid", _PATH_VARRUN, bname) == -1) 126 return path; 136 create_pidfile(const char* path) argument 143 if (cleanup_old_pidfile(path) == 0) 146 pidfile_path = strdup(path); 165 pidfile(const char *path) argument [all...] |
/freebsd-11-stable/contrib/mdocml/ |
H A D | compat_mkdtemp.c | 36 mkdtemp(char *path) argument 41 start = strchr(path, '\0'); 42 while (start > path && start[-1] == 'X') 46 if (mktemp(path) == NULL) { 50 if (mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) == 0) 51 return path;
|
/freebsd-11-stable/contrib/subversion/subversion/include/ |
H A D | svn_path.h | 24 * @brief A path manipulation library 29 * No result path ever ends with a separator, no matter whether the 30 * path is a file or directory, because we always canonicalize() it. 33 * them to be in canonical form as defined by the Subversion path 67 /** Convert @a path from the local style to the canonical internal style. 74 svn_path_internal_style(const char *path, apr_pool_t *pool); 76 /** Convert @a path from the canonical internal style to the local style. 83 svn_path_local_style(const char *path, apr_pool_t *pool); 86 /** Join a base path (@a base) with a component (@a component), allocating 88 * can be any path, absolut [all...] |
/freebsd-11-stable/usr.bin/patch/ |
H A D | mkpath.c | 44 * path - path 47 mkpath(char *path) argument 53 slash = path; 62 if (stat(path, &sb)) { 63 if (errno != ENOENT || (mkdir(path, 0777) && 65 warn("%s", path); 69 warnx("%s: %s", path, strerror(ENOTDIR));
|
/freebsd-11-stable/sys/fs/ext2fs/ |
H A D | ext2_extents.c | 47 ext4_ext_binsearch_index(struct inode *ip, struct ext4_extent_path *path, argument 49 struct ext4_extent_header *ehp = path->ep_header; 65 path->ep_sparse_ext.e_blk = *first_lbn; 66 path->ep_sparse_ext.e_len = first->ei_blk - *first_lbn; 67 path->ep_sparse_ext.e_start_hi = 0; 68 path->ep_sparse_ext.e_start_lo = 0; 69 path->ep_is_sparse = true; 72 path->ep_index = l - 1; 73 *first_lbn = path->ep_index->ei_blk; 74 if (path 80 ext4_ext_binsearch(struct inode *ip, struct ext4_extent_path *path, daddr_t lbn, daddr_t first_lbn, daddr_t last_lbn) argument 168 ext4_ext_find_extent(struct m_ext2fs *fs, struct inode *ip, daddr_t lbn, struct ext4_extent_path *path) argument [all...] |
/freebsd-11-stable/sys/cam/ |
H A D | cam_xpt.h | 48 * Definition of a CAM path. Paths are created from bus, target, and lun ids 67 struct cam_path *path, void *args); 80 struct cam_path *path, 84 struct cam_path *path, 97 struct cam_path *path); 98 void xpt_free_path(struct cam_path *path); 99 void xpt_path_counts(struct cam_path *path, uint32_t *bus_ref, 104 int xpt_path_comp_dev(struct cam_path *path, 106 void xpt_print_path(struct cam_path *path); 108 void xpt_print(struct cam_path *path, cons 149 xpt_path_inq(struct ccb_pathinq *cpi, struct cam_path *path) argument [all...] |
/freebsd-11-stable/usr.bin/bmake/tests/shell/builtin/ |
H A D | Makefile.test | 10 .SHELL: path="${.CURDIR}/sh"
|
/freebsd-11-stable/usr.bin/env/ |
H A D | envopts.h | 35 void search_paths(char *path, char **argv);
|