/netbsd-current/external/bsd/openpam/dist/lib/libpam/ |
H A D | openpam_check_owner_perms.c | 107 char pathbuf[PATH_MAX]; local 115 if (realpath(path, pathbuf) == NULL) 117 len = strlen(pathbuf); 119 if (stat(pathbuf, &sb) != 0) { 122 openpam_log(PAM_LOG_ERROR, "%s: %m", pathbuf); 129 "%s: not a regular file", pathbuf); 136 "%s: insecure ownership or permissions", pathbuf); 140 while (--len > 0 && pathbuf[len] != '/') 141 pathbuf[len] = '\0';
|
/netbsd-current/usr.bin/mail/ |
H A D | temp.c | 54 char pathbuf[MAXPATHLEN]; local 90 if (getcwd(pathbuf, sizeof(pathbuf)) != NULL) 91 origdir = savestr(pathbuf);
|
/netbsd-current/external/mpl/bind/dist/bin/named/ |
H A D | geoip.c | 39 char pathbuf[PATH_MAX]; local 43 n = snprintf(pathbuf, sizeof(pathbuf), "%s/%s", dir, dbfile); 44 if (n >= sizeof(pathbuf)) { 52 ret = MMDB_open(pathbuf, MMDB_MODE_MMAP, mmdb); 56 "opened GeoIP2 database '%s'", pathbuf); 63 pathbuf, ret);
|
/netbsd-current/sys/compat/common/ |
H A D | vfs_syscalls_10.c | 48 real_sys_openat_10(struct pathbuf **pb)
|
/netbsd-current/sys/sys/ |
H A D | namei.h | 59 * To call namei, first set up a pathbuf with pathbuf_create or 62 * pathbuf before you've finished using the nameidata, or mysterious 71 struct pathbuf; 73 struct pathbuf *pathbuf_create(const char *path); 74 struct pathbuf *pathbuf_assimilate(char *path); 75 int pathbuf_copyin(const char *userpath, struct pathbuf **ret); 76 void pathbuf_destroy(struct pathbuf *); 79 void pathbuf_copystring(const struct pathbuf *, char *buf, size_t maxlen); 82 const char *pathbuf_stringcopy_get(struct pathbuf *); 83 void pathbuf_stringcopy_put(struct pathbuf *, cons [all...] |
H A D | vfs_syscalls.h | 62 struct pathbuf; 63 int do_open(struct lwp *, struct vnode *, struct pathbuf *, int, int, int *);
|
H A D | exec.h | 100 struct pathbuf; /* from namei.h */ 273 struct pathbuf *, char **); 315 struct pathbuf **, size_t *);
|
/netbsd-current/external/mpl/bind/dist/fuzz/ |
H A D | dns_message_checksig.c | 132 char pathbuf[PATH_MAX]; local 133 char *pwd = getcwd(pathbuf, sizeof(pathbuf)); 192 char pathbuf[PATH_MAX]; local 203 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", wd, f1); 204 fd = fopen(pathbuf, "w"); 206 fprintf(stderr, "fopen(%s) failed\n", pathbuf); 212 snprintf(pathbuf, sizeof(pathbuf), " [all...] |
/netbsd-current/bin/ln/ |
H A D | ln.c | 191 char pathbuf[PATH_MAX]; local 211 memcpy(pathbuf, ".", 2); 213 memcpy(pathbuf, path1, file1 - path1); 214 pathbuf[file1 - path1] = '\0'; 216 if (stat(pathbuf, &sb1) != 0) 219 memcpy(pathbuf, ".", 2); 221 memcpy(pathbuf, path2, file2 - path2); 222 pathbuf[file2 - path2] = '\0'; 224 if (stat(pathbuf, &sb2) != 0)
|
/netbsd-current/sys/stand/efiboot/ |
H A D | boot.c | 155 bootcfg_path(char *pathbuf, size_t pathbuflen) argument 164 efi_file_path(efi_bootdp, BOOTCFG_FILENAME, pathbuf, pathbuflen)) 165 snprintf(pathbuf, pathbuflen, "%s:%s", default_device, 397 char pathbuf[80]; local 414 if (bootcfg_path(pathbuf, sizeof(pathbuf)) == 0) { 415 command_printtab("Config path", "%s\n", pathbuf); 569 char pathbuf[80]; local 572 if (bootcfg_path(pathbuf, sizeof(pathbuf)) [all...] |
/netbsd-current/lib/libc/gen/ |
H A D | glob.c | 589 Char pathbuf[MAXPATHLEN+1]; local 601 return glob2(pathbuf, pathbuf, 602 pathbuf + (sizeof(pathbuf) / sizeof(*pathbuf)) - 1, pattern, 612 glob2(Char *pathbuf, Char *pathend, Char *pathlim, const Char *pattern, argument 620 _DIAGASSERT(pathbuf != NULL); 626 qprintf("glob2", pathbuf); 635 if (g_lstat(pathbuf, 686 glob3(Char *pathbuf, Char *pathend, Char *pathlim, const Char *pattern, const Char *restpattern, const Char *pglobstar, glob_t *pglob, struct glob_limit *limit) argument [all...] |
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | glob.c | 498 Char pathbuf[MaxPathLen+1]; local 503 return(glob2(pathbuf, pathbuf, pattern, pglob, limit)); 521 glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob, argument 535 if (g_lstat(pathbuf, &sb, pglob)) 541 (g_stat(pathbuf, &sb, pglob) == 0) && 547 return(globextend(pathbuf, pglob, limit)); 565 return(glob3(pathbuf, pathend, pattern, p, pglob, 572 glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern, argument 591 if ((dirp = g_opendir(pathbuf, pglo [all...] |
/netbsd-current/sbin/fsck_ext2fs/ |
H A D | pass2.c | 95 char pathbuf[MAXPATHLEN + 1]; local 166 getpathname(pathbuf, sizeof(pathbuf), inp->i_number, 169 pathbuf, (u_long)inp->i_isize, sblock.e2fs_bsize); 232 char pathbuf[MAXPATHLEN + 1]; local 417 getpathname(pathbuf, sizeof(pathbuf), 422 pwarn("%s %s %s\n", pathbuf,
|
H A D | inode.c | 174 char pathbuf[MAXPATHLEN + 1]; local 192 getpathname(pathbuf, sizeof(pathbuf), 195 pathbuf); 229 getpathname(pathbuf, sizeof(pathbuf), 232 pathbuf); 262 char pathbuf[MAXPATHLEN + 1]; local 312 getpathname(pathbuf, sizeof(pathbuf), [all...] |
/netbsd-current/sbin/fsck_lfs/ |
H A D | inode.c | 132 char pathbuf[MAXPATHLEN + 1]; local 165 getpathname(pathbuf, sizeof(pathbuf), 168 pathbuf, (long long)idesc->id_number); 205 getpathname(pathbuf, sizeof(pathbuf), 208 pathbuf, (long long)idesc->id_number); 238 char pathbuf[MAXPATHLEN + 1], buf[BUFSIZ]; local 301 getpathname(pathbuf, sizeof(pathbuf), [all...] |
H A D | pass2.c | 70 char pathbuf[MAXPATHLEN + 1]; local 149 getpathname(pathbuf, sizeof(pathbuf), inp->i_number, 152 pathbuf, (unsigned long) inp->i_isize, LFS_DIRBLKSIZ); 223 char pathbuf[MAXPATHLEN + 1]; local 419 getpathname(pathbuf, sizeof(pathbuf), 424 pwarn("%s %s %s\n", pathbuf,
|
/netbsd-current/sys/kern/ |
H A D | subr_emul.c | 104 struct pathbuf *pb;
|
H A D | kern_ktrace_vfs.c | 95 struct pathbuf *pb;
|
/netbsd-current/sys/dev/ |
H A D | dkvar.h | 37 struct pathbuf; /* from namei.h */
|
/netbsd-current/bin/ps/ |
H A D | ps.c | 156 char pathbuf[MAXPATHLEN]; local 170 (void)snprintf(pathbuf, 171 sizeof(pathbuf), "%s%s", _PATH_DEV, ttname); 172 ttypath = pathbuf; 174 (void)snprintf(pathbuf, 175 sizeof(pathbuf), "%s%s", _PATH_TTY, ttname); 176 ttypath = pathbuf; 189 snprintf(pathbuf, sizeof(pathbuf), "pts/%d", ptsminor); 190 if (strcmp(pathbuf, ttnam [all...] |
/netbsd-current/sbin/fsck_ffs/ |
H A D | pass2.c | 76 char pathbuf[MAXPATHLEN + 1]; local 174 getpathname(pathbuf, sizeof(pathbuf), inp->i_number, 178 "DIRECTORY", pathbuf, 182 "DIRECTORY", pathbuf, 334 char pathbuf[MAXPATHLEN + 1]; local 596 getpathname(pathbuf, sizeof(pathbuf), 600 pwarn("%s %s %s\n", pathbuf,
|
/netbsd-current/external/cddl/osnet/dist/cmd/zlook/ |
H A D | zlook.c | 273 char pathbuf[MAXPATHLEN]; local 278 (void) strlcpy(pathbuf, argv[optind], MAXPATHLEN); 279 result = pathconf(pathbuf, check); 280 (void) printf("pathconf(2) check for %s\n", pathbuf);
|
/netbsd-current/external/mpl/bind/dist/tests/dns/ |
H A D | geoip_test.c | 72 char pathbuf[PATH_MAX]; local 75 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", dir, dbfile); 76 ret = MMDB_open(pathbuf, MMDB_MODE_MMAP, mmdb);
|
/netbsd-current/usr.bin/make/ |
H A D | util.c | 242 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local 251 pathbuf[MAXPATHLEN - 1] = '\0'; 252 pathptr = &pathbuf[MAXPATHLEN - 1];
|
/netbsd-current/lib/libterminfo/ |
H A D | term.c | 325 char pathbuf[PATH_MAX]; local 335 if (l != 0 && l + 1 < sizeof(pathbuf)) { 336 memcpy(pathbuf, p, l); 337 pathbuf[l] = '\0'; 338 r = _ti_dbgetterm(term, pathbuf, name, flags);
|