| /src/usr.sbin/mtree/ |
| excludes.c | 62 int pathname; member in struct:exclude 96 e->pathname = 1; 98 e->pathname = 0; 114 if ((e->pathname && MATCH(e->glob, path))
|
| /src/external/bsd/libarchive/dist/libarchive/test/ |
| test_read_format_isojoliet_long.c | 61 char pathname[104]; local 70 pathname[i] = '0' + ((i+1) % 10); 97 pathname[100] = 'd'; 98 pathname[101] = 'i'; 99 pathname[102] = 'r'; 100 pathname[103] = '\0'; 102 assertEqualString(pathname, archive_entry_pathname(ae)); 110 /* A regular file with two names (pathname gets returned 112 pathname[100] = '1'; 113 pathname[101] = '2' [all...] |
| test_write_format_iso9660_filename.c | 100 const char *pathname = archive_entry_pathname(ae); local 109 failure("Found duplicate for %s", pathname); 110 assert(strcmp(fns->names[i], pathname) != 0); 111 assert((length = strlen(pathname)) <= fns->maxlen); 114 p = strrchr(pathname, '.'); 117 assert((size_t)(p - pathname) <= fns->maxflen); 122 assert(strchr(pathname, '.') == p); 125 for (p = pathname; *p; p++) { 134 assert(*pathname != '.');
|
| /src/external/cddl/osnet/sys/sys/ |
| pathname.h | 1 /* $NetBSD: pathname.h,v 1.5 2019/05/22 08:42:57 hannken Exp $ */ 28 * $FreeBSD: head/sys/cddl/compat/opensolaris/sys/pathname.h 314194 2017-02-24 07:53:56Z avg $ 39 typedef struct pathname { struct 41 char *pn_path; /* remaining pathname */
|
| /src/external/gpl3/gcc/dist/gcc/ |
| genmddeps.cc | 30 const char *pathname; member in struct:filedep 36 add_filedep (const char *pathname) 39 n->pathname = pathname; 61 printf (" \\\n\t%s", d->pathname); 67 printf ("\n%s:\n", d->pathname);
|
| /src/external/gpl3/gcc.old/dist/gcc/ |
| genmddeps.cc | 30 const char *pathname; member in struct:filedep 36 add_filedep (const char *pathname) 39 n->pathname = pathname; 61 printf (" \\\n\t%s", d->pathname); 67 printf ("\n%s:\n", d->pathname);
|
| /src/libexec/ld.elf_so/ |
| search.c | 72 char pathname[MAXPATHLEN]; local 78 if (pathnamelen >= sizeof(pathname)) 90 memcpy(pathname, dir, dirlen); 91 pathname[dirlen] = '/'; 92 memcpy(pathname + dirlen + 1, name, namelen); 93 pathname[pathnamelen] = '\0'; 95 dbg((" Trying \"%s\"", pathname)); 96 obj = _rtld_load_object(pathname, flags); 102 path->sp_path = xstrdup(pathname); 110 * Find the library with the given name, and return its full pathname 123 const char *pathname; local [all...] |
| /src/usr.bin/env/ |
| env.c | 198 char *pathname; local 214 if (asprintf(&pathname, "%.*s/%s", (int)lp, p, name) == -1) { 225 if (stat(pathname, &sb) == -1) { 226 free(pathname); 239 return (const char *)pathname; 250 firstfound = pathname; 252 free(pathname);
|
| /src/crypto/external/apache2/openssl/dist/fuzz/ |
| test-corpus.c | 37 static void testfile(const char *pathname) 44 if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode)) 46 printf("# %s\n", pathname); 48 f = fopen(pathname, "rb"); 70 char *pathname = NULL; local 79 if (pathname == NULL) { 80 pathname = malloc(PATH_MAX); 81 if (pathname == NULL) 83 strcpy(pathname, argv[n]); 85 if (strchr(":<]", pathname[dirname_len - 1]) == NULL [all...] |
| /src/crypto/external/bsd/openssl/dist/fuzz/ |
| test-corpus.c | 37 static void testfile(const char *pathname) 44 if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode)) 46 printf("# %s\n", pathname); 48 f = fopen(pathname, "rb"); 69 char *pathname = NULL; local 78 if (pathname == NULL) { 79 pathname = malloc(PATH_MAX); 80 if (pathname == NULL) 82 strcpy(pathname, argv[n]); 84 if (strchr(":<]", pathname[dirname_len - 1]) == NULL [all...] |
| /src/crypto/external/bsd/openssl.old/dist/fuzz/ |
| test-corpus.c | 37 static void testfile(const char *pathname) 44 if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode)) 46 printf("# %s\n", pathname); 48 f = fopen(pathname, "rb"); 69 char *pathname = NULL; local 78 if (pathname == NULL) { 79 pathname = malloc(PATH_MAX); 80 if (pathname == NULL) 82 strcpy(pathname, argv[n]); 84 if (strchr(":<]", pathname[dirname_len - 1]) == NULL [all...] |
| /src/crypto/external/cpl/trousers/dist/src/tspi/gtk/ |
| support.c | 78 gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data, local 80 if (g_file_test (pathname, G_FILE_TEST_EXISTS)) 81 return pathname; 82 g_free (pathname); 93 gchar *pathname = NULL; local 99 pathname = find_pixmap_file (filename); 101 if (!pathname) 107 pixmap = gtk_image_new_from_file (pathname); 108 g_free (pathname); 116 gchar *pathname = NULL local [all...] |
| /src/crypto/external/bsd/libsaslc/dist/src/ |
| saslc_private.h | 47 char *pathname; /* location of config files */ member in struct:saslc_t
|
| /src/external/bsd/libarchive/dist/libarchive_fe/ |
| line_reader.c | 51 char *pathname; member in struct:lafe_line_reader 57 lafe_line_reader(const char *pathname, int nullSeparator) 63 lafe_errc(1, ENOMEM, "Can't open %s", pathname); 66 lr->pathname = strdup(pathname); 67 if (lr->pathname == NULL) 68 lafe_errc(1, ENOMEM, "Can't open %s", pathname); 70 if (strcmp(pathname, "-") == 0) 73 lr->f = fopen(pathname, "r"); 75 lafe_errc(1, errno, "Couldn't open %s", pathname); [all...] |
| /src/lib/libresolv/ |
| support.c | 312 char pathname[PATH_MAX]; local 314 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname)) 318 strcpy(pathname, dst_path); 319 strcat(pathname, filename); 321 strcpy(pathname, filename); 323 fp = fopen(pathname, mode); 325 chmod(pathname, (mode_t)perm);
|
| /src/usr.bin/getconf/ |
| getconf.c | 198 const char *varname, *pathname, *vn; local 228 pathname = argv[0]; /* may be NULL */ 235 if ((cp->type == PATHCONF) == (pathname != NULL)) { 236 printvar(cp, pathname); 273 printvar(const struct conf_variable *cp, const char *pathname) 322 if ((val = pathconf(pathname, (int)cp->value)) == -1) { 329 pathname, cp->value); 346 "\t%s path_var pathname\n\t%s -a pathname\n", p, p, p, p);
|
| /src/usr.bin/mail/ |
| mime_detach.c | 95 detach_get_fname(char *prompt, char *pathname) 100 fname = my_gets(&elm.filec, prompt, pathname); 107 pathname = savestr(fname); /* save this or it gets trashed */ 110 (void)printf("%s%s\n", prompt, pathname); 112 return pathname; 179 char *pathname; local 193 * Get the suggested target pathname. 196 (void)sasprintf(&pathname, "%s/%s", mip->mi_detachdir, 202 (void)sasprintf(&pathname, "%s/msg-%s.part-%s.%s", 219 if ((fname = detach_get_fname(prompt, pathname)) == NULL 254 char *pathname; local [all...] |
| /src/external/bsd/libbind/dist/dst/ |
| support.c | 309 char pathname[PATH_MAX]; local 311 if (strlen(filename) + strlen(dst_path) >= sizeof(pathname)) 315 strcpy(pathname, dst_path); 316 strcat(pathname, filename); 318 strcpy(pathname, filename); 320 fp = fopen(pathname, mode); 322 chmod(pathname, perm);
|
| /src/external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/ |
| dir-common.h | 95 // As well as the full pathname (including the directory iterator's path) 96 // this type contains a file descriptor for a directory and a second pathname 97 // relative to that directory. The file descriptor and relative pathname 101 // No file descriptor given, so interpret the pathname relative to the CWD. 103 : pathname(p), dir_fd(fdcwd()), offset(0) 107 : pathname(p), dir_fd(fd), offset(offset) 111 path() const noexcept { return pathname; } 117 path_at_dir() const noexcept { return pathname + offset; } 120 const posix::char_type* pathname; // Full path relative to CWD. member in struct:filesystem::_Dir_base::_At_path 122 uint32_t offset; // Offset into pathname for the part relative to dir_fd [all...] |
| /src/external/gpl3/gcc.old/dist/libstdc++-v3/src/filesystem/ |
| dir-common.h | 95 // As well as the full pathname (including the directory iterator's path) 96 // this type contains a file descriptor for a directory and a second pathname 97 // relative to that directory. The file descriptor and relative pathname 101 // No file descriptor given, so interpret the pathname relative to the CWD. 103 : pathname(p), dir_fd(fdcwd()), offset(0) 107 : pathname(p), dir_fd(fd), offset(offset) 111 path() const noexcept { return pathname; } 117 path_at_dir() const noexcept { return pathname + offset; } 120 const posix::char_type* pathname; // Full path relative to CWD. member in struct:filesystem::_Dir_base::_At_path 122 uint32_t offset; // Offset into pathname for the part relative to dir_fd [all...] |
| /src/external/lgpl3/mpc/dist/tests/ |
| read_description.c | 164 const char *pathname = filename; local 203 pathname); 212 " in file '%s'\n", pathname); 223 pathname); 234 " in file '%s'\n", pathname); 250 " in file '%s'\n", pathname);
|
| /src/bin/getfacl/ |
| getfacl.c | 273 char *p, pathname[PATH_MAX]; local 276 while (fgets(pathname, (int)sizeof(pathname), stdin)) { 277 if ((p = strchr(pathname, '\n')) != NULL) 279 if (print_acl(pathname, type, hflag, iflag, nflag,
|
| /src/lib/libexecinfo/ |
| backtrace.c | 63 const char *pathname = SELF; local 73 pathname = path; 75 return open(pathname, flags);
|
| /src/sys/nfs/ |
| nfs_bootparam.c | 98 * get root and swap server:pathname info. 187 * Now fetch the server:pathname strings and server IP 220 /* have pathname */ 250 * and use the "pathname" part of the reply as the mask. 397 * server pathname 403 char pathname[MNAMELEN]; local 447 /* server pathname */ 448 path_len = sizeof(pathname) - 1; 449 m = xdr_string_decode(m, pathname, &path_len); 455 * The strings become "server:pathname" [all...] |
| /src/external/bsd/less/dist/ |
| lesskey.c | 147 char *pathname; local 149 pathname = ecalloc(strlen(dirname) + strlen(filename) + 2, sizeof(char)); 150 strcpy(pathname, dirname); 151 strcat(pathname, PATHNAME_SEP); 152 strcat(pathname, filename); 153 return (pathname); 162 char *pathname; local 165 pathname = mkpathname(p, filename); 168 pathname = mkpathname(p, filename); 173 pathname = mkpathname(".", filename) [all...] |