Searched refs:path (Results 176 - 200 of 2672) sorted by relevance

1234567891011>>

/freebsd-current/lib/libpathconv/
H A Drel2abs.c31 * rel2abs: convert an relative path name into absolute.
33 * i) path relative path
34 * i) base base directory (must be absolute path)
37 * r) != NULL: absolute path
41 rel2abs(const char *path, const char *base, char *result, const size_t size) argument
51 if (*path == '/') {
52 if (strlen(path) >= size)
54 strcpy(result, path);
64 if (!strcmp(path, "
[all...]
/freebsd-current/usr.bin/bmake/tests/shell/meta/
H A DMakefile.test9 .SHELL: path="${.OBJDIR}/sh"
/freebsd-current/usr.bin/bmake/tests/shell/replace/
H A DMakefile.test12 .SHELL: name="shell" path="${.CURDIR}/shell" \
/freebsd-current/tools/build/cross-build/include/mac/
H A Dunistd.h49 eaccess(const char *path, int mode) argument
51 return (faccessat(AT_FDCWD, path, mode, AT_EACCESS));
/freebsd-current/lib/libc/gen/
H A Dftok.c35 ftok(const char *path, int id) argument
39 if (stat(path, &st) < 0)
H A Dutime.c37 utime(const char *path, const struct utimbuf *times) argument
48 return (utimes(path, tvp));
/freebsd-current/contrib/llvm-project/lld/Common/
H A DReproduce.cpp19 // Makes a given pathname an absolute path first, and then remove
22 // Returned string is a forward slash separated path even on Windows to avoid
23 // a mess with backslash-as-escape and backslash-as-path-separator.
24 std::string lld::relativeToRoot(StringRef path) { argument
25 SmallString<128> abs = path;
27 return std::string(path);
28 path::remove_dots(abs, /*remove_dot_dot=*/true);
34 StringRef root = path::root_name(abs);
40 path::append(res, path
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zpool/os/freebsd/
H A Dzpool_vdev_os.c34 * disk=(path=..., devid=...)
35 * file=(path=...)
90 char path[MAXPATHLEN]; local
93 snprintf(path, sizeof (path), "%s%s", _PATH_DEV, name);
95 strlcpy(path, name, sizeof (path));
97 return (check_file(path, force, isspare));
101 check_sector_size_database(char *path, int *sector_size) argument
103 (void) path, (voi
[all...]
/freebsd-current/lib/libc/sys/
H A Dlstat.c36 lstat(const char *path, struct stat *sb) argument
39 return (__sys_fstatat(AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW));
H A Dmknod.c38 mknod(const char *path, mode_t mode, dev_t dev) argument
41 return (__sys_mknodat(AT_FDCWD, path, mode, dev));
H A Dstat.c36 stat(const char *path, struct stat *sb) argument
39 return (__sys_fstatat(AT_FDCWD, path, sb, 0));
/freebsd-current/contrib/llvm-project/lld/include/lld/Common/
H A DFilesystem.h18 void unlinkAsync(StringRef path);
19 std::error_code tryCreateFile(StringRef path);
/freebsd-current/contrib/kyua/cli/
H A Dconfig.cpp40 #include "utils/fs/path.hpp"
73 (fs::path("~/.kyua") / config_basename).str() + " or " +
74 (fs::path(KYUA_CONFDIR) / config_basename).str();
96 const fs::path filename = cmdline.get_option< cmdline::path_option >(
104 const optional< fs::path > home = utils::get_home();
106 const fs::path path = home.get() / ".kyua" / config_basename; local
108 if (fs::exists(path))
109 return engine::load_config(path);
115 path
122 const fs::path path = confdir / config_basename; local
[all...]
/freebsd-current/contrib/kyua/utils/fs/
H A Doperations.cpp66 #include "utils/fs/path.hpp"
121 /// Fake replacement value to the path to umount(8).
138 unmount(const char* /* path */,
151 static void run_mount_tmpfs(const fs::path&, const uint64_t) UTILS_NORETURN;
161 run_mount_tmpfs(const fs::path& mount_point, const uint64_t size)
241 unmount_with_unmount2(const fs::path& mount_point)
261 unmount_with_umount8(const fs::path& mount_point)
301 /// \param path The file to stat.
307 safe_stat(const fs::path& path) argument
390 exists(const fs::path& path) argument
434 free_disk_space(const fs::path& path) argument
462 is_directory(const fs::path& path) argument
740 scan_directory(const fs::path& path) argument
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/
H A Dt_realpath.c47 const char *path; member in struct:__anon5204
83 ptr = realpath(paths[i].path, buf);
89 atf_tc_fail("realpath failed for '%s'", paths[i].path);
100 atf_tc_set_md_var(tc, "descr", "Test huge path with realpath(3)");
123 char path[MAXPATHLEN] = { 0 }; local
129 ATF_REQUIRE_MSG(getcwd(path, sizeof(path)) != NULL,
130 "getcwd(path) failed: %s", strerror(errno));
134 (void)getcwd(path, sizeof(path));
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_all_001_pos.ksh58 typeset path
62 path=${TEST_BASE_DIR%%/}/testroot$$/$TESTPOOL
64 path=$path/${ctr[i]}
67 "${ctr[i]}" "$path" \
76 "$path/${vol[j]}" \
85 "$path/${fs[j]}"
133 typeset path
137 path=$TESTPOOL
139 path
[all...]
/freebsd-current/tests/sys/cddl/zfs/tests/cli_root/zfs_unmount/
H A Dzfs_unmount_all_001_pos.ksh67 typeset path
71 path=${TEST_BASE_DIR%%/}/testroot${TESTCASE_ID}/$TESTPOOL
73 path=$path/${ctr[i]}
76 "${ctr[i]}" "$path" \
85 "$path/${vol[j]}" \
94 "$path/${fs[j]}"
142 typeset path
146 path=$TESTPOOL
148 path
[all...]
/freebsd-current/contrib/kyua/utils/sqlite/
H A Dexceptions.hpp49 utils::optional< utils::fs::path > _db_filename;
52 explicit error(const utils::optional< utils::fs::path >&,
56 const utils::optional< utils::fs::path >& db_filename(void) const;
66 explicit api_error(const utils::optional< utils::fs::path >&,
82 explicit invalid_column_error(const utils::optional< utils::fs::path >&,
/freebsd-current/contrib/ntp/sntp/tests/
H A DkeyFile.c73 const char * path = CreatePath("key-test-empty", INPUT_DIR); local
75 TEST_ASSERT_NOT_NULL(path);
76 TEST_ASSERT_EQUAL(0, auth_init(path, &keys));
79 DestroyPath(path);
88 const char * path = CreatePath("key-test-ascii", INPUT_DIR); local
90 TEST_ASSERT_NOT_NULL(path);
91 TEST_ASSERT_EQUAL(2, auth_init(path, &keys));
94 DestroyPath(path);
112 const char * path = CreatePath("key-test-hex", INPUT_DIR); local
116 TEST_ASSERT_NOT_NULL(path);
147 const char * path = CreatePath("key-test-comments", INPUT_DIR); local
173 const char * path = CreatePath("key-test-invalid-hex", INPUT_DIR); local
[all...]
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mknod.c45 static char path[] = "node"; variable
68 ATF_REQUIRE_ERRNO(EINVAL, mknod(path, S_IFCHR, -1) == -1);
83 (void)unlink(path);
108 ATF_REQUIRE(mknod(path, S_IFCHR, 0) == 0);
111 ATF_REQUIRE_ERRNO(EEXIST, mknod(path, S_IFCHR, 0) == -1);
113 ATF_REQUIRE(unlink(path) == 0);
118 (void)unlink(path);
132 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFCHR, 0) == -1);
135 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFBLK, 0) == -1);
140 (void)unlink(path);
[all...]
/freebsd-current/sbin/ipf/libipf/
H A Dsave_execute.c10 char *path; member in struct:execute_opts_s
32 ctx->path = strdup(strings[0]);
48 printf("%s", exe->path);
58 free(exe->path);
69 fp = popen(exe->path, "w");
/freebsd-current/lib/libc/stdlib/
H A Dtsearch_path.h34 * Bookkeeping for storing a path in a balanced binary search tree from
40 * two uintptr_t's provide sufficient space to store the path from the
43 struct path { struct
48 /* Initializes the path structure with a zero-length path. */
50 path_init(struct path *p)
58 /* Pushes a step to the left to the end of the path. */
60 path_taking_left(struct path *p)
68 /* Pushes a step to the right to the end of the path. */
70 path_taking_right(struct path *
[all...]
/freebsd-current/usr.sbin/ngctl/
H A Dstatus.c51 "status <path>",
52 "Get human readable status information from the node at <path>",
63 char *path; local
69 path = av[1];
76 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
94 printf("No status available for \"%s\"\n", path);
96 printf("Status for \"%s\":\n%s\n", path, status);
/freebsd-current/bin/realpath/
H A Drealpath.c46 const char *path; local
62 path = *argv != NULL ? *argv++ : ".";
65 if ((p = realpath(path, buf)) == NULL) {
67 warn("%s", path);
71 } while ((path = *argv++) != NULL);
79 (void)fprintf(stderr, "usage: realpath [-q] [path ...]\n");
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/linux/
H A Dzone.c38 char path[PATH_MAX]; local
42 int c = snprintf(path, sizeof (path), "/proc/self/ns/user");
44 if (c < 0 || c >= sizeof (path))
47 ssize_t r = readlink(path, buf, sizeof (buf) - 1);

Completed in 308 milliseconds

1234567891011>>