| /freebsd-13.1/contrib/libarchive/test_utils/ |
| H A D | test_common.h | 173 #define assertChmod(pathname, mode) \ argument 199 #define assertEmptyFile(pathname) \ argument 202 #define assertNonEmptyFile(pathname) \ argument 206 #define assertFileAtimeRecent(pathname) \ argument 213 #define assertFileExists(pathname) \ argument 216 #define assertFileNotExists(pathname) \ argument 226 #define assertFileMtimeRecent(pathname) \ argument 230 #define assertFileSize(pathname, size) \ argument 232 #define assertFileMode(pathname, mode) \ argument 238 #define assertIsDir(pathname, mode) \ argument [all …]
|
| H A D | test_main.c | 592 if (chdir(pathname) == 0) in assertion_chdir() 1214 failure_start(pathname, line, "Can't read file: %s", pathname); in assertion_file_contains_lines_any_order() 1463 r = lstat(pathname, &st); in assertion_file_time() 1547 const char *pathname) in assertion_file_birthtime_recent() argument 1569 r = lstat(pathname, &st); in assertion_file_mode() 1618 r = lstat(pathname, &st); in assertion_file_nlinks() 1668 r = lstat(pathname, &st); in assertion_is_dir() 1706 r = lstat(pathname, &st); in assertion_is_reg() 1755 p = pathname; in is_symlink() 1868 r = lstat(pathname, &st); in is_symlink() [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/zed/zed.d/ |
| H A D | zed-functions.sh | 189 local pathname="$2" 193 zed_notify_email "${subject}" "${pathname}"; rv=$? 197 zed_notify_pushbullet "${subject}" "${pathname}"; rv=$? 205 zed_notify_pushover "${subject}" "${pathname}"; rv=$? 245 local pathname="${2:-"/dev/null"}" 259 if [ ! -r "${pathname}" ]; then 311 local pathname="${2:-"/dev/null"}" 322 if [ ! -r "${pathname}" ]; then 403 if [ ! -r "${pathname}" ]; then 476 if [ ! -r "${pathname}" ]; then [all …]
|
| /freebsd-13.1/contrib/libarchive/libarchive/test/ |
| H A D | test_read_format_isojoliet_long.c | 62 char pathname[104]; in DEFINE_TEST() local 71 pathname[i] = '0' + ((i+1) % 10); in DEFINE_TEST() 98 pathname[100] = 'd'; in DEFINE_TEST() 99 pathname[101] = 'i'; in DEFINE_TEST() 100 pathname[102] = 'r'; in DEFINE_TEST() 101 pathname[103] = '\0'; in DEFINE_TEST() 103 assertEqualString(pathname, archive_entry_pathname(ae)); in DEFINE_TEST() 113 pathname[100] = '1'; in DEFINE_TEST() 114 pathname[101] = '2'; in DEFINE_TEST() 115 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-13.1/contrib/libarchive/libarchive_fe/ |
| H A D | line_reader.c | 53 char *pathname; member 59 lafe_line_reader(const char *pathname, int nullSeparator) in lafe_line_reader() argument 65 lafe_errc(1, ENOMEM, "Can't open %s", pathname); in lafe_line_reader() 68 lr->pathname = strdup(pathname); in lafe_line_reader() 70 if (strcmp(pathname, "-") == 0) in lafe_line_reader() 73 lr->f = fopen(pathname, "r"); in lafe_line_reader() 75 lafe_errc(1, errno, "Couldn't open %s", pathname); in lafe_line_reader() 130 "Line too long in %s", lr->pathname); in lafe_line_reader_next() 139 "Line too long in %s", lr->pathname); in lafe_line_reader_next() 153 lafe_errc(1, errno, "Can't read %s", lr->pathname); in lafe_line_reader_next() [all …]
|
| /freebsd-13.1/usr.bin/unzip/ |
| H A D | unzip.c | 711 if (pathname[0] == '/' || in extract() 716 free(pathname); in extract() 724 free(pathname); in extract() 731 free(pathname); in extract() 738 free(pathname); in extract() 761 free(pathname); in extract() 767 char *pathname; in extract_stdout() local 781 free(pathname); in extract_stdout() 788 free(pathname); in extract_stdout() 795 free(pathname); in extract_stdout() [all …]
|
| /freebsd-13.1/usr.bin/procstat/ |
| H A D | procstat_bin.c | 50 static char pathname[PATH_MAX]; in procstat_bin() local 56 if (procstat_getpathname(prstat, kipp, pathname, sizeof(pathname)) != 0) in procstat_bin() 58 if (strlen(pathname) == 0) in procstat_bin() 59 strcpy(pathname, "-"); in procstat_bin() 66 xo_emit("{:pathname/%s}\n", pathname); in procstat_bin()
|
| /freebsd-13.1/contrib/less/ |
| H A D | lesskey.c | 144 char *pathname; local 146 pathname = ecalloc(strlen(dirname) + strlen(filename) + 2, sizeof(char)); 147 strcpy(pathname, dirname); 148 strcat(pathname, PATHNAME_SEP); 149 strcat(pathname, filename); 150 return (pathname); 161 char *pathname; local 164 pathname = mkpathname(p, filename); 167 pathname = mkpathname(p, filename); 172 pathname = mkpathname(".", filename); [all …]
|
| H A D | filename.c | 225 char *pathname; local 236 if (pathname == NULL) 247 free(pathname); 248 pathname = NULL; 254 return (pathname); 264 char *pathname; local 269 return (pathname); 274 return (pathname); 283 *pathname = '\0'; 291 return (pathname); [all …]
|
| /freebsd-13.1/contrib/sendmail/src/ |
| H A D | mci.c | 1177 char *pathname; variable 1183 if (pathname == NULL) 1184 pathname = HostStatDir; 1185 if (pathname == NULL) 1230 pathname); 1303 char *end = pathname + strlen(pathname) - 1; 1358 char *pathname; in mci_print_persistent() 1392 FileName = pathname; 1459 char *pathname; in mci_purge_persistent() 1463 char *end = pathname + strlen(pathname) - 1; [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/cmd/zfs_ids_to_path/ |
| 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-13.1/sys/contrib/openzfs/tests/test-runner/bin/ |
| H A D | test-runner.py.in | 161 self.pathname = pathname 372 def __init__(self, pathname, argument 449 if len(pretest.pathname): 464 if len(posttest.pathname): 567 if len(pretest.pathname): 590 if len(posttest.pathname): 635 test = Test(pathname) 640 self.tests[pathname] = test 909 def verify_file(pathname): argument 913 if os.path.isdir(pathname) or os.path.islink(pathname): [all …]
|
| /freebsd-13.1/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-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_match.c | 957 const char *pathname) in archive_match_include_file_time() argument 965 flag, pathname); in archive_match_include_file_time() 970 const wchar_t *pathname) in archive_match_include_file_time_w() argument 978 flag, pathname); in archive_match_include_file_time_w() 1396 const void *pathname; in add_entry() local 1405 if (pathname == NULL) { in add_entry() 1410 archive_mstring_copy_wcs(&(f->pathname), pathname); in add_entry() 1415 if (pathname == NULL) { in add_entry() 1420 archive_mstring_copy_mbs(&(f->pathname), pathname); in add_entry() 1467 const void *pathname; in time_excluded() local [all …]
|
| /freebsd-13.1/sys/contrib/zstd/programs/ |
| H A D | util.c | 719 assert(pathname != NULL); in convertPathnameToDirName() 722 len = strlen(pathname); in convertPathnameToDirName() 737 pathname[0] = '.'; in convertPathnameToDirName() 738 pathname[1] = '\0'; in convertPathnameToDirName() 749 return pathname + 1; in trimLeadingRootChar() 750 return pathname; in trimLeadingRootChar() 757 if ((pathname[0] == '.') && (pathname[1] == PATH_SEP)) in trimLeadingCurrentDirConst() 758 return pathname + 2; in trimLeadingCurrentDirConst() 759 return pathname; in trimLeadingCurrentDirConst() 812 char* pathname = NULL; in UTIL_createMirroredDestDirName() local [all …]
|
| /freebsd-13.1/usr.sbin/pmcstat/ |
| H A D | pmcpl_gprof.c | 132 const char *pathname; in pmcstat_gmon_create_file() local 135 pathname = pmcstat_string_unintern(pgf->pgf_name); in pmcstat_gmon_create_file() 136 if ((fd = open(pathname, O_RDWR|O_NOFOLLOW|O_CREAT, in pmcstat_gmon_create_file() 138 err(EX_OSERR, "ERROR: Cannot open \"%s\"", pathname); in pmcstat_gmon_create_file() 173 err(EX_OSERR, "ERROR: Cannot write \"%s\"", pathname); in pmcstat_gmon_create_file() 208 const char *pathname; in pmcstat_gmon_map_file() local 210 pathname = pmcstat_string_unintern(pgf->pgf_name); in pmcstat_gmon_map_file() 220 err(EX_OSERR, "ERROR: cannot map \"%s\"", pathname); in pmcstat_gmon_map_file() 243 const char *pathname; in pmcstat_gmon_append_arc() local 250 pathname = pmcstat_string_unintern(pgf->pgf_name); in pmcstat_gmon_append_arc() [all …]
|
| /freebsd-13.1/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-13.1/contrib/libarchive/tar/test/ |
| H A D | test_option_fflags.c | 33 clear_fflags(const char *pathname) in clear_fflags() argument 36 chflags(pathname, 0); in clear_fflags() 41 fd = open(pathname, O_RDONLY | O_NONBLOCK); in clear_fflags() 52 (void)pathname; /* UNUSED */ in clear_fflags()
|
| /freebsd-13.1/contrib/bmake/ |
| H A D | str.h | 207 Substring_Dirname(Substring pathname) in Substring_Dirname() argument 211 for (p = pathname.end; p != pathname.start; p--) in Substring_Dirname() 213 return Substring_Init(pathname.start, p - 1); in Substring_Dirname() 218 Substring_Basename(Substring pathname) in Substring_Basename() argument 222 for (p = pathname.end; p != pathname.start; p--) in Substring_Basename() 224 return Substring_Init(p, pathname.end); in Substring_Basename() 225 return pathname; in Substring_Basename()
|
| /freebsd-13.1/contrib/apr-util/dbm/ |
| H A D | apr_dbm.c | 194 const char *pathname, in apr_dbm_open_ex() argument 203 rv = (vtable->open)(pdb, pathname, mode, perm, pool); in apr_dbm_open_ex() 208 APU_DECLARE(apr_status_t) apr_dbm_open(apr_dbm_t **pdb, const char *pathname, in apr_dbm_open() argument 212 return apr_dbm_open_ex(pdb, DBM_NAME, pathname, mode, perm, pool); in apr_dbm_open() 274 const char *pathname, in apr_dbm_get_usednames_ex() argument 282 (vtable->getusednames)(p, pathname, used1, used2); in apr_dbm_get_usednames_ex() 289 const char *pathname, in apr_dbm_get_usednames() argument 293 apr_dbm_get_usednames_ex(p, DBM_NAME, pathname, used1, used2); in apr_dbm_get_usednames()
|
| /freebsd-13.1/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-13.1/usr.sbin/fmtree/ |
| H A D | excludes.c | 53 int pathname; member 89 e->pathname = 1; in read_excludes_file() 91 e->pathname = 0; in read_excludes_file() 106 if ((e->pathname && MATCH(e->glob, path)) in check_excludes()
|
| /freebsd-13.1/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-13.1/contrib/opie/ |
| H A D | ftpcmd.y | 303 | RETR check_login SP pathname CRLF 310 | STOR check_login SP pathname CRLF 317 | APPE check_login SP pathname CRLF 341 | LIST check_login SP pathname CRLF 353 | STAT check_login SP pathname CRLF 364 | DELE check_login SP pathname CRLF 371 | RNTO SP pathname CRLF 391 | CWD check_login SP pathname CRLF 421 | MKD check_login SP pathname CRLF 428 | RMD check_login SP pathname CRLF [all …]
|