Searched refs:path1 (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-current/contrib/llvm-project/libcxx/src/filesystem/
H A Dfilesystem_error.cpp27 return detail::format_string("filesystem error: %s [" PATH_CSTR_FMT "]", derived_what, path1().c_str());
32 path1().c_str(),
/freebsd-current/usr.bin/diff/
H A Ddiffdir.c53 char path1[PATH_MAX], path2[PATH_MAX]; local
58 dirlen1 = strlcpy(path1, *p1 ? p1 : ".", sizeof(path1));
59 if (dirlen1 >= sizeof(path1) - 1) {
64 if (path1[dirlen1 - 1] != '/') {
65 path1[dirlen1++] = '/';
66 path1[dirlen1] = '\0';
83 pos = scandir(path1, &dirp1, selectfile, alphasort);
88 warn("%s", path1);
129 diffit(dent1, path1, dirlen
172 diffit(struct dirent *dp, char *path1, size_t plen1, struct dirent *dp2, char *path2, size_t plen2, int flags) argument
[all...]
H A Ddiff.c572 print_status(int val, char *path1, char *path2, const char *entry) argument
575 path1 = label[0];
582 path1, entry, path2, entry);
587 path1, entry, path2, entry);
592 path1, entry, path2, entry);
596 path1, entry, path2, entry);
600 path1, entry, path2, entry);
604 path1, entry);
/freebsd-current/tools/test/stress2/testcases/openat/
H A Dopenat.c39 static char path1[128]; variable
79 sprintf(path1,"%s.%05d", getprogname(), getpid());
80 if (mkdir(path1, 0770) < 0)
81 err(1, "mkdir(%s), %s:%d", path1, __FILE__, __LINE__);
82 if (chdir(path1) == -1)
83 err(1, "chdir(%s), %s:%d", path1, __FILE__, __LINE__);
93 err(1, "chdir(%s), %s:%d", path1, __FILE__, __LINE__);
108 if (rmdir(path1) == -1)
109 warn("rmdir(%s), %s:%d", path1, __FILE__, __LINE__);
/freebsd-current/contrib/nvi/common/
H A Dutil.c108 join(char *path1, char *path2) argument
112 if (path1[0] == '\0' || path2[0] == '/')
114 if (asprintf(&p, path1[strlen(path1)-1] == '/' ?
115 "%s%s" : "%s/%s", path1, path2) == -1)
/freebsd-current/bin/ln/
H A Dln.c174 samedirent(const char *path1, const char *path2) argument
180 if (strcmp(path1, path2) == 0)
182 file1 = strrchr(path1, '/');
186 file1 = path1;
194 if (file1 - path1 >= PATH_MAX || file2 - path2 >= PATH_MAX)
196 if (file1 == path1)
199 memcpy(pathbuf, path1, file1 - path1);
200 pathbuf[file1 - path1] = '\0';
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_read_format_isorr_ce.c87 char path1[160]; local
97 mkpath(path1, 151);
138 } else if (strcmp(path1, archive_entry_pathname(ae)) == 0) {
140 assertEqualString(path1, archive_entry_pathname(ae));
183 assertEqualString(path1, archive_entry_symlink(ae));
H A Dmain.c1204 const char *path1, const char *path2)
1211 r = my_GetFileInformationByName(path1, &bhfi1);
1213 failure_start(file, line, "File %s can't be inspected?", path1);
1231 r = lstat(path1, &st1);
1233 failure_start(file, line, "File should exist: %s", path1);
1249 const char *path1, const char *path2)
1251 if (is_hardlink(file, line, path1, path2))
1254 "Files %s and %s are not hardlinked", path1, path2);
1261 const char *path1, const char *path2)
1263 if (!is_hardlink(file, line, path1, path
1203 is_hardlink(const char *file, int line, const char *path1, const char *path2) argument
1248 assertion_is_hardlink(const char *file, int line, const char *path1, const char *path2) argument
1260 assertion_is_not_hardlink(const char *file, int line, const char *path1, const char *path2) argument
[all...]
/freebsd-current/tests/sys/netgraph/
H A Dutil.h38 _ng_connect(char const *path1, char const *hook1,
45 _ng_mkpeer(char const *path1, char const *hook1,
H A Dutil.c70 _ng_connect(char const *path1, char const *hook1, argument
80 CHECK(, -1 != NgSendMsg(cs, path1,
86 _ng_mkpeer(char const *path1, char const *hook1, argument
96 CHECK(, -1 != NgSendMsg(cs, path1,
/freebsd-current/contrib/llvm-project/lld/ELF/
H A DDriverUtils.cpp212 static std::optional<std::string> findFile(StringRef path1, argument
215 if (path1.starts_with("="))
216 path::append(s, config->sysroot, path1.substr(1), path2);
218 path::append(s, path1, path2);
/freebsd-current/crypto/openssh/
H A Dsftp.c1344 unsigned long *n_arg, char **path1, char **path2)
1400 *path1 = *path2 = NULL;
1416 *path1 = xstrdup(argv[optidx]);
1445 *path1 = xstrdup(argv[optidx]);
1448 undo_glob_escape(*path1);
1464 break; /* return a NULL path1 */
1469 *path1 = xstrdup(argv[optidx]);
1472 undo_glob_escape(*path1);
1480 *path1 = NULL;
1482 *path1
1341 parse_args(const char **cpp, int *ignore_errors, int *disable_echo, int *aflag, int *fflag, int *hflag, int *iflag, int *lflag, int *pflag, int *rflag, int *sflag, unsigned long *n_arg, char **path1, char **path2) argument
1553 char *path1, *path2, *tmp; local
[all...]
/freebsd-current/contrib/kyua/utils/fs/
H A Dlua_module.cpp292 const fs::path path1 = to_path(state, -2); local
294 state.push_string((path1 / path2).c_str());
H A Dpath_test.cpp46 #define REQUIRE_JOIN_ERROR(path1, path2, expr) \
51 ATF_REQUIRE_EQ(path1, e.textual_path1()); \
/freebsd-current/stand/kboot/libkboot/
H A Dhost_syscalls.c156 host_symlink(const char *path1, const char *path2) argument
158 return host_syscall(SYS_symlinkat, HOST_AT_FDCWD, path1, path2);
/freebsd-current/contrib/llvm-project/libcxx/include/__filesystem/
H A Dfilesystem_error.h48 _LIBCPP_HIDE_FROM_ABI const path& path1() const noexcept { return __storage_->__p1_; }
/freebsd-current/bin/sh/tests/execution/
H A DMakefile35 ${PACKAGE}FILES+= path1.0
/freebsd-current/contrib/libarchive/test_utils/
H A Dtest_common.h230 #define assertIsHardlink(path1, path2) \
231 assertion_is_hardlink(__FILE__, __LINE__, path1, path2)
232 #define assertIsNotHardlink(path1, path2) \
233 assertion_is_not_hardlink(__FILE__, __LINE__, path1, path2)
H A Dtest_main.c1362 const char *path1, const char *path2)
1369 r = my_GetFileInformationByName(path1, &bhfi1);
1371 failure_start(file, line, "File %s can't be inspected?", path1);
1389 r = lstat(path1, &st1);
1391 failure_start(file, line, "File should exist: %s", path1);
1407 const char *path1, const char *path2)
1409 if (is_hardlink(file, line, path1, path2))
1412 "Files %s and %s are not hardlinked", path1, path2);
1419 const char *path1, const char *path2)
1421 if (!is_hardlink(file, line, path1, path
1361 is_hardlink(const char *file, int line, const char *path1, const char *path2) argument
1406 assertion_is_hardlink(const char *file, int line, const char *path1, const char *path2) argument
1418 assertion_is_not_hardlink(const char *file, int line, const char *path1, const char *path2) argument
[all...]
/freebsd-current/sys/cam/
H A Dcam_xpt.h101 int xpt_path_comp(struct cam_path *path1,
/freebsd-current/stand/kboot/include/
H A Dhost_syscall.h182 int host_symlink(const char *path1, const char *path2);
/freebsd-current/contrib/llvm-project/lldb/source/Target/
H A DModuleCache.cpp61 static FileSpec JoinPath(const FileSpec &path1, const char *path2) { argument
62 FileSpec result_spec(path1);
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_mount.c1038 * Return true if path2 is a child of path1 or path2 equals path1 or
1039 * path1 is "/" (path2 is always a child of "/").
1042 libzfs_path_contains(const char *path1, const char *path2) argument
1044 return (strcmp(path1, path2) == 0 || strcmp(path1, "/") == 0 ||
1045 (strstr(path2, path1) == path2 && path2[strlen(path1)] == '/'));
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_syscalls_netbsd.inc3637 const char *path1 = (const char *)path1_;
3639 if (path1) {
3640 PRE_READ(path1, __sanitizer::internal_strlen(path1) + 1);
3648 const char *path1 = (const char *)path1_;
3651 if (path1) {
3652 POST_READ(path1, __sanitizer::internal_strlen(path1) + 1);
/freebsd-current/sys/x86/iommu/
H A Dintel_drv.c640 dmar_dev_path(device_t child, int *busno, void *path1, int depth) argument
647 path = path1;
665 dmar_match_pathes(int busno1, const ACPI_DMAR_PCI_PATH *path1, int depth1, argument
679 if (path1[i].Device != path2[i].Device ||
680 path1[i].Function != path2[i].Function)

Completed in 236 milliseconds

12