Searched refs:pathname (Results 1 - 25 of 164) sorted by relevance

1234567

/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dpathname.h50 * to the underlying storage; routines which manipulate the pathname
55 typedef struct pathname { struct
60 extern void pn_alloc(struct pathname *);
61 extern void pn_alloc_sz(struct pathname *, size_t);
62 extern void pn_free(struct pathname *);
/freebsd-current/usr.bin/procstat/
H A Dprocstat_bin.c47 static char pathname[PATH_MAX]; local
53 if (procstat_getpathname(prstat, kipp, pathname, sizeof(pathname)) != 0)
55 if (strlen(pathname) == 0)
56 strcpy(pathname, "-");
63 xo_emit("{:pathname/%s}\n", pathname);
/freebsd-current/crypto/openssl/fuzz/
H A Dtest-corpus.c37 static void testfile(const char *pathname) argument
44 if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode))
46 printf("# %s\n", pathname);
48 f = fopen(pathname, "rb");
69 char *pathname = NULL; local
78 if (pathname == NULL) {
79 pathname = malloc(PATH_MAX);
80 if (pathname == NULL)
82 strcpy(pathname, argv[n]);
84 if (strchr(":<]", pathname[dirname_le
[all...]
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dpathname.c41 #include <sys/pathname.h>
49 * name into a pathname structure where we operate on it.
50 * Each pathname structure can hold "pn_bufsize" characters
52 * allocating and freeing pathname structures, fetching
54 * a pathname, combining two pathnames (used in symbolic
56 * of a pathname.
60 * Allocate contents of pathname structure. Structure is typically
67 pn_alloc(struct pathname *pnp)
72 pn_alloc_sz(struct pathname *pnp, size_t sz)
79 * Free pathname resource
[all...]
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_read_format_isojoliet_long.c61 char pathname[104]; local
70 pathname[i] = '0' + ((i+1) % 10);
97 pathname[100] = 'd';
98 pathname[101] = 'i';
99 pathname[102] = 'r';
100 pathname[103] = '\0';
102 assertEqualString(pathname, archive_entry_pathname(ae));
110 /* A regular file with two names (pathname gets returned
112 pathname[100] = '1';
113 pathname[10
[all...]
H A Dmain.c461 assertion_chdir(const char *file, int line, const char *pathname) argument
464 if (chdir(pathname) == 0)
466 failure_start(file, line, "chdir(\"%s\")", pathname);
1059 const char *pathname, const char *lines[])
1071 buff = slurpfile(&buff_size, "%s", pathname);
1073 failure_start(pathname, line, "Can't read file: %s", pathname);
1086 failure_start(pathname, line, "Can't allocate memory");
1108 failure_start(pathname, line, "Can't allocate memory");
1153 failure_start(file, line, "File doesn't match: %s", pathname);
1058 assertion_file_contains_lines_any_order(const char *file, int line, const char *pathname, const char *lines[]) argument
1173 assertion_file_contains_no_invalid_strings(const char *file, int line, const char *pathname, const char *strings[]) argument
1274 assertion_file_time(const char *file, int line, const char *pathname, long t, long nsec, char type, int recent) argument
1380 assertion_file_atime(const char *file, int line, const char *pathname, long t, long nsec) argument
1388 assertion_file_atime_recent(const char *file, int line, const char *pathname) argument
1395 assertion_file_birthtime(const char *file, int line, const char *pathname, long t, long nsec) argument
1403 assertion_file_birthtime_recent(const char *file, int line, const char *pathname) argument
1411 assertion_file_mode(const char *file, int line, const char *pathname, int expected_mode) argument
1440 assertion_file_mtime(const char *file, int line, const char *pathname, long t, long nsec) argument
1448 assertion_file_mtime_recent(const char *file, int line, const char *pathname) argument
1455 assertion_file_nlinks(const char *file, int line, const char *pathname, int nlinks) argument
1487 assertion_file_size(const char *file, int line, const char *pathname, long size) argument
1516 assertion_is_dir(const char *file, int line, const char *pathname, int mode) argument
1554 assertion_is_reg(const char *file, int line, const char *pathname, int mode) argument
1587 is_symlink(const char *file, int line, const char *pathname, const char *contents) argument
1797 assertion_utimes(const char *file, int line, const char *pathname, long at, long at_nsec, long mt, long mt_nsec) argument
1901 assertion_nodump(const char *file, int line, const char *pathname) argument
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dzed-functions.sh99 # lockfile: pathname of the lock file; the lock will be stored in
100 # ZED_LOCKDIR unless the pathname contains a "/".
142 # lockfile: pathname of the lock file
172 # zed_notify (subject, pathname)
178 # pathname: pathname containing the notification message (OPTIONAL)
188 local pathname="$2"
192 zed_notify_email "${subject}" "${pathname}"; rv=$?
196 zed_notify_pushbullet "${subject}" "${pathname}"; rv=$?
200 zed_notify_slack_webhook "${subject}" "${pathname}"; r
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_nolibc.cpp28 bool CreateDir(const char *pathname) { return false; } argument
/freebsd-current/contrib/libarchive/tar/test/
H A Dtest_option_fflags.c32 clear_fflags(const char *pathname) argument
35 chflags(pathname, 0);
40 fd = open(pathname, O_RDONLY | O_NONBLOCK);
51 (void)pathname; /* UNUSED */
/freebsd-current/contrib/libarchive/test_utils/
H A Dtest_common.h161 #define assertChmod(pathname, mode) \
162 assertion_chmod(__FILE__, __LINE__, pathname, mode)
189 #define assertEmptyFile(pathname) \
190 assertion_empty_file(__FILE__, __LINE__, (pathname))
192 #define assertNonEmptyFile(pathname) \
193 assertion_non_empty_file(__FILE__, __LINE__, (pathname))
194 #define assertFileAtime(pathname, sec, nsec) \
195 assertion_file_atime(__FILE__, __LINE__, pathname, sec, nsec)
196 #define assertFileAtimeRecent(pathname) \
197 assertion_file_atime_recent(__FILE__, __LINE__, pathname)
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/
H A Dzfs_ids_to_path.c84 char pathname[PATH_MAX * 2]; local
86 zpool_obj_to_path_ds(pool, objset, object, pathname,
87 sizeof (pathname));
89 zpool_obj_to_path(pool, objset, object, pathname,
90 sizeof (pathname));
92 printf("%s\n", pathname);
/freebsd-current/contrib/libarchive/libarchive_fe/
H A Dline_reader.c51 char *pathname; member in struct:lafe_line_reader
57 lafe_line_reader(const char *pathname, int nullSeparator) argument
63 lafe_errc(1, ENOMEM, "Can't open %s", pathname);
66 lr->pathname = strdup(pathname);
68 if (strcmp(pathname, "-") == 0)
71 lr->f = fopen(pathname, "r");
73 lafe_errc(1, errno, "Couldn't open %s", pathname);
128 "Line too long in %s", lr->pathname);
137 "Line too long in %s", lr->pathname);
[all...]
/freebsd-current/contrib/mtree/
H A Dexcludes.c62 int pathname; member in struct:exclude
96 e->pathname = 1;
98 e->pathname = 0;
114 if ((e->pathname && MATCH(e->glob, path))
/freebsd-current/contrib/bmake/
H A Dtrace.c67 Trace_Init(const char *pathname) argument
69 if (pathname != NULL) {
79 trfile = fopen(pathname, "a");
H A Dstr.h201 Substring_Dirname(Substring pathname) argument
205 for (p = pathname.end; p != pathname.start; p--)
207 return Substring_Init(pathname.start, p - 1);
212 Substring_Basename(Substring pathname) argument
216 for (p = pathname.end; p != pathname.start; p--)
218 return Substring_Init(p, pathname.end);
219 return pathname;
/freebsd-current/contrib/capsicum-test/
H A Dcapsicum-test.cc32 std::string pathname(p);
33 if (tmp_paths.find(pathname) == tmp_paths.end()) {
34 std::string fullname = tmpdir + "/" + pathname;
35 tmp_paths[pathname] = fullname;
37 return tmp_paths[pathname].c_str();
/freebsd-current/contrib/less/
H A Dlesskey.c145 char *pathname; local
147 pathname = ecalloc(strlen(dirname) + strlen(filename) + 2, sizeof(char));
148 strcpy(pathname, dirname);
149 strcat(pathname, PATHNAME_SEP);
150 strcat(pathname, filename);
151 return (pathname);
160 char *pathname; local
163 pathname = mkpathname(p, filename);
166 pathname = mkpathname(p, filename);
171 pathname
[all...]
H A Dfilename.c212 * Return a pathname that points to a specified file in a specified directory.
217 char *pathname; local
224 * Construct the full pathname.
227 pathname = (char *) calloc(len, sizeof(char));
228 if (pathname == NULL)
230 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename);
236 f = open(pathname, OPEN_READ);
239 free(pathname);
240 pathname = NULL;
246 return (pathname);
254 char *pathname; local
[all...]
/freebsd-current/contrib/sendmail/src/
H A Dmci.c1155 ** Recursively find all the mci host files in `pathname'. Default to
1157 ** Call (*action)(pathname, host) for each file found.
1167 ** pathname -- root of tree. If null, use main host status
1178 mci_traverse_persistent(action, pathname)
1180 char *pathname;
1186 if (pathname == NULL)
1187 pathname = HostStatDir;
1188 if (pathname == NULL)
1192 sm_dprintf("mci_traverse: pathname is %s\n", pathname);
[all...]
/freebsd-current/contrib/libarchive/unzip/
H A Dbsdunzip.c349 * Verify that a given pathname is in the include list and not in the
353 accept_pathname(const char *pathname) argument
356 if (!STAILQ_EMPTY(&include) && !match_pattern(&include, pathname))
358 if (!STAILQ_EMPTY(&exclude) && match_pattern(&exclude, pathname))
558 extract2fd(struct archive *a, char *pathname, int fd) argument
583 error("write('%s')", pathname);
610 error("write('%s')", pathname);
620 " heuristic", pathname);
633 error("write('%s')", pathname);
790 char *pathname, *realpathnam local
858 char *pathname; local
[all...]
/freebsd-current/contrib/ntp/sntp/tests/
H A DfileHandlingTest.c33 const char * pathname
42 any.ccp = pathname;
/freebsd-current/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-filepath.h58 // FilePath - a class for file and directory pathname manipulation which
59 // handles platform-specific conventions (like the pathname separator).
74 explicit FilePath(const std::string& pathname) : pathname_(pathname) { argument
105 // Returns a pathname for a file that does not currently exist. The pathname
108 // already exists. The number will be incremented until a pathname is found
163 // Returns true if pathname describes a directory in the file-system
172 // Returns true if pathname describes a root directory. (Windows has one
176 // Returns true if pathname describe
[all...]
/freebsd-current/tests/sys/aio/
H A Daio_kqueue_test.c59 char *file, pathname[sizeof(PATH_TEMPLATE)+1]; local
90 strcpy(pathname, PATH_TEMPLATE);
91 fd = mkstemp(pathname);
92 file = pathname;
226 unlink(pathname);
/freebsd-current/bin/getfacl/
H A Dgetfacl.c172 char *p, pathname[PATH_MAX]; local
175 while (fgets(pathname, (int)sizeof(pathname), stdin)) {
176 if ((p = strchr(pathname, '\n')) != NULL)
178 if (print_acl(pathname, type, hflag, iflag, nflag,
/freebsd-current/tools/test/stress2/misc/
H A Dtmpfs7.sh111 int make_unix_sockaddr(const char *pathname, struct sockaddr_un *sa) {
114 if (strlen(pathname) + 1 > sizeof(sa->sun_path)) {
115 // fprintf(stderr, "%s: pathname too long (max %lu)\n",
116 // pathname, sizeof(sa->sun_path));
120 strcpy(sa->sun_path, pathname);
222 int make_unix_sockaddr(const char *pathname, struct sockaddr_un *sa);

Completed in 227 milliseconds

1234567