/freebsd/contrib/libarchive/test_utils/ |
H A D | test_common.h | 161 #define assertChmod(pathname, mode) \ argument 189 #define assertEmptyFile(pathname) \ argument 192 #define assertNonEmptyFile(pathname) \ argument 196 #define assertFileAtimeRecent(pathname) \ argument 203 #define assertFileExists(pathname) \ argument 206 #define assertFileNotExists(pathname) \ argument 216 #define assertFileMtimeRecent(pathname) \ argument 220 #define assertFileSize(pathname, size) \ argument 222 #define assertFileMode(pathname, mode) \ argument 228 #define assertIsDir(pathname, mode) \ argument [all …]
|
H A D | test_main.c | 592 if (chdir(pathname) == 0) in assertion_chdir() 1229 failure_start(pathname, line, "Can't read file: %s", pathname); in assertion_file_contains_lines_any_order() 1478 r = lstat(pathname, &st); in assertion_file_time() 1562 const char *pathname) in assertion_file_birthtime_recent() argument 1584 r = lstat(pathname, &st); in assertion_file_mode() 1633 r = lstat(pathname, &st); in assertion_file_nlinks() 1683 r = lstat(pathname, &st); in assertion_is_dir() 1721 r = lstat(pathname, &st); in assertion_is_reg() 1770 p = pathname; in is_symlink() 1883 r = lstat(pathname, &st); in is_symlink() [all …]
|
/freebsd/crypto/openssl/fuzz/ |
H A D | test-corpus.c | 37 static void testfile(const char *pathname) in testfile() argument 46 printf("# %s\n", pathname); in testfile() 48 f = fopen(pathname, "rb"); in testfile() 69 char *pathname = NULL; in main() local 78 if (pathname == NULL) { in main() 79 pathname = malloc(PATH_MAX); in main() 80 if (pathname == NULL) in main() 82 strcpy(pathname, argv[n]); in main() 87 pathname[dirname_len] = '\0'; in main() 90 testfile(pathname); in main() [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zed/zed.d/ |
H A D | zed-functions.sh | 188 local pathname="$2" 268 if [ ! -r "${pathname}" ]; then 288 cat "${pathname}" 342 if [ ! -r "${pathname}" ]; then 423 if [ ! -r "${pathname}" ]; then 496 if [ ! -r "${pathname}" ]; then 505 msg_body="$(cat "${pathname}")" 578 if [ ! -r "${pathname}" ]; then 587 msg_body="$(cat "${pathname}")" 670 if [ ! -r "${pathname}" ]; then [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_read_format_isojoliet_long.c | 61 char pathname[104]; in DEFINE_TEST() local 70 pathname[i] = '0' + ((i+1) % 10); in DEFINE_TEST() 97 pathname[100] = 'd'; in DEFINE_TEST() 98 pathname[101] = 'i'; in DEFINE_TEST() 99 pathname[102] = 'r'; in DEFINE_TEST() 100 pathname[103] = '\0'; in DEFINE_TEST() 102 assertEqualString(pathname, archive_entry_pathname(ae)); in DEFINE_TEST() 112 pathname[100] = '1'; in DEFINE_TEST() 113 pathname[101] = '2'; in DEFINE_TEST() 114 pathname[102] = '3'; in DEFINE_TEST() [all …]
|
H A D | main.c | 464 if (chdir(pathname) == 0) in assertion_chdir() 1073 failure_start(pathname, line, "Can't read file: %s", pathname); in assertion_file_contains_lines_any_order() 1320 r = lstat(pathname, &st); in assertion_file_time() 1404 const char *pathname) in assertion_file_birthtime_recent() argument 1426 r = lstat(pathname, &st); in assertion_file_mode() 1475 r = lstat(pathname, &st); in assertion_file_nlinks() 1502 r = lstat(pathname, &st); in assertion_file_size() 1525 r = lstat(pathname, &st); in assertion_is_dir() 1563 r = lstat(pathname, &st); in assertion_is_reg() 1605 r = lstat(pathname, &st); in is_symlink() [all …]
|
/freebsd/contrib/libarchive/libarchive_fe/ |
H A D | line_reader.c | 51 char *pathname; member 57 lafe_line_reader(const char *pathname, int nullSeparator) in lafe_line_reader() argument 63 lafe_errc(1, ENOMEM, "Can't open %s", pathname); in lafe_line_reader() 66 lr->pathname = strdup(pathname); in lafe_line_reader() 68 if (strcmp(pathname, "-") == 0) in lafe_line_reader() 71 lr->f = fopen(pathname, "r"); in lafe_line_reader() 73 lafe_errc(1, errno, "Couldn't open %s", pathname); in lafe_line_reader() 128 "Line too long in %s", lr->pathname); in lafe_line_reader_next() 137 "Line too long in %s", lr->pathname); in lafe_line_reader_next() 151 lafe_errc(1, errno, "Can't read %s", lr->pathname); in lafe_line_reader_next() [all …]
|
/freebsd/usr.bin/procstat/ |
H A D | procstat_bin.c | 47 static char pathname[PATH_MAX]; in procstat_bin() local 53 if (procstat_getpathname(prstat, kipp, pathname, sizeof(pathname)) != 0) in procstat_bin() 55 if (strlen(pathname) == 0) in procstat_bin() 56 strcpy(pathname, "-"); in procstat_bin() 63 xo_emit("{:pathname/%s}\n", pathname); in procstat_bin()
|
/freebsd/contrib/libarchive/unzip/ |
H A D | bsdunzip.c | 802 if (pathname[0] == '/' || in extract() 807 free(pathname); in extract() 815 free(pathname); in extract() 822 free(pathname); in extract() 829 free(pathname); in extract() 852 free(pathname); in extract() 858 char *pathname; in extract_stdout() local 872 free(pathname); in extract_stdout() 879 free(pathname); in extract_stdout() 886 free(pathname); in extract_stdout() [all …]
|
/freebsd/contrib/less/ |
H A D | lesskey.c | 145 char *pathname; in mkpathname() local 147 pathname = ecalloc(strlen(dirname) + strlen(filename) + 2, sizeof(char)); in mkpathname() 148 strcpy(pathname, dirname); in mkpathname() 149 strcat(pathname, PATHNAME_SEP); in mkpathname() 150 strcat(pathname, filename); in mkpathname() 151 return (pathname); in mkpathname() 160 char *pathname; in homefile() local 163 pathname = mkpathname(p, filename); in homefile() 166 pathname = mkpathname(p, filename); in homefile() 171 pathname = mkpathname(".", filename); in homefile() [all …]
|
H A D | filename.c | 217 char *pathname; in dirfile() local 228 if (pathname == NULL) in dirfile() 239 free(pathname); in dirfile() 240 pathname = NULL; in dirfile() 246 return (pathname); in dirfile() 254 char *pathname; in homefile() local 259 return (pathname); in homefile() 264 return (pathname); in homefile() 273 *pathname = '\0'; in homefile() 281 return (pathname); in homefile() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | mci.c | 1180 char *pathname; variable 1186 if (pathname == NULL) 1187 pathname = HostStatDir; 1188 if (pathname == NULL) 1233 pathname); 1306 char *end = pathname + strlen(pathname) - 1; 1361 char *pathname; in mci_print_persistent() 1395 FileName = pathname; 1462 char *pathname; in mci_purge_persistent() 1466 char *end = pathname + strlen(pathname) - 1; [all …]
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | zfs_ids_to_path.c | 84 char pathname[PATH_MAX * 2]; in main() local 86 zpool_obj_to_path_ds(pool, objset, object, pathname, in main() 87 sizeof (pathname)); in main() 89 zpool_obj_to_path(pool, objset, object, pathname, in main() 90 sizeof (pathname)); in main() 92 printf("%s\n", pathname); in main()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | pathname.h | 55 typedef struct pathname { struct 60 extern void pn_alloc(struct pathname *); argument 61 extern void pn_alloc_sz(struct pathname *, size_t); 62 extern void pn_free(struct pathname *);
|
/freebsd/sys/contrib/openzfs/tests/test-runner/bin/ |
H A D | test-runner.py.in | 163 self.pathname = pathname 409 def __init__(self, pathname, argument 486 if len(pretest.pathname): 501 if len(posttest.pathname): 604 if len(pretest.pathname): 627 if len(posttest.pathname): 673 test = Test(pathname) 678 self.tests[pathname] = test 952 def verify_file(pathname): argument 956 if os.path.isdir(pathname) or os.path.islink(pathname): [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_match.c | 956 const char *pathname) in archive_match_include_file_time() argument 964 flag, pathname); in archive_match_include_file_time() 969 const wchar_t *pathname) in archive_match_include_file_time_w() argument 977 flag, pathname); in archive_match_include_file_time_w() 1395 const void *pathname; in add_entry() local 1404 if (pathname == NULL) { in add_entry() 1409 archive_mstring_copy_wcs(&(f->pathname), pathname); in add_entry() 1414 if (pathname == NULL) { in add_entry() 1419 archive_mstring_copy_mbs(&(f->pathname), pathname); in add_entry() 1466 const void *pathname; in time_excluded() local [all …]
|
H A D | archive_write_set_format_ar.c | 152 const char *pathname; in archive_write_ar_header() local 166 pathname = archive_entry_pathname(entry); in archive_write_ar_header() 167 if (pathname == NULL || *pathname == '\0') { in archive_write_ar_header() 185 if (strcmp(pathname, "/") == 0 ) { in archive_write_ar_header() 190 if (strcmp(pathname, "/SYM64/") == 0) { in archive_write_ar_header() 195 if (strcmp(pathname, "__.SYMDEF") == 0) { in archive_write_ar_header() 200 if (strcmp(pathname, "//") == 0) { in archive_write_ar_header() 218 if ((filename = ar_basename(pathname)) == NULL) { in archive_write_ar_header()
|
/freebsd/sys/contrib/zstd/programs/ |
H A D | util.c | 809 assert(pathname != NULL); in convertPathnameToDirName() 812 len = strlen(pathname); in convertPathnameToDirName() 827 pathname[0] = '.'; in convertPathnameToDirName() 828 pathname[1] = '\0'; in convertPathnameToDirName() 839 return pathname + 1; in trimLeadingRootChar() 840 return pathname; in trimLeadingRootChar() 847 if ((pathname[0] == '.') && (pathname[1] == PATH_SEP)) in trimLeadingCurrentDirConst() 848 return pathname + 2; in trimLeadingCurrentDirConst() 849 return pathname; in trimLeadingCurrentDirConst() 902 char* pathname = NULL; in UTIL_createMirroredDestDirName() local [all …]
|
/freebsd/usr.sbin/pmcstat/ |
H A D | pmcpl_gprof.c | 129 const char *pathname; in pmcstat_gmon_create_file() local 132 pathname = pmcstat_string_unintern(pgf->pgf_name); in pmcstat_gmon_create_file() 133 if ((fd = open(pathname, O_RDWR|O_NOFOLLOW|O_CREAT, in pmcstat_gmon_create_file() 135 err(EX_OSERR, "ERROR: Cannot open \"%s\"", pathname); in pmcstat_gmon_create_file() 170 err(EX_OSERR, "ERROR: Cannot write \"%s\"", pathname); in pmcstat_gmon_create_file() 205 const char *pathname; in pmcstat_gmon_map_file() local 207 pathname = pmcstat_string_unintern(pgf->pgf_name); in pmcstat_gmon_map_file() 217 err(EX_OSERR, "ERROR: cannot map \"%s\"", pathname); in pmcstat_gmon_map_file() 240 const char *pathname; in pmcstat_gmon_append_arc() local 247 pathname = pmcstat_string_unintern(pgf->pgf_name); in pmcstat_gmon_append_arc() [all …]
|
/freebsd/contrib/bmake/ |
H A D | str.h | 201 Substring_Dirname(Substring pathname) in Substring_Dirname() argument 205 for (p = pathname.end; p != pathname.start; p--) in Substring_Dirname() 207 return Substring_Init(pathname.start, p - 1); in Substring_Dirname() 212 Substring_Basename(Substring pathname) in Substring_Basename() argument 216 for (p = pathname.end; p != pathname.start; p--) in Substring_Basename() 218 return Substring_Init(p, pathname.end); in Substring_Basename() 219 return pathname; in Substring_Basename()
|
/freebsd/contrib/capsicum-test/ |
H A D | capsicum-test.cc | 32 std::string pathname(p); in TmpFile() local 33 if (tmp_paths.find(pathname) == tmp_paths.end()) { in TmpFile() 34 std::string fullname = tmpdir + "/" + pathname; in TmpFile() 35 tmp_paths[pathname] = fullname; in TmpFile() 37 return tmp_paths[pathname].c_str(); in TmpFile()
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_fflags.c | 32 clear_fflags(const char *pathname) in clear_fflags() argument 35 chflags(pathname, 0); in clear_fflags() 40 fd = open(pathname, O_RDONLY | O_NONBLOCK); in clear_fflags() 51 (void)pathname; /* UNUSED */ in clear_fflags()
|
/freebsd/contrib/mtree/ |
H A D | excludes.c | 62 int pathname; member 96 e->pathname = 1; in read_excludes_file() 98 e->pathname = 0; in read_excludes_file() 114 if ((e->pathname && MATCH(e->glob, path)) in check_excludes()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | pathname.c | 67 pn_alloc(struct pathname *pnp) in pn_alloc() 72 pn_alloc_sz(struct pathname *pnp, size_t sz) in pn_alloc_sz() 82 pn_free(struct pathname *pnp) in pn_free()
|
/freebsd/bin/getfacl/ |
H A D | getfacl.c | 172 char *p, pathname[PATH_MAX]; in print_acl_from_stdin() local 175 while (fgets(pathname, (int)sizeof(pathname), stdin)) { in print_acl_from_stdin() 176 if ((p = strchr(pathname, '\n')) != NULL) in print_acl_from_stdin() 178 if (print_acl(pathname, type, hflag, iflag, nflag, in print_acl_from_stdin()
|