/freebsd-current/usr.bin/diff/ |
H A D | diffdir.c | 53 char path1[PATH_MAX], path2[PATH_MAX]; local 68 dirlen2 = strlcpy(path2, *p2 ? p2 : ".", sizeof(path2)); 69 if (dirlen2 >= sizeof(path2) - 1) { 74 if (path2[dirlen2 - 1] != '/') { 75 path2[dirlen2++] = '/'; 76 path2[dirlen2] = '\0'; 95 pos = scandir(path2, &dirp2, selectfile, alphasort); 100 warn("%s", path2); 129 diffit(dent1, path1, dirlen1, dent2, path2, 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 D | diff.c | 572 print_status(int val, char *path1, char *path2, const char *entry) argument 577 path2 = label[1]; 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); 608 path2, entry);
|
/freebsd-current/tools/test/stress2/testcases/openat/ |
H A D | openat.c | 40 static char path2[] = "tmp"; variable 85 if (mkdir(path2, 0770) < 0) 86 err(1, "mkdir(%s), %s:%d", path2, __FILE__, __LINE__); 87 if (chdir(path2) == -1) 88 err(1, "chdir(%s), %s:%d", path2, __FILE__, __LINE__); 90 err(1, "getcwd(%s), %s:%d", path2, __FILE__, __LINE__); 95 if ((fd = open(path2, O_RDONLY)) == -1) 96 err(1, "open(%s), %s:%d", path2, __FILE__, __LINE__); 105 if (rmdir(path2) == -1) 106 warn("rmdir(%s), %s:%d", path2, __FILE_ [all...] |
/freebsd-current/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | filesystem_error.cpp | 33 path2().c_str());
|
/freebsd-current/contrib/nvi/common/ |
H A D | util.c | 108 join(char *path1, char *path2) argument 112 if (path1[0] == '\0' || path2[0] == '/') 113 return strdup(path2); 115 "%s%s" : "%s/%s", path1, path2) == -1)
|
/freebsd-current/bin/ln/ |
H A D | ln.c | 174 samedirent(const char *path1, const char *path2) argument 180 if (strcmp(path1, path2) == 0) 187 file2 = strrchr(path2, '/'); 191 file2 = path2; 194 if (file1 - path1 >= PATH_MAX || file2 - path2 >= PATH_MAX) 204 if (file2 == path2) 207 memcpy(pathbuf, path2, file2 - path2); 208 pathbuf[file2 - path2] = '\0';
|
/freebsd-current/contrib/libarchive/libarchive/test/ |
H A D | test_read_format_isorr_ce.c | 88 char path2[160]; local 98 mkpath(path2, 152); 152 } else if (strcmp(path2, archive_entry_pathname(ae)) == 0) { 154 assertEqualString(path2, archive_entry_pathname(ae)); 192 assertEqualString(path2, archive_entry_symlink(ae));
|
H A D | main.c | 1204 const char *path1, const char *path2) 1217 r = my_GetFileInformationByName(path2, &bhfi2); 1219 failure_start(file, line, "File %s can't be inspected?", path2); 1237 r = lstat(path2, &st2); 1239 failure_start(file, line, "File should exist: %s", path2); 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, path2)) 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/contrib/kyua/utils/fs/ |
H A D | lua_module.cpp | 293 const fs::path path2 = to_path(state, -1); local 294 state.push_string((path1 / path2).c_str());
|
H A D | path_test.cpp | 46 #define REQUIRE_JOIN_ERROR(path1, path2, expr) \ 52 ATF_REQUIRE_EQ(path2, e.textual_path2()); \
|
/freebsd-current/stand/kboot/libkboot/ |
H A D | host_syscalls.c | 156 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 D | filesystem_error.h | 50 _LIBCPP_HIDE_FROM_ABI const path& path2() const noexcept { return __storage_->__p2_; }
|
/freebsd-current/contrib/llvm-project/lld/ELF/ |
H A D | DriverUtils.cpp | 213 const Twine &path2) { 216 path::append(s, config->sysroot, path1.substr(1), path2); 218 path::append(s, path1, path2); 212 findFile(StringRef path1, const Twine &path2) argument
|
/freebsd-current/tests/sys/netgraph/ |
H A D | util.h | 39 char const *path2, char const *hook2,
|
H A D | util.c | 71 char const *path2, char const *hook2, 78 strncpy(c.path, path2, sizeof(c.path)); 70 _ng_connect(char const *path1, char const *hook1, char const *path2, char const *hook2, char const *file, size_t line) argument
|
/freebsd-current/contrib/libarchive/test_utils/ |
H A D | test_common.h | 230 #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 D | test_main.c | 1362 const char *path1, const char *path2) 1375 r = my_GetFileInformationByName(path2, &bhfi2); 1377 failure_start(file, line, "File %s can't be inspected?", path2); 1395 r = lstat(path2, &st2); 1397 failure_start(file, line, "File should exist: %s", path2); 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, path2)) 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 D | cam_xpt.h | 102 struct cam_path *path2);
|
/freebsd-current/stand/kboot/include/ |
H A D | host_syscall.h | 182 int host_symlink(const char *path1, const char *path2);
|
/freebsd-current/contrib/llvm-project/lldb/source/Target/ |
H A D | ModuleCache.cpp | 61 static FileSpec JoinPath(const FileSpec &path1, const char *path2) { argument 63 result_spec.AppendPathComponent(path2);
|
/freebsd-current/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_mount.c | 1038 * 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/sys/dev/aic7xxx/ |
H A D | aic7xxx_osm.c | 148 struct cam_path *path2; local 155 path2 = NULL; 246 if (xpt_create_path(&path2, /*periph*/NULL, 255 xpt_setup_ccb(&csa.ccb_h, path2, /*priority*/5); 270 ahc->platform_data->path = path2; 275 ahc->platform_data->path_b = path2;
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_syscalls_netbsd.inc | 3638 const char *path2 = (const char *)path2_; 3642 if (path2) { 3643 PRE_READ(path2, __sanitizer::internal_strlen(path2) + 1); 3649 const char *path2 = (const char *)path2_; 3654 if (path2) { 3655 POST_READ(path2, __sanitizer::internal_strlen(path2) + 1);
|
/freebsd-current/bin/sh/ |
H A D | exec.c | 779 const char *path2 = path; local 784 name = padvance(&path2, &opt2, argv[i]);
|
/freebsd-current/tests/sys/file/ |
H A D | path_test.c | 681 char path[PATH_MAX], path2[PATH_MAX]; local 719 mktfile(path2, "path_io.XXXXXX"); 720 fd = open(path2, O_RDWR);
|