| /freebsd-12.1/contrib/libarchive/test_utils/ |
| H A D | test_common.h | 176 #define assertEmptyFile(pathname) \ argument 179 #define assertNonEmptyFile(pathname) \ argument 183 #define assertFileAtimeRecent(pathname) \ argument 187 #define assertFileBirthtimeRecent(pathname) \ argument 190 #define assertFileExists(pathname) \ argument 193 #define assertFileNotExists(pathname) \ argument 203 #define assertFileMtimeRecent(pathname) \ argument 207 #define assertFileSize(pathname, size) \ argument 209 #define assertFileMode(pathname, mode) \ argument 215 #define assertIsDir(pathname, mode) \ argument [all …]
|
| H A D | test_main.c | 592 if (chdir(pathname) == 0) in assertion_chdir() 1201 failure_start(pathname, line, "Can't read file: %s", pathname); in assertion_file_contains_lines_any_order() 1450 r = lstat(pathname, &st); in assertion_file_time() 1534 const char *pathname) in assertion_file_birthtime_recent() argument 1556 r = lstat(pathname, &st); in assertion_file_mode() 1605 r = lstat(pathname, &st); in assertion_file_nlinks() 1655 r = lstat(pathname, &st); in assertion_is_dir() 1693 r = lstat(pathname, &st); in assertion_is_reg() 1742 p = pathname; in is_symlink() 1855 r = lstat(pathname, &st); in is_symlink() [all …]
|
| /freebsd-12.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-12.1/usr.bin/unzip/ |
| H A D | unzip.c | 692 if (pathname[0] == '/' || in extract() 697 free(pathname); in extract() 705 free(pathname); in extract() 712 free(pathname); in extract() 719 free(pathname); in extract() 742 free(pathname); in extract() 748 char *pathname; in extract_stdout() local 758 free(pathname); in extract_stdout() 765 free(pathname); in extract_stdout() 772 free(pathname); in extract_stdout() [all …]
|
| /freebsd-12.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-12.1/contrib/sendmail/src/ |
| H A D | mci.c | 1134 char *pathname; variable 1140 if (pathname == NULL) 1141 pathname = HostStatDir; 1142 if (pathname == NULL) 1187 pathname); 1260 char *end = pathname + strlen(pathname) - 1; 1315 char *pathname; in mci_print_persistent() 1349 FileName = pathname; 1416 char *pathname; in mci_purge_persistent() 1420 char *end = pathname + strlen(pathname) - 1; [all …]
|
| /freebsd-12.1/usr.bin/procstat/ |
| H A D | procstat_bin.c | 49 static char pathname[PATH_MAX]; in procstat_bin() local 55 if (procstat_getpathname(prstat, kipp, pathname, sizeof(pathname)) != 0) in procstat_bin() 57 if (strlen(pathname) == 0) in procstat_bin() 58 strcpy(pathname, "-"); in procstat_bin() 65 xo_emit("{:pathname/%s}\n", pathname); in procstat_bin()
|
| /freebsd-12.1/contrib/gcc/ |
| H A D | genmddeps.c | 30 const char *pathname; member 36 add_filedep (const char *pathname) in add_filedep() argument 39 n->pathname = pathname; in add_filedep() 60 printf (" \\\n\t%s", d->pathname); in main() 66 printf ("\n%s:\n", d->pathname); in main()
|
| /freebsd-12.1/contrib/less/ |
| H A D | filename.c | 224 char *pathname; local 235 if (pathname == NULL) 244 free(pathname); 245 pathname = NULL; 250 return (pathname); 260 char *pathname; local 267 return (pathname); 274 return (pathname); 285 *pathname = '\0'; 293 return (pathname); [all …]
|
| H A D | lesskey.c | 234 char *pathname; local 236 pathname = calloc(strlen(dirname) + strlen(filename) + 2, sizeof(char)); 237 strcpy(pathname, dirname); 238 strcat(pathname, PATHNAME_SEP); 239 strcat(pathname, filename); 240 return (pathname); 251 char *pathname; local 254 pathname = mkpathname(p, filename); 257 pathname = mkpathname(p, filename); 262 pathname = mkpathname(".", filename); [all …]
|
| /freebsd-12.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 …]
|
| 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-12.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-12.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-12.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-12.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-12.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-12.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 …]
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_linker.c | 622 lf->pathname = strdup(pathname, M_LINKER); in linker_make_file() 749 if (file->pathname) { in linker_file_unload() 751 file->pathname = NULL; in linker_file_unload() 1089 char *pathname = NULL; in sys_kldload() local 1101 free(pathname, M_TEMP); in sys_kldload() 1164 char *pathname; in sys_kldfind() local 1190 free(pathname, M_TEMP); in sys_kldfind() 1288 bcopy(lf->pathname, &stat->pathname[0], namelen); in kern_kldstat() 2054 char *pathname; in linker_load_module() local 2071 pathname = NULL; in linker_load_module() [all …]
|
| /freebsd-12.1/crypto/heimdal/appl/ftp/ftpd/ |
| H A D | ftpcmd.y | 274 | RETR SP pathname CRLF check_login 283 | STOR SP pathname CRLF check_login 292 | APPE SP pathname CRLF check_login 320 | LIST SP pathname CRLF check_login 326 | sTAT SP pathname CRLF check_login 373 | CWD SP pathname CRLF check_login 407 | MKD SP pathname CRLF check_login 570 | STOU SP pathname CRLF check_login 595 | SIZE SP pathname CRLF check_login 612 | MDTM SP pathname CRLF check_login [all …]
|
| /freebsd-12.1/tools/regression/usr.bin/env/ |
| H A D | regress-env.rgdata | 255 stdout:Testv:ab/ba Scriptname: [%-script.pathname-%] 260 stdout:testV: cd/dc scriptname: [%-script.pathname-%] 318 stdout:....$3 = [ 16] '[%-script.pathname-%]' 388 script:[%-testpgm.pathname-%] -S '\c' >/dev/null 392 script:[%-testpgm.pathname-%] -S'\c' >/dev/null 396 script:[%-testpgm.pathname-%] -u foo -S '\c' >/dev/null 400 script:[%-testpgm.pathname-%] -u foo -S'\c' >/dev/null 404 script:[%-testpgm.pathname-%] -S '-u bar \c' >/dev/null 408 script:[%-testpgm.pathname-%] -S'-u bar \c' >/dev/null 412 script:[%-testpgm.pathname-%] -u foo -S '-u bar \c' >/dev/null [all …]
|
| /freebsd-12.1/tests/sys/aio/ |
| H A D | aio_kqueue_test.c | 61 char *file, pathname[sizeof(PATH_TEMPLATE)+1]; in main() local 92 strcpy(pathname, PATH_TEMPLATE); in main() 93 fd = mkstemp(pathname); in main() 94 file = pathname; in main() 229 unlink(pathname); in main()
|
| /freebsd-12.1/contrib/apr/strings/ |
| H A D | apr_cpystrn.c | 198 APR_DECLARE(const char *) apr_filepath_name_get(const char *pathname) in apr_filepath_name_get() argument 201 const char *s = strrchr(pathname, path_separator); in apr_filepath_name_get() 206 const char *s2 = strrchr(pathname, path_separator_win); in apr_filepath_name_get() 210 if (!s) s = strrchr(pathname, drive_separator_win); in apr_filepath_name_get() 213 return s ? ++s : pathname; in apr_filepath_name_get()
|
| /freebsd-12.1/contrib/bmake/ |
| H A D | util.c | 269 getwd(char *pathname) in getwd() argument 281 (void)sprintf(pathname, in getwd() 292 (void)sprintf(pathname, in getwd() 304 (void)strcpy(pathname, *pathptr != '/' ? "/" : pathptr); in getwd() 305 return (pathname); in getwd() 310 (void)sprintf(pathname, in getwd() 316 (void)sprintf(pathname, in getwd() 339 (void)sprintf(pathname, in getwd() 352 (void)sprintf(pathname, in getwd()
|