| /src/usr.bin/mail/ |
| temp.c | 54 char pathbuf[MAXPATHLEN]; local 90 if (getcwd(pathbuf, sizeof(pathbuf)) != NULL) 91 origdir = savestr(pathbuf);
|
| /src/external/bsd/openpam/dist/lib/libpam/ |
| 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';
|
| /src/external/mpl/bind/dist/bin/named/ |
| geoip.c | 38 char pathbuf[PATH_MAX]; local 42 n = snprintf(pathbuf, sizeof(pathbuf), "%s/%s", dir, dbfile); 43 if (n >= sizeof(pathbuf)) { 51 ret = MMDB_open(pathbuf, MMDB_MODE_MMAP, mmdb); 55 "opened GeoIP2 database '%s'", pathbuf); 62 pathbuf, ret);
|
| /src/sbin/fsck_ext2fs/ |
| 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,
|
| dir.c | 300 char pathbuf[MAXPATHLEN + 1]; local 305 getpathname(pathbuf, sizeof(pathbuf), cwd, ino); 307 pfatal("NAME=%s\n", pathbuf); 313 (fs2h16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE", pathbuf); 315 pfatal("NAME=%s\n", pathbuf); 524 char pathbuf[MAXPATHLEN + 1]; local 544 getpathname(pathbuf, sizeof(pathbuf), parent, parent); 546 if (expanddir(dp, pathbuf) == 0 [all...] |
| 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...] |
| /src/bin/ln/ |
| 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)
|
| /src/sbin/fsck_ffs/ |
| 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,
|
| dir.c | 423 char pathbuf[MAXPATHLEN + 1]; local 429 getpathname(pathbuf, sizeof(pathbuf), cwd, ino); 431 pfatal("NAME=%s\n", pathbuf); 438 (iswap16(mode) & IFMT) == IFDIR ? "DIR" : "FILE", pathbuf); 441 pfatal("NAME=%s\n", pathbuf); 717 char pathbuf[MAXPATHLEN + 1]; local 739 getpathname(pathbuf, sizeof(pathbuf), parent, parent); 741 if (expanddir(dp, pathbuf) == 0 [all...] |
| /src/sbin/fsck_lfs/ |
| 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 427 getpathname(pathbuf, sizeof(pathbuf), 432 pwarn("%s %s %s\n", pathbuf,
|
| dir.c | 305 char pathbuf[MAXPATHLEN + 1]; local 312 getpathname(pathbuf, sizeof(pathbuf), cwd, ino); 314 pfatal("NAME=%s\n", pathbuf); 324 "DIR" : "FILE", pathbuf); 326 pfatal("NAME=%s\n", pathbuf); 555 char pathbuf[MAXPATHLEN + 1]; local 579 getpathname(pathbuf, sizeof(pathbuf), parent, parent); 582 if (expanddir(vp, dp, pathbuf) == 0 [all...] |
| 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...] |
| /src/external/mpl/bind/dist/tests/dns/ |
| geoip_test.c | 71 char pathbuf[PATH_MAX]; local 74 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", dir, dbfile); 75 ret = MMDB_open(pathbuf, MMDB_MODE_MMAP, mmdb);
|
| /src/lib/libterminfo/ |
| 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);
|
| /src/sys/arch/evbppc/stand/wii/ |
| sdmmc.c | 170 char pathbuf[PATH_MAX]; local 173 snprintf(pathbuf, sizeof(pathbuf), "%s%c:%s", 175 full_path = pathbuf;
|
| /src/external/cddl/osnet/dist/cmd/zlook/ |
| 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);
|
| /src/sys/stand/efiboot/ |
| efinet.c | 515 char **file, pathbuf[PATH_MAX], *default_device, *path, *ep; local 530 snprintf(pathbuf, sizeof(pathbuf), "%s:%s", default_device, fname); 531 full_path = pathbuf;
|
| boot.c | 155 bootcfg_path(char *pathbuf, size_t pathbuflen) 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)) == 0) [all...] |
| /src/usr.bin/make/ |
| util.c | 242 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local 251 pathbuf[MAXPATHLEN - 1] = '\0'; 252 pathptr = &pathbuf[MAXPATHLEN - 1];
|
| /src/usr.bin/rdist/ |
| expand.c | 95 char pathbuf[BUFSIZ]; local 113 path = tpathp = pathp = pathbuf; 115 lastpathp = &path[sizeof pathbuf - 2];
|
| /src/usr.sbin/mtree/ |
| spec.c | 437 static char pathbuf[4*MAXPATHLEN + 1]; local 440 strsvis(pathbuf, path, VIS_CSTYLE, extra); 442 strsvis(pathbuf, path, VIS_OCTAL, extra_glob); 443 return pathbuf;
|
| /src/external/mit/libuv/dist/src/unix/ |
| kqueue.c | 506 char pathbuf[MAXPATHLEN]; local 522 if (fcntl(handle->event_watcher.fd, F_GETPATH, pathbuf) == 0) 523 path = uv__basename_r(pathbuf);
|
| /src/external/mpl/bind/dist/fuzz/ |
| dns_message_checksig.c | 140 char pathbuf[PATH_MAX]; local 149 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", wd, f1); 150 fd = fopen(pathbuf, "w"); 152 fprintf(stderr, "fopen(%s) failed\n", pathbuf); 158 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", wd, f2); 159 fd = fopen(pathbuf, "w"); 161 fprintf(stderr, "fopen(%s) failed\n", pathbuf); 167 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", wd, f3) [all...] |
| /src/bin/ps/ |
| 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, ttname) == 0 && ptsminor >= 0 [all...] |
| /src/lib/libc/gen/ |
| 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, 620 _DIAGASSERT(pathbuf != NULL); 626 qprintf("glob2", pathbuf); 635 if (g_lstat(pathbuf, &sb, pglob) [all...] |