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

123456

/freebsd-11-stable/usr.bin/procstat/
H A Dprocstat_bin.c49 static char pathname[PATH_MAX]; local
55 if (procstat_getpathname(prstat, kipp, pathname, sizeof(pathname)) != 0)
57 if (strlen(pathname) == 0)
58 strcpy(pathname, "-");
65 xo_emit("{:pathname/%s}\n", pathname);
/freebsd-11-stable/contrib/gcc/
H A Dgenmddeps.c30 const char *pathname; member in struct:filedep
36 add_filedep (const char *pathname) argument
39 n->pathname = pathname;
60 printf (" \\\n\t%s", d->pathname);
66 printf ("\n%s:\n", d->pathname);
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_read_format_isojoliet_long.c62 char pathname[104]; local
71 pathname[i] = '0' + ((i+1) % 10);
98 pathname[100] = 'd';
99 pathname[101] = 'i';
100 pathname[102] = 'r';
101 pathname[103] = '\0';
103 assertEqualString(pathname, archive_entry_pathname(ae));
111 /* A regular file with two names (pathname gets returned
113 pathname[100] = '1';
114 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-11-stable/contrib/libarchive/tar/test/
H A Dtest_option_fflags.c33 clear_fflags(const char *pathname) argument
36 chflags(pathname, 0);
41 fd = open(pathname, O_RDONLY | O_NONBLOCK);
52 (void)pathname; /* UNUSED */
/freebsd-11-stable/contrib/libarchive/test_utils/
H A Dtest_common.h173 #define assertChmod(pathname, mode) \
174 assertion_chmod(__FILE__, __LINE__, pathname, mode)
199 #define assertEmptyFile(pathname) \
200 assertion_empty_file(__FILE__, __LINE__, (pathname))
202 #define assertNonEmptyFile(pathname) \
203 assertion_non_empty_file(__FILE__, __LINE__, (pathname))
204 #define assertFileAtime(pathname, sec, nsec) \
205 assertion_file_atime(__FILE__, __LINE__, pathname, sec, nsec)
206 #define assertFileAtimeRecent(pathname) \
207 assertion_file_atime_recent(__FILE__, __LINE__, pathname)
[all...]
/freebsd-11-stable/contrib/bmake/
H A Dtrace.c78 Trace_Init(const char *pathname) argument
81 if (pathname != NULL) {
85 trfile = fopen(pathname, "a");
/freebsd-11-stable/contrib/libarchive/libarchive_fe/
H A Dline_reader.c53 char *pathname; member in struct:lafe_line_reader
59 lafe_line_reader(const char *pathname, int nullSeparator) argument
65 lafe_errc(1, ENOMEM, "Can't open %s", pathname);
68 lr->pathname = strdup(pathname);
70 if (strcmp(pathname, "-") == 0)
73 lr->f = fopen(pathname, "r");
75 lafe_errc(1, errno, "Couldn't open %s", pathname);
130 "Line too long in %s", lr->pathname);
139 "Line too long in %s", lr->pathname);
[all...]
/freebsd-11-stable/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-11-stable/usr.sbin/fmtree/
H A Dexcludes.c53 int pathname; member in struct:exclude
89 e->pathname = 1;
91 e->pathname = 0;
106 if ((e->pathname && MATCH(e->glob, path))
/freebsd-11-stable/usr.bin/unzip/
H A Dunzip.c296 * Verify that a given pathname is in the include list and not in the
300 accept_pathname(const char *pathname) argument
303 if (!STAILQ_EMPTY(&include) && !match_pattern(&include, pathname))
305 if (!STAILQ_EMPTY(&exclude) && match_pattern(&exclude, pathname))
498 extract2fd(struct archive *a, char *pathname, int fd) argument
523 error("write('%s')", pathname);
550 error("write('%s')", pathname);
560 " heuristic", pathname);
573 error("write('%s')", pathname);
684 char *pathname, *realpathnam local
748 char *pathname; local
[all...]
/freebsd-11-stable/contrib/sendmail/src/
H A Dmci.c1152 ** Recursively find all the mci host files in `pathname'. Default to
1154 ** Call (*action)(pathname, host) for each file found.
1164 ** pathname -- root of tree. If null, use main host status
1175 mci_traverse_persistent(action, pathname)
1177 char *pathname;
1183 if (pathname == NULL)
1184 pathname = HostStatDir;
1185 if (pathname == NULL)
1189 sm_dprintf("mci_traverse: pathname is %s\n", pathname);
[all...]
/freebsd-11-stable/contrib/less/
H A Dfilename.c216 * Return a pathname that points to a specified file in a specified directory.
224 char *pathname; local
231 * Construct the full pathname.
234 pathname = (char *) calloc(len, sizeof(char));
235 if (pathname == NULL)
237 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename);
241 f = open(pathname, OPEN_READ);
244 free(pathname);
245 pathname = NULL;
250 return (pathname);
260 char *pathname; local
[all...]
H A Dlesskey.c235 char *pathname; local
237 pathname = calloc(strlen(dirname) + strlen(filename) + 2, sizeof(char));
238 strcpy(pathname, dirname);
239 strcat(pathname, PATHNAME_SEP);
240 strcat(pathname, filename);
241 return (pathname);
252 char *pathname; local
255 pathname = mkpathname(p, filename);
258 pathname = mkpathname(p, filename);
263 pathname
[all...]
/freebsd-11-stable/contrib/apr-util/dbm/
H A Dapr_dbm.c194 const char *pathname,
203 rv = (vtable->open)(pdb, pathname, mode, perm, pool);
208 APU_DECLARE(apr_status_t) apr_dbm_open(apr_dbm_t **pdb, const char *pathname,
212 return apr_dbm_open_ex(pdb, DBM_NAME, pathname, mode, perm, pool);
274 const char *pathname,
282 (vtable->getusednames)(p, pathname, used1, used2);
289 const char *pathname,
293 apr_dbm_get_usednames_ex(p, DBM_NAME, pathname, used1, used2);
288 apr_dbm_get_usednames(apr_pool_t *p, const char *pathname, const char **used1, const char **used2) argument
H A Dapr_dbm_sdbm.c54 static apr_status_t vt_sdbm_open(apr_dbm_t **pdb, const char *pathname, argument
83 rv = apr_sdbm_open(&file, pathname, dbmode, perm, pool);
202 static void vt_sdbm_usednames(apr_pool_t *pool, const char *pathname, argument
205 *used1 = apr_pstrcat(pool, pathname, APR_SDBM_DIRFEXT, NULL);
206 *used2 = apr_pstrcat(pool, pathname, APR_SDBM_PAGFEXT, NULL);
H A Dapr_dbm_ndbm.c73 static apr_status_t vt_ndbm_open(apr_dbm_t **pdb, const char *pathname, argument
100 file = dbm_open(pathname, dbmode, apr_posix_perms2mode(perm));
217 static void vt_ndbm_usednames(apr_pool_t *pool, const char *pathname, argument
220 *used1 = apr_pstrdup(pool, pathname);
/freebsd-11-stable/contrib/apr-util/include/
H A Dapr_dbm.h191 * @param pathname The path name to generate used-names from.
192 * @param used1 The first pathname used by the apr_dbm implementation.
193 * @param used2 The second pathname used by apr_dbm. If only one file is
201 const char *pathname,
210 * @param pathname The path name to generate used-names from.
211 * @param used1 The first pathname used by the apr_dbm implementation.
212 * @param used2 The second pathname used by apr_dbm. If only one file is
218 const char *pathname,
/freebsd-11-stable/contrib/apr-util/include/private/
H A Dapr_dbm_private.h52 apr_status_t (*open)(apr_dbm_t **pdb, const char *pathname,
81 /** Get the names that the DBM will use for a given pathname. */
83 const char *pathname,
/freebsd-11-stable/contrib/ntp/sntp/tests/
H A DfileHandlingTest.c33 const char * pathname
42 any.ccp = pathname;
/freebsd-11-stable/tests/sys/aio/
H A Daio_kqueue_test.c61 char *file, pathname[sizeof(PATH_TEMPLATE)+1]; local
92 strcpy(pathname, PATH_TEMPLATE);
93 fd = mkstemp(pathname);
94 file = pathname;
222 unlink(pathname);
/freebsd-11-stable/contrib/apr/strings/
H A Dapr_cpystrn.c188 /* Filepath_name_get returns the final element of the pathname.
198 APR_DECLARE(const char *) apr_filepath_name_get(const char *pathname) argument
201 const char *s = strrchr(pathname, path_separator);
206 const char *s2 = strrchr(pathname, path_separator_win);
210 if (!s) s = strrchr(pathname, drive_separator_win);
213 return s ? ++s : pathname;
/freebsd-11-stable/usr.sbin/pmcstat/
H A Dpmcpl_gprof.c98 pmcstat_interned_string pgf_name; /* pathname of gmon.out file */
129 const char *pathname; local
132 pathname = pmcstat_string_unintern(pgf->pgf_name);
133 if ((fd = open(pathname, O_RDWR|O_NOFOLLOW|O_CREAT,
135 err(EX_OSERR, "ERROR: Cannot open \"%s\"", pathname);
170 err(EX_OSERR, "ERROR: Cannot write \"%s\"", pathname);
174 * Determine the full pathname of a gmon.out file for a given
205 const char *pathname; local
207 pathname = pmcstat_string_unintern(pgf->pgf_name);
210 if ((fd = open(pathname, O_RDW
240 const char *pathname; local
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_match.c66 struct archive_mstring pathname; member in struct:match_file
352 const char *pathname, int nullSeparator)
360 return add_pattern_from_file(a, &(a->exclusions), 1, pathname,
366 const wchar_t *pathname, int nullSeparator)
374 return add_pattern_from_file(a, &(a->exclusions), 0, pathname,
418 const char *pathname, int nullSeparator)
426 return add_pattern_from_file(a, &(a->inclusions), 1, pathname,
432 const wchar_t *pathname, int nullSeparator)
440 return add_pattern_from_file(a, &(a->inclusions), 0, pathname,
445 * Test functions for pathname pattern
351 archive_match_exclude_pattern_from_file(struct archive *_a, const char *pathname, int nullSeparator) argument
365 archive_match_exclude_pattern_from_file_w(struct archive *_a, const wchar_t *pathname, int nullSeparator) argument
417 archive_match_include_pattern_from_file(struct archive *_a, const char *pathname, int nullSeparator) argument
431 archive_match_include_pattern_from_file_w(struct archive *_a, const wchar_t *pathname, int nullSeparator) argument
592 add_pattern_from_file(struct archive_match *a, struct match_list *mlist, int mbs, const void *pathname, int nullSeparator) argument
711 path_excluded(struct archive_match *a, int mbs, const void *pathname) argument
956 archive_match_include_file_time(struct archive *_a, int flag, const char *pathname) argument
969 archive_match_include_file_time_w(struct archive *_a, int flag, const wchar_t *pathname) argument
1396 const void *pathname; local
1467 const void *pathname; local
[all...]
/freebsd-11-stable/usr.bin/xlint/xlint/
H A Dxlint.c597 char **args, *ofn, *p, *pathname; local
655 pathname = xmalloc(strlen(PATH_USRBIN) + sizeof ("/cc"));
656 (void)sprintf(pathname, "%s/cc", PATH_USRBIN);
657 appcstrg(&args, pathname);
659 pathname = strdup(getenv("CC"));
660 for (p = strtok(pathname, " \t"); p; p = strtok(NULL, " \t"))
678 runchild(pathname, args, cppout, cppoutfd);
679 free(pathname);
685 pathname = xmalloc(strlen(PATH_LIBEXEC) + sizeof ("/lint1") +
687 (void)sprintf(pathname, "
[all...]

Completed in 147 milliseconds

123456