Home
last modified time | relevance | path

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

12345678910>>...30

/netbsd/external/bsd/libarchive/dist/test_utils/
H A Dtest_common.h190 #define assertEmptyFile(pathname) \ argument
193 #define assertNonEmptyFile(pathname) \ argument
197 #define assertFileAtimeRecent(pathname) \ argument
201 #define assertFileBirthtimeRecent(pathname) \ argument
204 #define assertFileExists(pathname) \ argument
207 #define assertFileNotExists(pathname) \ argument
217 #define assertFileMtimeRecent(pathname) \ argument
221 #define assertFileSize(pathname, size) \ argument
223 #define assertFileMode(pathname, mode) \ argument
229 #define assertIsDir(pathname, mode) \ argument
[all …]
H A Dtest_main.c592 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 …]
/netbsd/crypto/external/bsd/openssl.old/dist/fuzz/
H A Dtest-corpus.c37 static void testfile(const char *pathname) in testfile() argument
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()
87 pathname[dirname_len] = '\0'; in main()
90 testfile(pathname); in main()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/fuzz/
H A Dtest-corpus.c37 static void testfile(const char *pathname) in testfile() argument
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()
87 pathname[dirname_len] = '\0'; in main()
90 testfile(pathname); in main()
[all …]
/netbsd/crypto/external/cpl/trousers/dist/src/tspi/gtk/
H A Dsupport.c81 return pathname; in find_pixmap_file()
82 g_free (pathname); in find_pixmap_file()
93 gchar *pathname = NULL; in create_pixmap() local
99 pathname = find_pixmap_file (filename); in create_pixmap()
101 if (!pathname) in create_pixmap()
108 g_free (pathname); in create_pixmap()
116 gchar *pathname = NULL; in create_pixbuf() local
123 pathname = find_pixmap_file (filename); in create_pixbuf()
125 if (!pathname) in create_pixbuf()
135 pathname, error->message); in create_pixbuf()
[all …]
/netbsd/external/lgpl3/mpc/dist/tests/
H A Dread_data.c25 char *pathname; variable
56 if (pathname == NULL) in open_data_file()
62 fp = fopen (pathname, "r"); in open_data_file()
75 free (pathname); in close_data_file()
175 name, pathname, line_number); in read_string()
242 pathname, line_number); in read_mpfr_rounding_mode()
266 pathname, line_number); in read_int()
290 pathname, line_number); in read_mpfr_prec()
299 pathname, line_number); in read_mpfr_prec()
313 pathname, line_number); in read_mpfr_mantissa()
[all …]
H A Dopen_datafile.c39 datafile_context->pathname = in open_datafile()
41 if (datafile_context->pathname == NULL) in open_datafile()
46 sprintf (datafile_context->pathname, "%s/%s", src_dir, data_filename); in open_datafile()
47 datafile_context->fd = fopen (datafile_context->pathname, "r"); in open_datafile()
50 fprintf (stderr, "Unable to open %s\n", datafile_context->pathname); in open_datafile()
/netbsd/usr.bin/unzip/
H A Dunzip.c710 if (pathname[0] == '/' || in extract()
715 free(pathname); in extract()
723 free(pathname); in extract()
730 free(pathname); in extract()
737 free(pathname); in extract()
760 free(pathname); in extract()
766 char *pathname; in extract_stdout() local
776 free(pathname); in extract_stdout()
783 free(pathname); in extract_stdout()
790 free(pathname); in extract_stdout()
[all …]
/netbsd/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_read_format_isojoliet_long.c62 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 …]
/netbsd/libexec/ld.elf_so/
H A Dsearch.c72 char pathname[MAXPATHLEN]; in _rtld_search_library_path() local
78 if (pathnamelen >= sizeof(pathname)) in _rtld_search_library_path()
90 memcpy(pathname, dir, dirlen); in _rtld_search_library_path()
91 pathname[dirlen] = '/'; in _rtld_search_library_path()
93 pathname[pathnamelen] = '\0'; in _rtld_search_library_path()
95 dbg((" Trying \"%s\"", pathname)); in _rtld_search_library_path()
96 obj = _rtld_load_object(pathname, flags); in _rtld_search_library_path()
102 path->sp_path = xstrdup(pathname); in _rtld_search_library_path()
123 const char *pathname; in _rtld_load_library() local
134 pathname = name; in _rtld_load_library()
[all …]
/netbsd/external/bsd/libarchive/dist/libarchive_fe/
H A Dline_reader.c53 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 …]
/netbsd/libexec/getNAME/
H A DgetNAME.c121 getfrom(char *pathname) in getfrom() argument
127 if (freopen(pathname, "r", stdin) == 0) { in getfrom()
128 warn("Cannot open `%s'", pathname); in getfrom()
134 name = pathname; in getfrom()
141 pathname); in getfrom()
150 oldman(pathname, name); in getfrom()
154 newman(pathname, name); in getfrom()
161 oldman(char *pathname, char *name) in oldman() argument
170 (void)printf("%-60s\tOLD\n", pathname); in oldman()
281 newman(char *pathname, char *name) in newman() argument
[all …]
/netbsd/usr.bin/mail/
H A Dmime_detach.c95 detach_get_fname(char *prompt, char *pathname) in detach_get_fname() argument
100 fname = my_gets(&elm.filec, prompt, pathname); in detach_get_fname()
110 (void)printf("%s%s\n", prompt, pathname); in detach_get_fname()
112 return pathname; in detach_get_fname()
179 char *pathname; in detach_open_target() local
196 (void)sasprintf(&pathname, "%s/%s", mip->mi_detachdir, in detach_open_target()
202 (void)sasprintf(&pathname, "%s/msg-%s.part-%s.%s", in detach_open_target()
219 if ((fname = detach_get_fname(prompt, pathname)) == NULL) in detach_open_target()
254 char *pathname; in mime_detach_parts() local
263 if ((pathname = detach_open_target(mip)) == NULL) in mime_detach_parts()
[all …]
/netbsd/external/bsd/less/dist/
H A Dfilename.c236 char *pathname; local
258 free(pathname);
259 pathname = NULL;
265 return (pathname);
282 return (pathname);
289 return (pathname);
300 *pathname = '\0';
308 return (pathname);
309 free(pathname);
696 char *pathname; local
[all …]
/netbsd/crypto/external/bsd/libsaslc/dist/src/
H A Dsaslc.c97 saslc_init(saslc_t *ctx, const char *appname, const char *pathname) in saslc_init() argument
114 if (pathname != NULL && *pathname != '\0') { in saslc_init()
115 if ((ctx->pathname = strdup(pathname)) == NULL) { in saslc_init()
137 if (ctx->pathname != NULL) { in saslc_init()
138 free(ctx->pathname); in saslc_init()
139 ctx->pathname = NULL; in saslc_init()
/netbsd/external/cddl/dtracetoolkit/dist/Bin/
H A Ddiskhits50 USAGE: diskhits pathname
64 pathname=$1
65 if [[ ! -e $pathname ]]; then
66 print "ERROR2: file $pathname not found" >&2
72 set -- `ls -l $pathname`
85 inline string PATHNAME = "'$pathname'";
H A Drfileio.d52 self->pathname = cleanpath(args[0]->v_path);
53 @rio[self->pathname, "logical"] = count();
62 @rbytes[self->pathname, "logical"] =
66 self->pathname = 0;
72 @rio[self->pathname, "physical"] = count();
73 @rbytes[self->pathname, "physical"] = sum(args[0]->b_bcount);
/netbsd/external/cddl/dtracetoolkit/dist/Disk/
H A Ddiskhits50 USAGE: diskhits pathname
64 pathname=$1
65 if [[ ! -e $pathname ]]; then
66 print "ERROR2: file $pathname not found" >&2
72 set -- `ls -l $pathname`
85 inline string PATHNAME = "'$pathname'";
/netbsd/external/gpl3/gcc/dist/gcc/
H A Dgenmddeps.c30 const char *pathname; member
36 add_filedep (const char *pathname) in add_filedep() argument
39 n->pathname = pathname; in add_filedep()
61 printf (" \\\n\t%s", d->pathname); in main()
67 printf ("\n%s:\n", d->pathname); in main()
H A Dgenmddeps.cc30 const char *pathname; member
36 add_filedep (const char *pathname) in add_filedep() argument
39 n->pathname = pathname; in add_filedep()
61 printf (" \\\n\t%s", d->pathname); in main()
67 printf ("\n%s:\n", d->pathname); in main()
/netbsd/external/gpl3/gcc.old/dist/gcc/
H A Dgenmddeps.c30 const char *pathname; member
36 add_filedep (const char *pathname) in add_filedep() argument
39 n->pathname = pathname; in add_filedep()
61 printf (" \\\n\t%s", d->pathname); in main()
67 printf ("\n%s:\n", d->pathname); in main()
/netbsd/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/
H A Dpath.cc341 const auto& pathname = _M_pathname; in _M_split_cmpts() local
343 if (pathname.empty()) in _M_split_cmpts()
351 for (value_type c : pathname) in _M_split_cmpts()
369 const size_t len = pathname.size(); in _M_split_cmpts()
372 if (_S_is_dir_sep(pathname[0])) in _M_split_cmpts()
375 if (len > 1 && pathname[1] == pathname[0]) in _M_split_cmpts()
384 if (!_S_is_dir_sep(pathname[2])) in _M_split_cmpts()
415 else if (len > 1 && pathname[1] == L':') in _M_split_cmpts()
432 for (; n < pathname.size() && !_S_is_dir_sep(pathname[n]); ++n) in _M_split_cmpts()
434 if (n == pathname.size()) in _M_split_cmpts()
[all …]
/netbsd/external/bsd/libarchive/dist/libarchive/
H A Darchive_match.c957 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 …]
/netbsd/external/cddl/dtracetoolkit/dist/FS/
H A Drfileio.d52 self->pathname = cleanpath(args[0]->v_path);
53 @rio[self->pathname, "logical"] = count();
62 @rbytes[self->pathname, "logical"] =
66 self->pathname = 0;
72 @rio[self->pathname, "physical"] = count();
73 @rbytes[self->pathname, "physical"] = sum(args[0]->b_bcount);
/netbsd/external/bsd/pdisk/dist/
H A Dmakefile74 pathname.c \
75 pathname.h \
94 pathname.o \
188 pathname.h: media.h
194 dump.o: dump.c dump.h pathname.h io.h errors.h
200 partition_map.o: partition_map.c partition_map.h pathname.h deblock_media.h io.h convert.h util.h e…
201 pathname.o: pathname.c pathname.h file_media.h
202 pdisk.o: pdisk.c pdisk.h io.h partition_map.h pathname.h errors.h dump.h validate.h version.h util.h
204 validate.o: validate.c validate.h deblock_media.h pathname.h convert.h io.h errors.h

12345678910>>...30