/dragonfly/contrib/pam_passwdqc/ |
H A D | passwdqc_load.c | 22 static char *mkreason(const char *what, const char *pathname, in mkreason() argument 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() 117 *reason = mkreason("Error opening", pathname, 0, in passwdqc_params_load() [all …]
|
/dragonfly/usr.bin/unzip/ |
H A D | unzip.c | 690 if (pathname[0] == '/' || in extract() 695 free(pathname); in extract() 703 free(pathname); in extract() 710 free(pathname); in extract() 717 free(pathname); in extract() 740 free(pathname); in extract() 746 char *pathname; in extract_stdout() local 756 free(pathname); in extract_stdout() 763 free(pathname); in extract_stdout() 770 free(pathname); in extract_stdout() [all …]
|
/dragonfly/contrib/libarchive/libarchive_fe/ |
H A D | line_reader.c | 53 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 …]
|
/dragonfly/contrib/less/ |
H A D | lesskey.c | 145 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 D | filename.c | 217 char *pathname; in dirfile() local 228 if (pathname == NULL) in dirfile() 239 free(pathname); in dirfile() 240 pathname = NULL; in dirfile() 246 return (pathname); in dirfile() 254 char *pathname; in homefile() local 259 return (pathname); in homefile() 264 return (pathname); in homefile() 273 *pathname = '\0'; in homefile() 281 return (pathname); in homefile() [all …]
|
/dragonfly/contrib/gcc-8.0/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()
|
H A D | read-md.c | 1062 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()
|
/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | genmddeps.c | 28 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 D | read-md.c | 879 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()
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_match.c | 957 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 …]
|
H A D | archive_write_set_format_ar.c | 153 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()
|
/dragonfly/contrib/zstd/programs/ |
H A D | util.c | 719 assert(pathname != NULL); in convertPathnameToDirName() 722 len = strlen(pathname); in convertPathnameToDirName() 737 pathname[0] = '.'; in convertPathnameToDirName() 738 pathname[1] = '\0'; in convertPathnameToDirName() 749 return pathname + 1; in trimLeadingRootChar() 750 return pathname; in trimLeadingRootChar() 757 if ((pathname[0] == '.') && (pathname[1] == PATH_SEP)) in trimLeadingCurrentDirConst() 758 return pathname + 2; in trimLeadingCurrentDirConst() 759 return pathname; in trimLeadingCurrentDirConst() 812 char* pathname = NULL; in UTIL_createMirroredDestDirName() local [all …]
|
/dragonfly/contrib/bmake/ |
H A D | str.h | 207 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 D | util.c | 234 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 D | trace.c | 67 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 D | dir.c | 415 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 …]
|
/dragonfly/sys/kern/ |
H A D | kern_linker.c | 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() 564 file->pathname = NULL; in linker_file_unload() 872 char *pathname; in sys_kldfind() local 894 if (pathname) in sys_kldfind() 895 kfree(pathname, M_TEMP); in sys_kldfind() 976 if ((error = copyout(lf->pathname, stat->pathname, namelen)) != 0) in sys_kldstat() 1519 char *pathname; in linker_load_module() local 1534 pathname = NULL; in linker_load_module() [all …]
|
/dragonfly/usr.sbin/mtree/ |
H A D | excludes.c | 52 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()
|
/dragonfly/contrib/tcsh-6/ |
H A D | tc.os.c | 1216 xgetcwd(char *pathname, size_t pathlen) in xgetcwd() argument 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() 1285 return pathname; in xgetcwd() 1298 xgetcwd(char *pathname, size_t pathlen) in xgetcwd() argument 1310 (void) xsnprintf(pathname, pathlen, CGETS(23, 23, in xgetcwd() 1336 pathname[pathlen - 1] = '\0'; in xgetcwd() [all …]
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | remote-fileio.c | 591 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() 1062 ret = unlink (pathname); in remote_fileio_func_unlink() 1075 char *pathname; in remote_fileio_func_stat() local 1096 pathname = alloca (namelength); in remote_fileio_func_stat() [all …]
|
H A D | solib.c | 364 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 D | solist.h | 125 bfd *(*bfd_open) (char *pathname); 163 extern bfd *solib_bfd_fopen (char *pathname, int fd);
|
/dragonfly/libexec/ftpd/ |
H A D | ftpcmd.y | 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 534 | CWD check_login SP pathname CRLF 565 | MKD check_login_ro SP pathname CRLF 572 | RMD check_login_ro SP pathname CRLF 725 | SIZE check_login SP pathname CRLF 742 | MDTM check_login SP pathname CRLF [all …]
|
/dragonfly/contrib/gdb-7/gdb/common/ |
H A D | linux-osdata.c | 166 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 …]
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | client.c | 692 if (ISABSOLUTE (pathname)) return 0; in is_valid_client_path() 714 call_in_directory (const char *pathname, in call_in_directory() argument 751 assert (pathname); 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 2051 return !strchr (pathname, '/'); in is_cvsroot_level() 2102 if (is_cvsroot_level (pathname)) in handle_clear_static_directory() 2157 if (is_cvsroot_level (pathname)) in handle_set_sticky() 2196 if (is_cvsroot_level (pathname)) in handle_clear_sticky() [all …]
|