| /netbsd-src/crypto/external/bsd/openssl.old/dist/fuzz/ |
| H A D | test-corpus.c | 37 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 …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/fuzz/ |
| H A D | test-corpus.c | 37 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 …]
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/gtk/ |
| H A D | support.c | 78 gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data, in find_pixmap_file() local 80 if (g_file_test (pathname, G_FILE_TEST_EXISTS)) in find_pixmap_file() 81 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() 107 pixmap = gtk_image_new_from_file (pathname); in create_pixmap() 108 g_free (pathname); in create_pixmap() 116 gchar *pathname = NULL; in create_pixbuf() local [all …]
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/test/ |
| H A D | test_read_format_isojoliet_long.c | 61 char pathname[104]; in DEFINE_TEST() local 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() 112 pathname[100] = '1'; in DEFINE_TEST() 113 pathname[101] = '2'; in DEFINE_TEST() 114 pathname[102] = '3'; in DEFINE_TEST() [all …]
|
| /netbsd-src/external/lgpl3/mpc/dist/tests/ |
| H A D | read_data.c | 25 char *pathname; variable 55 pathname = (char *) malloc ((strlen (src_dir)) + strlen (file_name) + 2); in open_data_file() 56 if (pathname == NULL) in open_data_file() 61 sprintf (pathname, "%s/%s", src_dir, file_name); in open_data_file() 62 fp = fopen (pathname, "r"); in open_data_file() 65 fprintf (stderr, "Unable to open %s\n", pathname); in open_data_file() 75 free (pathname); in close_data_file() 175 name, pathname, line_number); in read_string() 204 nextchar, pathname, line_number); in read_ternary() 234 nextchar, pathname, line_number); in read_mpfr_rounding_mode() [all …]
|
| H A D | open_datafile.c | 39 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()
|
| H A D | tpl_native.c | 35 datafile_context->pathname, datafile_context->line_number); in tpl_read_int() 43 name, datafile_context->pathname, datafile_context->line_number); in tpl_read_int() 67 datafile_context->pathname, datafile_context->line_number); in tpl_read_ui() 75 datafile_context->pathname, datafile_context->line_number); in tpl_read_ui() 100 datafile_context->pathname, datafile_context->line_number); in tpl_read_si() 108 datafile_context->pathname, datafile_context->line_number); in tpl_read_si()
|
| /netbsd-src/usr.bin/unzip/ |
| H A D | unzip.c | 314 accept_pathname(const char *pathname) in accept_pathname() argument 317 if (!STAILQ_EMPTY(&include) && !match_pattern(&include, pathname)) in accept_pathname() 319 if (!STAILQ_EMPTY(&exclude) && match_pattern(&exclude, pathname)) in accept_pathname() 511 extract2fd(struct archive *a, char *pathname, int fd) in extract2fd() argument 536 error("write('%s')", pathname); in extract2fd() 563 error("write('%s')", pathname); in extract2fd() 573 " heuristic", pathname); in extract2fd() 586 error("write('%s')", pathname); in extract2fd() 702 char *pathname, *realpathname; in extract() local 706 pathname = pathdup(archive_entry_pathname(e)); in extract() [all …]
|
| /netbsd-src/libexec/ld.elf_so/ |
| H A D | search.c | 72 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() 92 memcpy(pathname + dirlen + 1, name, namelen); 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 [all …]
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive_fe/ |
| H A D | line_reader.c | 51 char *pathname; member 57 lafe_line_reader(const char *pathname, int nullSeparator) in lafe_line_reader() argument 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() 151 lafe_errc(1, errno, "Can't read %s", lr->pathname); in lafe_line_reader_next() [all …]
|
| /netbsd-src/libexec/getNAME/ |
| H A D | getNAME.c | 121 getfrom(char *pathname) in getfrom() argument 127 if (freopen(pathname, "r", stdin) == 0) { in getfrom() 128 warn("Cannot open `%s'", pathname); in getfrom() 131 if ((name = strrchr(pathname, '/')) != NULL) in getfrom() 134 name = pathname; in getfrom() 138 (void)printf("%-60s\tUNKNOWN\n", 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 [all …]
|
| /netbsd-src/usr.bin/mail/ |
| H A D | mime_detach.c | 95 detach_get_fname(char *prompt, char *pathname) in detach_get_fname() argument 100 fname = my_gets(&elm.filec, prompt, pathname); in detach_get_fname() 107 pathname = savestr(fname); /* save this or it gets trashed */ 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 [all …]
|
| /netbsd-src/crypto/external/bsd/libsaslc/dist/src/ |
| H A D | saslc.c | 97 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-src/external/bsd/less/dist/ |
| H A D | lesskey.c | 147 char *pathname; in mkpathname() local 149 pathname = ecalloc(strlen(dirname) + strlen(filename) + 2, sizeof(char)); in mkpathname() 150 strcpy(pathname, dirname); in mkpathname() 151 strcat(pathname, PATHNAME_SEP); in mkpathname() 152 strcat(pathname, filename); in mkpathname() 153 return (pathname); in mkpathname() 162 char *pathname; in homefile() local 165 pathname = mkpathname(p, filename); in homefile() 168 pathname = mkpathname(p, filename); in homefile() 173 pathname = mkpathname(".", filename); in homefile() [all …]
|
| H A D | filename.c | 219 char *pathname; in dirfile() local 229 pathname = (char *) calloc(len, sizeof(char)); in dirfile() 230 if (pathname == NULL) in dirfile() 232 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename); in dirfile() 238 f = open(pathname, OPEN_READ); in dirfile() 241 free(pathname); in dirfile() 242 pathname = NULL; in dirfile() 248 return (pathname); in dirfile() 256 char *pathname; in homefile() local 259 pathname = dirfile(lgetenv("HOME"), filename, 1); in homefile() [all …]
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Bin/ |
| H A D | diskhits | 50 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 D | rfileio.d | 52 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);
|
| H A D | opensnoop | 80 opt_zone=0; opt_cwd=0; opt_failonly=0; opt_err=0; filter=0; pathname=. 92 f) opt_file=1; pathname=$OPTARG ;; 100 USAGE: opensnoop [-a|-A|-ceghsvxZ] [-f pathname] 112 -f pathname # pathname name to snoop 153 inline string PATHNAME = "'$pathname'";
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Disk/ |
| H A D | diskhits | 50 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-src/external/gpl3/gcc/dist/gcc/ |
| H A D | genmddeps.cc | 30 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-src/external/gpl3/gcc.old/dist/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() 61 printf (" \\\n\t%s", d->pathname); in main() 67 printf ("\n%s:\n", d->pathname); in main()
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/ |
| H A D | path.cc | 341 const auto& pathname = _M_pathname; in _M_split_cmpts() local 343 if (pathname.empty()) in _M_split_cmpts() 349 bool saw_sep_last = _S_is_dir_sep(pathname[0]); 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() 388 while (pos < len && !_S_is_dir_sep(pathname[pos])) in _M_split_cmpts() 415 else if (len > 1 && pathname[1] == L':') in _M_split_cmpts() [all …]
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/FS/ |
| H A D | rfileio.d | 52 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-src/external/bsd/pdisk/dist/ |
| H A D | makefile | 74 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
|
| /netbsd-src/usr.sbin/rpc.pcnfsd/ |
| H A D | pcnfsd_print.c | 92 char pathname[MAXPATHLEN]; variable 162 *sp = &pathname[0]; in pr_init() 163 pathname[0] = '\0'; in pr_init() 180 (void) snprintf(pathname, sizeof(pathname), "%s/%s", sp_name, sys); in pr_init() 182 rc = mkdir(pathname, dir_mode); /* DON'T ignore this return code */ in pr_init() 188 if (stat(pathname, &statbuf) || !S_ISDIR(statbuf.st_mode)) { in pr_init() 193 pathname); in pr_init() 195 pathname[0] = '\0'; /* null to tell client bad vibes */ in pr_init() 200 pathname[0] = '\0'; /* null to tell client bad vibes */ in pr_init() 228 (void) snprintf(pathname, sizeof(pathname), "%s/%s/%s", sp_name, in pr_start2() [all …]
|