| /mirbsd/src/usr.sbin/httpd/src/helpers/ |
| D | PrintPath | 22 pathname=$PATH 37 -p* ) pathname="`echo $args | sed 's/^..//'`" ;; 58 pathname=`echo -E $pathname | 67 pathname=`echo $pathname | 93 for path in $pathname
|
| /mirbsd/src/gnu/usr.sbin/sendmail/sendmail/ |
| D | mci.c | 1131 mci_traverse_persistent(action, pathname) 1133 char *pathname; variable 1139 if (pathname == NULL) 1140 pathname = HostStatDir; 1141 if (pathname == NULL) 1145 sm_dprintf("mci_traverse: pathname is %s\n", pathname); 1147 ret = stat(pathname, &statbuf); 1152 pathname, sm_errstring(errno)); 1166 if ((d = opendir(pathname)) == NULL) 1170 pathname, sm_errstring(errno)); [all …]
|
| /mirbsd/src/usr.bin/less/ |
| D | filename.c | 229 char *pathname; local 240 pathname = (char *) calloc(len, sizeof(char)); 241 if (pathname == NULL) 243 snprintf(pathname, len, "%s%s%s", dirname, PATHNAME_SEP, filename); 247 qpathname = shell_unquote(pathname); 251 free(pathname); 252 pathname = NULL; 258 return (pathname); 268 register char *pathname; local 273 pathname = dirfile(lgetenv("HOME"), filename); [all …]
|
| D | lesskey.c | 227 char *pathname; local 231 pathname = calloc(len, sizeof(char)); 232 strlcpy(pathname, dirname, len); 233 strlcat(pathname, PATHNAME_SEP, len); 234 strlcat(pathname, filename, len); 235 return (pathname); 246 char *pathname; local 249 pathname = mkpathname(p, filename); 252 pathname = mkpathname(p, filename); 257 pathname = mkpathname(".", filename); [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/os2/ |
| D | perlrexx.cmd | 16 pathname='perlrexx' 17 r = RxFuncAdd(perlf, pathname, perlf) 18 say "RxFuncAdd("perlf","pathname") -> "r 41 return pathname ': PERLEVAL('perlarg') =' tmp 45 pathname='perlrexx' 46 r = RxFuncAdd("PerlExportAll", pathname, "PERLEXPORTALL") 47 say "RxFuncAdd("'PerlExportAll'","pathname") -> "r 62 return pathname ': PERLEVAL('perlarg') =' tmp 66 …return pathname ': REXX->Perl interface not available; rc="'rc'", .rs="'.rs'", errstr="'errortext(… 68 /* return pathname ': REXX->Perl interface not available; rc="'rc'", .rs="'.rs'", errstr="'errorte…
|
| /mirbsd/src/usr.sbin/popa3d/ |
| D | virtual.c | 86 char *address, *pathname; in virtual_userpass() local 116 if (asprintf(&pathname, "%s/%s", VIRTUAL_HOME_PATH, address) == -1) in virtual_userpass() 119 if (lstat(pathname, &stat)) { in virtual_userpass() 124 free(pathname); in virtual_userpass() 129 free(pathname); in virtual_userpass() 134 free(pathname); in virtual_userpass() 136 if (asprintf(&pathname, "%s/%s/%s/%s", VIRTUAL_HOME_PATH, address, in virtual_userpass() 140 if ((fd = open(pathname, O_RDONLY)) < 0 && errno != ENOENT) { in virtual_userpass() 145 free(pathname); in virtual_userpass()
|
| D | mailbox.c | 338 char *pathname; in mailbox_open() local 344 if (asprintf(&pathname, "%s/%s", spool, mailbox) == -1) in mailbox_open() 347 if (lstat(pathname, &stat)) { in mailbox_open() 348 free(pathname); in mailbox_open() 353 free(pathname); in mailbox_open() 358 free(pathname); in mailbox_open() 362 mailbox_fd = open(pathname, O_RDWR | O_NOCTTY | O_NONBLOCK); in mailbox_open() 364 free(pathname); in mailbox_open()
|
| /mirbsd/src/usr.bin/make/ |
| D | util.c | 193 getwd(pathname) in getwd() argument 194 char *pathname; in getwd() 206 (void)snprintf(pathname, MAXPATHLEN, 217 (void)snprintf(pathname, MAXPATHLEN, 229 (void)strlcpy(pathname, *pathptr != '/' ? "/" : pathptr, MAXPATHLEN); 230 return pathname; 235 (void)snprintf(pathname, MAXPATHLEN, 241 (void)snprintf(pathname, MAXPATHLEN, 265 (void)snprintf(pathname, MAXPATHLEN, 278 (void)snprintf(pathname, MAXPATHLEN,
|
| /mirbsd/src/gnu/usr.bin/binutils/gdb/ |
| D | solib-aix5.c | 64 char *pathname; /* full pathname to object */ member 228 char *mapname, *pathname, *membername; in build_so_list_from_mapfile() local 249 pathname = ""; in build_so_list_from_mapfile() 254 pathname = mapbuf + prmap->pr_pathoff; in build_so_list_from_mapfile() 255 membername = pathname + strlen (pathname) + 1; in build_so_list_from_mapfile() 259 if (strcmp (pathname, sop->lm_info->pathname) == 0 in build_so_list_from_mapfile() 273 sop->lm_info->pathname = xstrdup (pathname); in build_so_list_from_mapfile() 274 make_cleanup (xfree, sop->lm_info->pathname); in build_so_list_from_mapfile() 278 strncpy (sop->so_name, pathname, SO_NAME_MAX_PATH_SIZE - 1); in build_so_list_from_mapfile() 342 symbol_file_command (sos->lm_info->pathname, from_tty); in open_symbol_file_object() [all …]
|
| D | remote-fileio.c | 595 char *pathname; in remote_fileio_func_open() local 620 pathname = alloca (length); in remote_fileio_func_open() 621 retlength = remote_read_bytes (ptrval, pathname, length); in remote_fileio_func_open() 631 if (!stat (pathname, &st)) in remote_fileio_func_open() 647 fd = open (pathname, flags, mode); in remote_fileio_func_open() 1025 char *pathname; in remote_fileio_func_unlink() local 1036 pathname = alloca (length); in remote_fileio_func_unlink() 1037 retlength = remote_read_bytes (ptrval, pathname, length); in remote_fileio_func_unlink() 1046 if (!stat (pathname, &st) && !S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode)) in remote_fileio_func_unlink() 1053 ret = unlink (pathname); in remote_fileio_func_unlink() [all …]
|
| D | auxv.c | 53 char *pathname; in procfs_xfer_auxv() local 60 pathname = xstrprintf ("/proc/%d/auxv", PIDGET (inferior_ptid)); in procfs_xfer_auxv() 61 fd = open (pathname, writebuf != NULL ? O_WRONLY : O_RDONLY); in procfs_xfer_auxv() 62 xfree (pathname); in procfs_xfer_auxv()
|
| D | procfs.c | 370 char pathname[MAX_PROC_NAME_SIZE]; /* Pathname to /proc entry */ member 489 open_with_retry (const char *pathname, int flags) in open_with_retry() argument 497 status = open (pathname, flags); in open_with_retry() 589 strcpy (tmp, pi->pathname); in open_procinfo_files() 640 if ((fd = open_with_retry (pi->pathname, O_RDWR)) == 0) in open_procinfo_files() 645 fd = open_with_retry (pi->pathname, O_RDWR); in open_procinfo_files() 711 sprintf (pi->pathname, MAIN_PROC_NAME_FMT, pid); in create_procinfo() 718 sprintf (pi->pathname, "/proc/%05d/lwp/%d", pid, tid); in create_procinfo() 720 sprintf (pi->pathname, MAIN_PROC_NAME_FMT, pid); in create_procinfo() 823 if (pi->pathname) in dead_procinfo() [all …]
|
| /mirbsd/src/libexec/ftpd/ |
| D | ftpcmd.y | 137 %type <s> pathstring pathname password username 348 | RETR check_login SP pathname CRLF 355 | STOR check_login SP pathname CRLF 362 | APPE check_login SP pathname CRLF 385 | LIST check_login SP pathname CRLF 392 | STAT check_login SP pathname CRLF 404 | DELE check_login SP pathname CRLF 411 | RNTO check_login SP pathname CRLF 436 | CWD check_login SP pathname CRLF 467 | MKD check_login SP pathname CRLF [all …]
|
| /mirbsd/src/gnu/usr.bin/texinfo/info/ |
| D | filesys.c | 454 filesys_read_info_file (char *pathname, long int *filesize, in filesys_read_info_file() argument 461 if (compressed_filename_p (pathname)) in filesys_read_info_file() 464 return (filesys_read_compressed (pathname, filesize)); in filesys_read_info_file() 472 descriptor = open (pathname, O_RDONLY | O_BINARY, 0666); in filesys_read_info_file() 516 filesys_read_compressed (char *pathname, long int *filesize) in filesys_read_compressed() argument 524 decompressor = filesys_decompressor_for_file (pathname); in filesys_read_compressed() 529 command = (char *)xmalloc (15 + strlen (pathname) + strlen (decompressor)); in filesys_read_compressed() 533 decompressor, STRIP_DOT_EXE ? ".exe" : "", pathname); in filesys_read_compressed()
|
| D | filesys.h | 55 extern char *filesys_read_info_file (char *pathname, long int *filesize, 58 extern char *filesys_read_compressed (char *pathname, long int *filesize);
|
| D | info-utils.c | 633 filename_non_directory (char *pathname) in filename_non_directory() argument 635 register char *filename = pathname + strlen (pathname); in filename_non_directory() 637 if (HAVE_DRIVE (pathname)) in filename_non_directory() 638 pathname += 2; in filename_non_directory() 640 while (filename > pathname && !IS_SLASH (filename[-1])) in filename_non_directory()
|
| /mirbsd/src/sys/nfs/ |
| D | nfs_boot.c | 267 char pathname[MAXPATHLEN]; local 278 error = bp_getfile(bpsin, key, sin, ndmntp->ndm_host, pathname, 289 error = md_mount(sin, pathname, ndmntp->ndm_fh); 308 for (sp = pathname; *sp && dp < endp;) 442 bp_getfile(bpsin, key, md_sin, serv_name, pathname, retries) in bp_getfile() argument 447 char *pathname; 492 m = xdr_string_decode(m, pathname, &path_len);
|
| /mirbsd/src/gnu/usr.sbin/sendmail/libsm/ |
| D | stdio.c | 472 sm_io_fopen(char *pathname, int flags, ...) in sm_io_fopen() argument 474 sm_io_fopen(pathname, flags, va_alist) in sm_io_fopen() 475 char *pathname; in sm_io_fopen() 511 fp->f_file = open(pathname, flags, mode);
|
| /mirbsd/src/gnu/usr.bin/binutils/bfd/ |
| D | archive.c | 1496 bfd_dont_truncate_arname (bfd *abfd, const char *pathname, char *arhdr) in bfd_dont_truncate_arname() argument 1510 bfd_bsd_truncate_arname (abfd, pathname, arhdr); in bfd_dont_truncate_arname() 1514 filename = normalize (abfd, pathname); in bfd_dont_truncate_arname() 1533 bfd_bsd_truncate_arname (bfd *abfd, const char *pathname, char *arhdr) in bfd_bsd_truncate_arname() argument 1537 const char *filename = strrchr (pathname, '/'); in bfd_bsd_truncate_arname() 1543 char *bslash = strrchr (pathname, '\\'); in bfd_bsd_truncate_arname() 1546 if (filename == NULL && pathname[0] != '\0' && pathname[1] == ':') in bfd_bsd_truncate_arname() 1547 filename = pathname + 1; in bfd_bsd_truncate_arname() 1552 filename = pathname; in bfd_bsd_truncate_arname() 1581 bfd_gnu_truncate_arname (bfd *abfd, const char *pathname, char *arhdr) in bfd_gnu_truncate_arname() argument [all …]
|
| /mirbsd/src/gnu/usr.bin/perl/mpeix/ |
| D | mpeix.c | 295 truncate(const char *pathname, off_t length) in truncate() argument 304 if ( (fd = open(pathname, O_WRONLY | O_TRUNC)) < 0) in truncate() 310 pathname); in truncate() 318 if ( (fd = open(pathname, O_WRONLY)) < 0) in truncate() 324 pathname); in truncate()
|
| D | mpeixish.h | 137 extern key_t ftok (char *pathname, char id); 164 extern int truncate(const char *pathname, off_t length);
|
| /mirbsd/src/gnu/usr.bin/cvs/src/ |
| D | client.c | 691 int is_valid_client_path (const char *pathname) in is_valid_client_path() argument 694 if (ISABSOLUTE (pathname)) return 0; in is_valid_client_path() 696 if (pathname_levels (pathname) == 0) return 1; in is_valid_client_path() 700 return walklist (uppaths, path_list_prefixed, (void *)pathname); in is_valid_client_path() 716 call_in_directory (const char *pathname, in call_in_directory() argument 753 assert (pathname); in call_in_directory() 784 short_pathname = xmalloc (strlen (pathname) + strlen (filename) + 5); in call_in_directory() 785 strcpy (short_pathname, pathname); in call_in_directory() 814 dir_name = xstrdup (pathname); in call_in_directory() 2048 is_cvsroot_level (char *pathname) in is_cvsroot_level() argument [all …]
|
| /mirbsd/src/gnu/usr.bin/lynx/src/ |
| D | LYUtils.c | 5107 char *Current_Dir(char *pathname) in Current_Dir() argument 5112 result = getcwd(pathname, (size_t) LY_MAXPATH); in Current_Dir() 5114 result = getwd(pathname); in Current_Dir() 5117 strcpy(pathname, "."); in Current_Dir() 5118 return pathname; in Current_Dir() 5240 char *LYPathLeaf(char *pathname) in LYPathLeaf() argument 5245 if ((leaf = strrchr(pathname, '/')) != 0) { in LYPathLeaf() 5250 if ((leaf = strrchr(pathname, ']')) == 0) in LYPathLeaf() 5251 leaf = strrchr(pathname, ':'); in LYPathLeaf() 5257 for (leaf = 0, n = strlen(pathname) - 1; n >= 0; n--) { in LYPathLeaf() [all …]
|
| D | LYUtils.h | 135 extern char *Current_Dir(char *pathname); 140 extern char *LYPathLeaf(char *pathname); 141 extern char *LYTildeExpand(char **pathname, int embedded); 149 extern const char *wwwName(const char *pathname); 226 extern char *quote_pathname(char *pathname);
|
| /mirbsd/src/sbin/sysctl/ |
| D | pathconf.c | 148 parse(char *pathname, char *string, int flags) in parse() argument 164 value = pathconf(pathname, indx); in parse()
|