| /openbsd-src/gnu/usr.bin/perl/t/porting/ |
| H A D | filenames.t | 48 PATHNAME: for my $pathname (@files) { 49 my @path_components = split('/',$pathname); 53 fail("$pathname has directory components containing '.'"); 57 fail("$pathname has a name over 32 characters (VOS requirement)"); 64 fail("$pathname starts with -"); 70 fail("$pathname has more than 39 characters before the dot"); 72 fail("$pathname has more than 39 characters after the dot"); 74 fail("$pathname has a reserved name"); 76 fail("$pathname has a reserved character"); 78 pass("$pathname ok");
|
| /openbsd-src/usr.bin/rdistd/ |
| H A D | filesys.c | 53 find_file(char *pathname, struct stat *statbuf, int *isvalid) in find_file() argument 71 if (strcmp(pathname, last_pathname) == 0 && file[0]) { in find_file() 74 if (strcmp(pathname, file) == 0) in find_file() 79 if (strlen(pathname) > sizeof(file) + 3) { in find_file() 80 error("%s: Name to large for buffer.", pathname); in find_file() 87 (void) strlcpy(last_pathname, pathname, sizeof(last_pathname)); in find_file() 89 if (*pathname == '/') in find_file() 90 (void) strlcpy(file, pathname, sizeof(file)); in find_file() 98 (void) strlcat(file, pathname, sizeof(file)); in find_file() 123 pathname); in find_file() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/os2/ |
| H A 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…
|
| /openbsd-src/gnu/gcc/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() 60 printf (" \\\n\t%s", d->pathname); in main() 66 printf ("\n%s:\n", d->pathname); in main()
|
| /openbsd-src/gnu/usr.bin/perl/lib/File/ |
| H A D | stat.t | 120 my ($what, $pathname) = @$_; 121 test_X_ops($pathname, "for $what $pathname"); 123 my $orig_mode = (CORE::stat $pathname)[2]; 129 chmod $mode, $pathname or die "Can't chmod $mode_oct $pathname: $!"; 130 test_X_ops($pathname, "for $what with mode=$mode_oct"); 132 chmod $orig_mode, $pathname 133 or die "Can't restore permissions on $pathname to ", sprintf("%#o", $orig_mode);
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A 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 …]
|
| H A D | remote-fileio.c | 567 char *pathname; in remote_fileio_func_open() local 592 pathname = alloca (length); in remote_fileio_func_open() 593 retlength = remote_read_bytes (ptrval, pathname, length); in remote_fileio_func_open() 603 if (!stat (pathname, &st)) in remote_fileio_func_open() 619 fd = open (pathname, flags, mode); in remote_fileio_func_open() 997 char *pathname; in remote_fileio_func_unlink() local 1008 pathname = alloca (length); in remote_fileio_func_unlink() 1009 retlength = remote_read_bytes (ptrval, pathname, length); in remote_fileio_func_unlink() 1018 if (!stat (pathname, &st) && !S_ISREG (st.st_mode) && !S_ISDIR (st.st_mode)) in remote_fileio_func_unlink() 1025 ret = unlink (pathname); in remote_fileio_func_unlink() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/vms/ |
| H A D | getwd.c | 20 char pathname[256]; in xgetwd() local 22 return xstrdup (getcwd (pathname, sizeof (pathname) - 2, 0)); in xgetwd()
|
| /openbsd-src/gnu/gcc/intl/ |
| H A D | relocatable.h | 46 extern const char * relocate (const char *pathname); 63 #define relocate(pathname) (pathname) argument
|
| H A D | relocatable.c | 376 relocate (const char *pathname) in relocate() argument 413 && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) in relocate() 415 if (pathname[orig_prefix_len] == '\0') in relocate() 418 if (ISSLASH (pathname[orig_prefix_len])) in relocate() 421 const char *pathname_tail = &pathname[orig_prefix_len]; in relocate() 436 return pathname; in relocate()
|
| /openbsd-src/gnu/usr.bin/texinfo/intl/ |
| H A D | relocatable.h | 51 extern const char * relocate (const char *pathname); 68 #define relocate(pathname) (pathname)
|
| H A D | relocatable.c | 386 relocate (const char *pathname) in relocate() argument 423 && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) in relocate() 425 if (pathname[orig_prefix_len] == '\0') in relocate() 428 if (ISSLASH (pathname[orig_prefix_len])) in relocate() 431 const char *pathname_tail = &pathname[orig_prefix_len]; in relocate() 446 return pathname; in relocate()
|
| /openbsd-src/usr.bin/sendbug/ |
| H A D | sendbug.c | 255 editit(const char *pathname) in editit() argument 267 if (asprintf(&p, "%s %s", ed, pathname) == -1) in editit() 319 sendmail(const char *pathname) in sendmail() argument 325 warn("pipe: unsent report in %s", pathname); in sendmail() 331 pathname); in sendmail() 337 pathname); in sendmail() 344 pathname); in sendmail() 349 if (send_file(pathname, filedes[1]) == -1) { in sendmail() 351 pathname); in sendmail() 517 checkfile(const char *pathname) in checkfile() argument [all …]
|
| /openbsd-src/usr.sbin/smtpd/ |
| H A D | table_db.c | 70 char pathname[PATH_MAX]; member 125 if (strlcpy(handle->pathname, table->t_config, sizeof handle->pathname) in table_db_open2() 126 >= sizeof handle->pathname) in table_db_open2() 129 if (stat(handle->pathname, &sb) == -1) in table_db_open2() 166 if (stat(handle->pathname, &sb) == -1) in table_db_lookup()
|
| H A D | ssl.c | 185 ssl_load_certificate(struct pki *p, const char *pathname) in ssl_load_certificate() argument 187 p->pki_cert = ssl_load_file(pathname, &p->pki_cert_len, 0755); in ssl_load_certificate() 194 ssl_load_keyfile(struct pki *p, const char *pathname, const char *pkiname) in ssl_load_keyfile() argument 198 p->pki_key = ssl_load_key(pathname, &p->pki_key_len, pass, 0740, pkiname); in ssl_load_keyfile() 205 ssl_load_cafile(struct ca *c, const char *pathname) in ssl_load_cafile() argument 207 c->ca_cert = ssl_load_file(pathname, &c->ca_cert_len, 0755); in ssl_load_cafile()
|
| H A D | mail.maildir.c | 92 char pathname[PATH_MAX]; in maildir_mkdirs() local 102 ret = snprintf(pathname, sizeof pathname, "%s/%s", dirname, in maildir_mkdirs() 104 if (ret < 0 || (size_t)ret >= sizeof pathname) in maildir_mkdirs() 106 if (mkdir(pathname, 0700) == -1 && errno != EEXIST) in maildir_mkdirs()
|
| H A D | queue_fs.c | 243 char pathname[PATH_MAX]; in queue_fs_envelope_load() local 247 fsqueue_envelope_path(evpid, pathname, sizeof(pathname)); in queue_fs_envelope_load() 249 fp = fopen(pathname, "r"); in queue_fs_envelope_load() 283 char pathname[PATH_MAX]; in queue_fs_envelope_delete() local 287 fsqueue_envelope_path(evpid, pathname, sizeof(pathname)); in queue_fs_envelope_delete() 288 if (unlink(pathname) == -1) in queue_fs_envelope_delete()
|
| /openbsd-src/usr.bin/less/ |
| H A D | lesskey.c | 228 char *pathname; in mkpathname() local 232 pathname = calloc(1, len); in mkpathname() 233 if (pathname == NULL) { in mkpathname() 237 (void) snprintf(pathname, len, "%s/%s", dirname, filename); in mkpathname() 238 return (pathname); in mkpathname() 248 char *pathname; in homefile() local 251 pathname = mkpathname(p, filename); in homefile() 255 pathname = mkpathname(".", filename); in homefile() 257 return (pathname); in homefile()
|
| H A D | filename.c | 195 char *pathname; in dirfile() local 204 pathname = easprintf("%s/%s", dirname, filename); in dirfile() 208 qpathname = shell_unquote(pathname); in dirfile() 211 free(pathname); in dirfile() 212 pathname = NULL; in dirfile() 217 return (pathname); in dirfile()
|
| /openbsd-src/gnu/usr.bin/perl/cygwin/ |
| H A D | cygwin.c | 432 char *pathname; in XS() local 439 pathname = SvPV_nolen(ST(0)); in XS() 441 if (strEQ(pathname, "/cygdrive")) { in XS() 464 if (strEQ(pathname, mnt->mnt_dir)) { in XS() 489 if (strNE(user,pathname)) { in XS() 494 if (strNE(user,pathname)) { in XS() 512 char *pathname; in XS() local 517 pathname = SvPV_nolen(ST(0)); in XS() 519 ST(0) = boolSV(cygwin_internal(CW_GET_BINMODE, pathname)); in XS()
|
| /openbsd-src/gnu/usr.bin/texinfo/info/ |
| H A 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()
|
| H A 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);
|
| /openbsd-src/libexec/ftpd/ |
| H A D | ftpcmd.y | 132 %type <s> pathstring pathname password username 342 | RETR check_login SP pathname CRLF 349 | STOR check_login SP pathname CRLF 356 | APPE check_login SP pathname CRLF 379 | LIST check_login SP pathname CRLF 386 | STAT check_login SP pathname CRLF 398 | DELE check_login SP pathname CRLF 405 | RNTO check_login SP pathname CRLF 430 | CWD check_login SP pathname CRLF 461 | MKD check_login SP pathname CRLF [all …]
|
| /openbsd-src/gnu/llvm/lldb/scripts/ |
| H A D | use_lldb_suite.py | 20 fp, pathname, desc = imp.find_module("use_lldb_suite_root", [lldb_root]) variable 22 imp.load_module("use_lldb_suite_root", fp, pathname, desc)
|
| /openbsd-src/regress/sys/kern/realpath/ |
| H A D | realpathtest.c | 34 extern char *realpath3(const char *pathname, char *resolved); 46 rpcompare(const char *pathname, char *resolv2, in rpcompare() argument 51 ret.r2 = realpath(pathname, resolv2); in rpcompare() 55 ret.r3 = realpath3(pathname, resolv3); in rpcompare()
|