Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 25 of 225) sorted by relevance

123456789

/freebsd/contrib/libarchive/test_utils/
H A Dtest_common.h164 #define assertChmod(pathname, mode) \ argument
165 assertion_chmod(__FILE__, __LINE__, pathname, mode)
192 #define assertEmptyFile(pathname) \ argument
193 assertion_empty_file(__FILE__, __LINE__, (pathname))
195 #define assertNonEmptyFile(pathname) \ argument
196 assertion_non_empty_file(__FILE__, __LINE__, (pathname))
197 #define assertFileAtime(pathname, sec, nsec) \ argument
198 assertion_file_atime(__FILE__, __LINE__, pathname, sec, nsec)
199 #define assertFileAtimeRecent(pathname) \ argument
200 assertion_file_atime_recent(__FILE__, __LINE__, pathname)
[all …]
H A Dtest_main.c596 assertion_chdir(const char *file, int line, const char *pathname) in assertion_chdir() argument
599 if (chdir(pathname) == 0) in assertion_chdir()
601 failure_start(file, line, "chdir(\"%s\")", pathname); in assertion_chdir()
609 assertion_chmod(const char *file, int line, const char *pathname, int mode) in assertion_chmod() argument
612 if (chmod(pathname, mode) == 0) in assertion_chmod()
614 failure_start(file, line, "chmod(\"%s\", %4.o)", pathname, mode); in assertion_chmod()
1222 const char *pathname, const char *lines[]) in assertion_file_contains_lines_any_order() argument
1234 buff = slurpfile(&buff_size, "%s", pathname); in assertion_file_contains_lines_any_order()
1236 failure_start(pathname, line, "Can't read file: %s", pathname); in assertion_file_contains_lines_any_order()
1249 failure_start(pathname, line, "Can't allocate memory"); in assertion_file_contains_lines_any_order()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dzed-functions.sh188 local pathname="$2"
192 zed_notify_email "${subject}" "${pathname}"; rv=$?
196 zed_notify_pushbullet "${subject}" "${pathname}"; rv=$?
200 zed_notify_slack_webhook "${subject}" "${pathname}"; rv=$?
204 zed_notify_pushover "${subject}" "${pathname}"; rv=$?
208 zed_notify_ntfy "${subject}" "${pathname}"; rv=$?
212 zed_notify_gotify "${subject}" "${pathname}"; rv=$?
254 local pathname="${2:-"/dev/null"}"
268 if [ ! -r "${pathname}" ]; then
270 "${ZED_EMAIL_PROG##*/} cannot read \"${pathname}\""
[all …]
/freebsd/crypto/openssl/fuzz/
H A Dtest-corpus.c37 static void testfile(const char *pathname) in testfile() argument
44 if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode)) in testfile()
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()
84 if (strchr(":<]", pathname[dirname_len - 1]) == NULL) in main()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_read_format_isojoliet_long.c61 char pathname[104]; in DEFINE_TEST()
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()
110 /* A regular file with two names (pathname gets returned in DEFINE_TEST()
112 pathname[100] = '1'; in DEFINE_TEST()
113 pathname[10 in DEFINE_TEST()
62 char pathname[104]; DEFINE_TEST() local
[all...]
H A Dmain.c461 assertion_chdir(const char *file, int line, const char *pathname) in assertion_chdir() argument
464 if (chdir(pathname) == 0) in assertion_chdir()
466 failure_start(file, line, "chdir(\"%s\")", pathname); in assertion_chdir()
1059 const char *pathname, const char *lines[]) in assertion_file_contains_lines_any_order() argument
1071 buff = slurpfile(&buff_size, "%s", pathname); in assertion_file_contains_lines_any_order()
1073 failure_start(pathname, line, "Can't read file: %s", pathname); in assertion_file_contains_lines_any_order()
1086 failure_start(pathname, line, "Can't allocate memory"); in assertion_file_contains_lines_any_order()
1108 failure_start(pathname, line, "Can't allocate memory"); in assertion_file_contains_lines_any_order()
1153 failure_start(file, line, "File doesn't match: %s", pathname); in assertion_file_contains_lines_any_order()
1174 const char *pathname, const char *strings[]) in assertion_file_contains_no_invalid_strings() argument
[all …]
/freebsd/contrib/libarchive/libarchive_fe/
H A Dline_reader.c51 char *pathname;
57 lafe_line_reader(const char *pathname, int nullSeparator)
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()
53 char *pathname; global() member
59 lafe_line_reader(const char * pathname,int nullSeparator) lafe_line_reader() argument
[all...]
/freebsd/contrib/libarchive/unzip/
H A Dbsdunzip.c321 accept_pathname(const char *pathname) in accept_pathname() argument
324 if (!STAILQ_EMPTY(&include) && !match_pattern(&include, pathname)) in accept_pathname()
326 if (!STAILQ_EMPTY(&exclude) && match_pattern(&exclude, pathname)) in accept_pathname()
529 extract2fd(struct archive *a, char *pathname, int fd) in extract2fd() argument
554 error("write('%s')", pathname); in extract2fd()
581 error("write('%s')", pathname); in extract2fd()
591 " heuristic", pathname); in extract2fd()
604 error("write('%s')", pathname); in extract2fd()
761 char *pathname, *realpathname; in extract() local
765 if ((pathname = pathdup(archive_entry_pathname(e))) == NULL) { in extract()
[all …]
/freebsd/usr.bin/procstat/
H A Dprocstat_bin.c47 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/sendmail/src/
H A Dmci.c1178 mci_traverse_persistent(action, pathname)
1180 char *pathname; variable
1186 if (pathname == NULL)
1187 pathname = HostStatDir;
1188 if (pathname == NULL)
1192 sm_dprintf("mci_traverse: pathname is %s\n", pathname);
1194 ret = stat(pathname, &statbuf);
1199 pathname, sm_errstring(errno));
1213 if ((d = opendir(pathname)) == NULL)
1217 pathname, sm_errstring(errno));
[all …]
/freebsd/contrib/less/
H A Dlesskey.c145 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 in homefile()
[all...]
H A Dfilename.c237 * Return a pathname that points to a specified file in a specified directory. in dirfile()
242 char *pathname; in dirfile()
249 * Construct the full pathname.
252 pathname = (char *) calloc(len, sizeof(char)); in homefile()
253 if (pathname == NULL) in homefile()
255 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename); in homefile()
261 f = open(pathname, OPEN_READ); in homefile()
264 free(pathname); in homefile()
265 pathname = NULL; in homefile()
271 return (pathname); in homefile()
217 char *pathname; dirfile() local
254 char *pathname; homefile() local
[all...]
/freebsd/sys/contrib/openzfs/cmd/
H A Dzfs_ids_to_path.c84 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/contrib/libarchive/libarchive/
H A Darchive_match.c65 struct archive_mstring pathname; member
351 const char *pathname, int nullSeparator) in archive_match_exclude_pattern_from_file() argument
359 return add_pattern_from_file(a, &(a->exclusions), 1, pathname, in archive_match_exclude_pattern_from_file()
365 const wchar_t *pathname, int nullSeparator) in archive_match_exclude_pattern_from_file_w() argument
373 return add_pattern_from_file(a, &(a->exclusions), 0, pathname, in archive_match_exclude_pattern_from_file_w()
417 const char *pathname, int nullSeparator) in archive_match_include_pattern_from_file() argument
425 return add_pattern_from_file(a, &(a->inclusions), 1, pathname, in archive_match_include_pattern_from_file()
431 const wchar_t *pathname, int nullSeparator) in archive_match_include_pattern_from_file_w() argument
439 return add_pattern_from_file(a, &(a->inclusions), 0, pathname, in archive_match_include_pattern_from_file_w()
592 int mbs, const void *pathname, int nullSeparator) in add_pattern_from_file() argument
[all …]
H A Darchive_write_set_format_ar.c152 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/openzfs/tests/test-runner/bin/
H A Dtest-runner.py.in161 def __init__(self, pathname, identifier=None, outputdir=None, argument
163 self.pathname = pathname
185 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user)
285 privcmd = self.update_cmd_privs(self.pathname, self.user)
380 msga = 'Test (%s): %s%s ' % (self.identifier, self.pathname, user)
382 msga = 'Test: %s%s ' % (self.pathname, user)
429 def __init__(self, pathname, argument
432 super(Test, self).__init__(pathname, **kwargs)
459 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user,
468 files = [self.pre, self.pathname, self.post, self.failsafe]
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dpathname.h55 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/zstd/programs/
H A Dutil.c741 static int pathnameHas2Dots(const char *pathname) in pathnameHas2Dots() argument
747 const char *needle = pathname; in pathnameHas2Dots()
755 if ((needle == pathname || needle[-1] == PATH_SEP) in pathnameHas2Dots()
804 static void convertPathnameToDirName(char *pathname) in convertPathnameToDirName() argument
809 assert(pathname != NULL); in convertPathnameToDirName()
812 len = strlen(pathname); in convertPathnameToDirName()
814 while (pathname[len] == PATH_SEP) { in convertPathnameToDirName()
815 pathname[len] = '\0'; in convertPathnameToDirName()
825 pos = strrchr(pathname, PATH_SEP); in convertPathnameToDirName()
827 pathname[0] = '.'; in convertPathnameToDirName()
[all …]
/freebsd/usr.sbin/pmcstat/
H A Dpmcpl_gprof.c129 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()
210 if ((fd = open(pathname, O_RDWR | O_NOFOLLOW, 0)) < 0) in pmcstat_gmon_map_file()
211 err(EX_OSERR, "ERROR: cannot open \"%s\"", pathname); in pmcstat_gmon_map_file()
217 err(EX_OSERR, "ERROR: cannot map \"%s\"", pathname); in pmcstat_gmon_map_file()
[all …]
/freebsd/contrib/bmake/
H A Dstr.h201 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 Dcapsicum-test.cc32 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 Dtest_option_fflags.c14 clear_fflags(const char *pathname) in clear_fflags() argument
17 chflags(pathname, 0); in clear_fflags()
22 fd = open(pathname, O_RDONLY | O_NONBLOCK); in clear_fflags()
33 (void)pathname; /* UNUSED */ in clear_fflags()
/freebsd/contrib/mtree/
H A Dexcludes.c62 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 Dpathname.c67 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 Dgetfacl.c172 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()

123456789