Home
last modified time | relevance | path

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

12345

/dflybsd-src/contrib/pam_passwdqc/
H A Dpasswdqc_load.c22 static char *mkreason(const char *what, const char *pathname, in mkreason() argument
31 return concat(what, " \"", pathname, "\"", at_line, at_num, ": ", in mkreason()
37 const char *pathname) in parse_file() argument
48 *reason = mkreason("Error reading", pathname, in parse_file()
67 *reason = mkreason("Error loading", pathname, in parse_file()
75 *reason = mkreason("Error reading", pathname, 0, NULL); in parse_file()
93 const char *pathname) in passwdqc_params_load() argument
100 if (!(fp = fopen(pathname, "r"))) { in passwdqc_params_load()
101 *reason = mkreason("Error opening", pathname, 0, NULL); in passwdqc_params_load()
106 *reason = mkreason("Error stat", pathname, 0, NULL); in passwdqc_params_load()
[all …]
/dflybsd-src/usr.bin/unzip/
H A Dunzip.c298 accept_pathname(const char *pathname) in accept_pathname() argument
301 if (!STAILQ_EMPTY(&include) && !match_pattern(&include, pathname)) in accept_pathname()
303 if (!STAILQ_EMPTY(&exclude) && match_pattern(&exclude, pathname)) in accept_pathname()
496 extract2fd(struct archive *a, char *pathname, int fd) in extract2fd() argument
521 error("write('%s')", pathname); in extract2fd()
548 error("write('%s')", pathname); in extract2fd()
558 " heuristic", pathname); in extract2fd()
571 error("write('%s')", pathname); in extract2fd()
682 char *pathname, *realpathname; in extract() local
686 pathname = pathdup(archive_entry_pathname(e)); in extract()
[all …]
/dflybsd-src/contrib/libarchive/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 …]
/dflybsd-src/contrib/less/
H A Dlesskey.c145 char *pathname; in mkpathname() local
147 pathname = ecalloc(strlen(dirname) + strlen(filename) + 2, sizeof(char)); in mkpathname()
148 strcpy(pathname, dirname); in mkpathname()
149 strcat(pathname, PATHNAME_SEP); in mkpathname()
150 strcat(pathname, filename); in mkpathname()
151 return (pathname); in mkpathname()
160 char *pathname; in homefile() local
163 pathname = mkpathname(p, filename); in homefile()
166 pathname = mkpathname(p, filename); in homefile()
171 pathname = mkpathname(".", filename); in homefile()
[all …]
H A Dfilename.c242 char *pathname; in dirfile() local
252 pathname = (char *) calloc(len, sizeof(char)); in dirfile()
253 if (pathname == NULL) in dirfile()
255 SNPRINTF3(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename); in dirfile()
261 f = open(pathname, OPEN_READ); in dirfile()
264 free(pathname); in dirfile()
265 pathname = NULL; in dirfile()
271 return (pathname); in dirfile()
279 char *pathname; in homefile() local
282 pathname = dirfile(lgetenv("HOME"), filename, 1); in homefile()
[all …]
/dflybsd-src/contrib/gcc-4.7/gcc/
H A Dgenmddeps.c28 const char *pathname; member
34 add_filedep (const char *pathname) in add_filedep() argument
37 n->pathname = pathname; in add_filedep()
58 printf (" \\\n\t%s", d->pathname); in main()
64 printf ("\n%s:\n", d->pathname); in main()
H A Dread-md.c879 char *pathname; in handle_include() local
895 pathname = concat (stackp->fname, sep, filename, NULL); in handle_include()
896 input_file = fopen (pathname, "r"); in handle_include()
899 free (pathname); in handle_include()
908 pathname = concat (base_dir, filename, NULL); in handle_include()
910 pathname = xstrdup (filename); in handle_include()
911 input_file = fopen (pathname, "r"); in handle_include()
916 free (pathname); in handle_include()
929 include_callback (pathname); in handle_include()
932 read_md_filename = pathname; in handle_include()
/dflybsd-src/contrib/gcc-8.0/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 Dread-md.c1062 char *pathname; in handle_include() local
1078 pathname = concat (stackp->fname, sep, filename, NULL); in handle_include()
1079 input_file = fopen (pathname, "r"); in handle_include()
1082 free (pathname); in handle_include()
1091 pathname = concat (m_base_dir, filename, NULL); in handle_include()
1093 pathname = xstrdup (filename); in handle_include()
1094 input_file = fopen (pathname, "r"); in handle_include()
1099 free (pathname); in handle_include()
1113 include_callback (pathname); in handle_include()
1116 m_read_md_filename = pathname; in handle_include()
/dflybsd-src/contrib/libarchive/libarchive/
H A Darchive_match.c66 struct archive_mstring pathname; member
352 const char *pathname, int nullSeparator) in archive_match_exclude_pattern_from_file() argument
360 return add_pattern_from_file(a, &(a->exclusions), 1, pathname, in archive_match_exclude_pattern_from_file()
366 const wchar_t *pathname, int nullSeparator) in archive_match_exclude_pattern_from_file_w() argument
374 return add_pattern_from_file(a, &(a->exclusions), 0, pathname, in archive_match_exclude_pattern_from_file_w()
418 const char *pathname, int nullSeparator) in archive_match_include_pattern_from_file() argument
426 return add_pattern_from_file(a, &(a->inclusions), 1, pathname, in archive_match_include_pattern_from_file()
432 const wchar_t *pathname, int nullSeparator) in archive_match_include_pattern_from_file_w() argument
440 return add_pattern_from_file(a, &(a->inclusions), 0, pathname, in archive_match_include_pattern_from_file_w()
593 int mbs, const void *pathname, int nullSeparator) in add_pattern_from_file() argument
[all …]
H A Darchive_write_set_format_ar.c153 const char *pathname; in archive_write_ar_header() local
167 pathname = archive_entry_pathname(entry); in archive_write_ar_header()
168 if (pathname == NULL || *pathname == '\0') { in archive_write_ar_header()
186 if (strcmp(pathname, "/") == 0 ) { in archive_write_ar_header()
191 if (strcmp(pathname, "/SYM64/") == 0) { in archive_write_ar_header()
196 if (strcmp(pathname, "__.SYMDEF") == 0) { in archive_write_ar_header()
201 if (strcmp(pathname, "//") == 0) { in archive_write_ar_header()
219 if ((filename = ar_basename(pathname)) == NULL) { in archive_write_ar_header()
/dflybsd-src/contrib/zstd/programs/
H A Dutil.c671 static int pathnameHas2Dots(const char *pathname) in pathnameHas2Dots() argument
673 return NULL != strstr(pathname, ".."); in pathnameHas2Dots()
714 static void convertPathnameToDirName(char *pathname) in convertPathnameToDirName() argument
719 assert(pathname != NULL); in convertPathnameToDirName()
722 len = strlen(pathname); in convertPathnameToDirName()
724 while (pathname[len] == PATH_SEP) { in convertPathnameToDirName()
725 pathname[len] = '\0'; in convertPathnameToDirName()
735 pos = strrchr(pathname, PATH_SEP); in convertPathnameToDirName()
737 pathname[0] = '.'; in convertPathnameToDirName()
738 pathname[1] = '\0'; in convertPathnameToDirName()
[all …]
/dflybsd-src/contrib/bmake/
H A Dstr.h207 Substring_Dirname(Substring pathname) in Substring_Dirname() argument
211 for (p = pathname.end; p != pathname.start; p--) in Substring_Dirname()
213 return Substring_Init(pathname.start, p - 1); in Substring_Dirname()
218 Substring_Basename(Substring pathname) in Substring_Basename() argument
222 for (p = pathname.end; p != pathname.start; p--) in Substring_Basename()
224 return Substring_Init(p, pathname.end); in Substring_Basename()
225 return pathname; in Substring_Basename()
H A Dutil.c234 getwd(char *pathname) in getwd() argument
246 (void)sprintf(pathname, in getwd()
257 (void)sprintf(pathname, in getwd()
269 (void)strcpy(pathname, *pathptr != '/' ? "/" : pathptr); in getwd()
270 return pathname; in getwd()
275 (void)sprintf(pathname, in getwd()
281 (void)sprintf(pathname, in getwd()
303 (void)sprintf(pathname, in getwd()
316 (void)sprintf(pathname, in getwd()
H A Dtrace.c67 Trace_Init(const char *pathname) in Trace_Init() argument
69 if (pathname != NULL) { in Trace_Init()
79 trfile = fopen(pathname, "a"); in Trace_Init()
H A Ddir.c415 cached_stats(const char *pathname, struct cached_stat *out_cst, in cached_stats() argument
423 if (pathname == NULL || pathname[0] == '\0') in cached_stats()
426 cst = HashTable_FindValue(tbl, pathname); in cached_stats()
430 Targ_FmtTime(cst->cst_mtime), pathname); in cached_stats()
434 rc = (useLstat ? lstat : stat)(pathname, &sys_st); in cached_stats()
443 HashTable_Set(tbl, pathname, cst); in cached_stats()
451 Targ_FmtTime(sys_st.st_mtime), pathname); in cached_stats()
457 cached_stat(const char *pathname, struct cached_stat *cst) in cached_stat() argument
459 return cached_stats(pathname, cst, false, false); in cached_stat()
463 cached_lstat(const char *pathname, struct cached_stat *cst) in cached_lstat() argument
[all …]
/dflybsd-src/sys/kern/
H A Dkern_linker.c445 linker_make_file(const char* pathname, void* priv, struct linker_file_ops* ops) in linker_make_file() argument
450 filename = linker_basename(pathname); in linker_make_file()
452 filename, pathname)); in linker_make_file()
460 lf->pathname = linker_strdup(pathname); in linker_make_file()
562 if (file->pathname) { in linker_file_unload()
563 kfree(file->pathname, M_LINKER); in linker_file_unload()
564 file->pathname = NULL; in linker_file_unload()
872 char *pathname; in sys_kldfind() local
879 pathname = kmalloc(MAXPATHLEN, M_TEMP, M_WAITOK); in sys_kldfind()
880 if ((error = copyinstr(uap->file, pathname, MAXPATHLEN, NULL)) != 0) in sys_kldfind()
[all …]
/dflybsd-src/usr.sbin/mtree/
H A Dexcludes.c52 int pathname; member
86 e->pathname = 1; in read_excludes_file()
88 e->pathname = 0; in read_excludes_file()
104 if ((e->pathname && MATCH(e->glob, path)) in check_excludes()
/dflybsd-src/contrib/tcsh-6/
H A Dtc.os.c1216 xgetcwd(char *pathname, size_t pathlen) in xgetcwd() argument
1235 (void) xsnprintf(pathname, pathlen, CGETS(23, 24, in xgetcwd()
1242 (void) xsnprintf(pathname, pathlen, CGETS(23, 19, in xgetcwd()
1247 (void) xsnprintf(pathname, pathlen, CGETS(23, 20, in xgetcwd()
1253 (void) xsnprintf(pathname, pathlen, in xgetcwd()
1259 (void) xsnprintf(pathname, pathlen, in xgetcwd()
1274 (void) strncpy(pathname, "/", pathlen); in xgetcwd()
1276 (void) strncpy(pathname, pnptr, pathlen); in xgetcwd()
1277 pathname[pathlen - 1] = '\0'; in xgetcwd()
1279 (void) xsnprintf(pathname, MAXPATHLEN, CGETS(23, 22, in xgetcwd()
[all …]
/dflybsd-src/contrib/gdb-7/gdb/
H A Dremote-fileio.c591 char *pathname; in remote_fileio_func_open() local
616 pathname = alloca (length); in remote_fileio_func_open()
617 if (target_read_memory (ptrval, (gdb_byte *) pathname, length) != 0) in remote_fileio_func_open()
626 if (!stat (pathname, &st)) in remote_fileio_func_open()
642 fd = open (pathname, flags, mode); in remote_fileio_func_open()
1035 char *pathname; in remote_fileio_func_unlink() local
1046 pathname = alloca (length); in remote_fileio_func_unlink()
1047 if (target_read_memory (ptrval, (gdb_byte *) pathname, length) != 0) in remote_fileio_func_unlink()
1055 if (!stat (pathname, &st) && !S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode)) in remote_fileio_func_unlink()
1062 ret = unlink (pathname); in remote_fileio_func_unlink()
[all …]
H A Dsolib.c364 solib_bfd_fopen (char *pathname, int fd) in solib_bfd_fopen() argument
368 if (remote_filename_p (pathname)) in solib_bfd_fopen()
371 abfd = remote_bfd_open (pathname, gnutarget); in solib_bfd_fopen()
375 abfd = gdb_bfd_open (pathname, gnutarget, fd); in solib_bfd_fopen()
383 make_cleanup (xfree, pathname); in solib_bfd_fopen()
385 pathname, bfd_errmsg (bfd_get_error ())); in solib_bfd_fopen()
388 xfree (pathname); in solib_bfd_fopen()
396 solib_bfd_open (char *pathname) in solib_bfd_open() argument
404 found_pathname = solib_find (pathname, &found_file); in solib_bfd_open()
412 perror_with_name (pathname); in solib_bfd_open()
H A Dsolist.h125 bfd *(*bfd_open) (char *pathname);
163 extern bfd *solib_bfd_fopen (char *pathname, int fd);
/dflybsd-src/libexec/ftpd/
H A Dftpcmd.y140 %type <s> pathstring pathname password username
443 | RETR check_login SP pathname CRLF
453 | STOR check_login_ro SP pathname CRLF
460 | APPE check_login_ro SP pathname CRLF
489 | STAT check_login SP pathname CRLF
502 | DELE check_login_ro SP pathname CRLF
509 | RNTO check_login_ro SP pathname CRLF
534 | CWD check_login SP pathname CRLF
565 | MKD check_login_ro SP pathname CRLF
572 | RMD check_login_ro SP pathname CRLF
[all …]
/dflybsd-src/contrib/gdb-7/gdb/common/
H A Dlinux-osdata.c166 char *pathname = xstrprintf ("/proc/%lld/cmdline", pid); in commandline_from_pid() local
168 FILE *f = fopen (pathname, "r"); in commandline_from_pid()
214 xfree (pathname); in commandline_from_pid()
602 char *pathname; in linux_xfer_osdata_threads() local
606 pathname = xstrprintf ("/proc/%s/task", dp->d_name); in linux_xfer_osdata_threads()
611 dirp2 = opendir (pathname); in linux_xfer_osdata_threads()
646 xfree (pathname); in linux_xfer_osdata_threads()
715 char *pathname; in linux_xfer_osdata_fds() local
723 pathname = xstrprintf ("/proc/%s/fd", dp->d_name); in linux_xfer_osdata_fds()
724 dirp2 = opendir (pathname); in linux_xfer_osdata_fds()
[all …]
/dflybsd-src/contrib/cvs-1.12/src/
H A Dclient.c689 int is_valid_client_path (const char *pathname) in is_valid_client_path() argument
692 if (ISABSOLUTE (pathname)) return 0; in is_valid_client_path()
694 if (pathname_levels (pathname) == 0) return 1; in is_valid_client_path()
698 return walklist (uppaths, path_list_prefixed, (void *)pathname); in is_valid_client_path()
714 call_in_directory (const char *pathname, in call_in_directory() argument
751 assert (pathname); in call_in_directory()
782 short_pathname = xmalloc (strlen (pathname) + strlen (filename) + 5); in call_in_directory()
783 strcpy (short_pathname, pathname); in call_in_directory()
812 dir_name = xstrdup (pathname); in call_in_directory()
2046 is_cvsroot_level (char *pathname) in is_cvsroot_level() argument
[all …]

12345