| /netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/gtk/ |
| 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/ |
| 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/ |
| 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 …]
|
| 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()
|
| 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()
|
| D | tpl_mpfr.c | 32 datafile_context->pathname, datafile_context->line_number); in tpl_read_mpfr_prec() 41 datafile_context->pathname, datafile_context->line_number); in tpl_read_mpfr_prec() 55 datafile_context->pathname, datafile_context->line_number); in tpl_read_mpfr_mantissa() 62 datafile_context->pathname, datafile_context->line_number); in tpl_read_mpfr_mantissa() 109 datafile_context->pathname, in tpl_read_mpfr_rnd() 119 datafile_context->pathname, datafile_context->line_number); in tpl_read_mpfr_rnd()
|
| /netbsd/src/usr.bin/unzip/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| 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 …]
|
| 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/gpl3/gcc/dist/gcc/ |
| 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/usr.bin/env/ |
| D | env.c | 198 char *pathname; in path_find() local 214 if (asprintf(&pathname, "%.*s/%s", (int)lp, p, name) == -1) { in path_find() 225 if (stat(pathname, &sb) == -1) { in path_find() 226 free(pathname); in path_find() 239 return (const char *)pathname; in path_find() 250 firstfound = pathname; in path_find() 252 free(pathname); in path_find()
|
| /netbsd/src/external/bsd/libarchive/dist/libarchive/ |
| D | archive_match.c | 65 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 …]
|
| /netbsd/src/external/bsd/pdisk/dist/ |
| 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.… 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… 204 validate.o: validate.c validate.h deblock_media.h pathname.h convert.h io.h errors.h
|
| /netbsd/src/usr.sbin/rpc.pcnfsd/ |
| 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 …]
|
| /netbsd/src/external/bsd/libbind/dist/dst/ |
| D | support.c | 309 char pathname[PATH_MAX]; in dst_s_fopen() local 311 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname)) in dst_s_fopen() 315 strcpy(pathname, dst_path); in dst_s_fopen() 316 strcat(pathname, filename); in dst_s_fopen() 318 strcpy(pathname, filename); in dst_s_fopen() 320 fp = fopen(pathname, mode); in dst_s_fopen() 322 chmod(pathname, perm); in dst_s_fopen()
|
| /netbsd/src/lib/libresolv/ |
| D | support.c | 312 char pathname[PATH_MAX]; in dst_s_fopen() local 314 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname)) in dst_s_fopen() 318 strcpy(pathname, dst_path); in dst_s_fopen() 319 strcat(pathname, filename); in dst_s_fopen() 321 strcpy(pathname, filename); in dst_s_fopen() 323 fp = fopen(pathname, mode); in dst_s_fopen() 325 chmod(pathname, (mode_t)perm); in dst_s_fopen()
|
| /netbsd/src/usr.bin/make/ |
| D | str.h | 201 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()
|
| D | util.c | 235 getwd(char *pathname) in getwd() argument 247 (void)sprintf(pathname, in getwd() 258 (void)sprintf(pathname, in getwd() 270 (void)strcpy(pathname, *pathptr != '/' ? "/" : pathptr); in getwd() 271 return pathname; in getwd() 276 (void)sprintf(pathname, in getwd() 282 (void)sprintf(pathname, in getwd() 304 (void)sprintf(pathname, in getwd() 317 (void)sprintf(pathname, in getwd()
|
| /netbsd/src/external/gpl3/gcc/dist/contrib/ |
| D | update-copyright.py | 298 pathname = os.path.join (dir, filename) 305 self.errors.report (pathname, 339 self.errors.report (pathname, 'missing copyright holder') 343 self.errors.report (pathname, 367 self.errors.report (pathname, str (e)) 387 def guess_encoding (self, pathname): argument 390 open(pathname, 'r', encoding=encoding).read() 397 pathname = os.path.join (dir, filename) 401 os.remove (pathname) 410 encoding = self.guess_encoding(pathname) [all …]
|
| /netbsd/src/external/bsd/libarchive/dist/tar/test/ |
| D | test_option_fflags.c | 14 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()
|