/freebsd-current/bin/ln/ |
H A D | ln.c | 177 char pathbuf[PATH_MAX]; local 197 memcpy(pathbuf, ".", 2); 199 memcpy(pathbuf, path1, file1 - path1); 200 pathbuf[file1 - path1] = '\0'; 202 if (stat(pathbuf, &sb1) != 0) 205 memcpy(pathbuf, ".", 2); 207 memcpy(pathbuf, path2, file2 - path2); 208 pathbuf[file2 - path2] = '\0'; 210 if (stat(pathbuf, &sb2) != 0)
|
/freebsd-current/bin/ps/ |
H A D | ps.c | 876 char pathbuf[PATH_MAX], pathbuf2[PATH_MAX], pathbuf3[PATH_MAX]; local 892 strlcpy(pathbuf, _PATH_DEV, sizeof(pathbuf)); 893 strlcat(pathbuf, elem, sizeof(pathbuf)); 894 ttypath = pathbuf; 895 if (strncmp(pathbuf, _PATH_TTY, strlen(_PATH_TTY)) == 0) 897 if (strncmp(pathbuf, _PATH_PTS, strlen(_PATH_PTS)) == 0) 899 if (strcmp(pathbuf, _PATH_CONSOLE) == 0)
|
/freebsd-current/contrib/bmake/ |
H A D | main.c | 1145 char pathbuf[MAXPATHLEN]; local 1146 const char *abspath = cached_realpath(argv0, pathbuf);
|
H A D | util.c | 241 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local 250 pathbuf[MAXPATHLEN - 1] = '\0'; 251 pathptr = &pathbuf[MAXPATHLEN - 1];
|
/freebsd-current/contrib/mtree/ |
H A D | spec.c | 436 static char pathbuf[4*MAXPATHLEN + 1]; local 439 strsvis(pathbuf, path, VIS_CSTYLE, extra); 441 strsvis(pathbuf, path, VIS_OCTAL, extra_glob); 442 return pathbuf;
|
/freebsd-current/contrib/ncurses/ncurses/tinfo/ |
H A D | read_termcap.c | 793 char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ local 794 CGETENT_CONST char *pathvec[PVECSIZ]; /* point to names in pathbuf */ 800 p = pathbuf; 812 _nc_str_init(&desc, pathbuf, sizeof(pathbuf)); 837 *fname++ = pathbuf; /* tokenize path into vector of names */ 1038 char pathbuf[PATH_MAX]; local 1073 _nc_SPRINTF(pathbuf, _nc_SLIMIT(sizeof(pathbuf)) 1075 ADD_TC(pathbuf, filecoun [all...] |
/freebsd-current/contrib/ntp/ntpd/ |
H A D | ntp_crypto.c | 3452 char pathbuf[MAXFILENAME]; local 3484 X509_NAME_oneline(X509_get_subject_name(cert), pathbuf, local 3485 sizeof(pathbuf)); 3486 pch = strstr(pathbuf, "CN="); 3489 pathbuf); 3507 X509_NAME_oneline(X509_get_issuer_name(cert), pathbuf, local 3508 sizeof(pathbuf)); 3509 if ((pch = strstr(pathbuf, "CN=")) == NULL) { 3511 pathbuf); 3547 BIO_gets(bp, pathbuf, sizeo [all...] |
/freebsd-current/contrib/ntp/util/ |
H A D | ntp-keygen.c | 324 char pathbuf[MAXFILENAME + 1]; local 486 if (RAND_file_name(pathbuf, sizeof(pathbuf)) == NULL) { 491 temp = RAND_load_file(pathbuf, -1); 495 pathbuf); 499 "Random seed file %s %u bytes\n", pathbuf, temp); 556 BIO_gets(bp, pathbuf, 559 if (strcmp(pathbuf, 562 else if (strcmp(pathbuf, 1972 char pathbuf[MAXFILENAM local [all...] |
/freebsd-current/contrib/openpam/lib/libpam/ |
H A D | openpam_check_owner_perms.c | 102 char pathbuf[PATH_MAX]; local 109 if (realpath(path, pathbuf) == NULL) 111 len = strlen(pathbuf); 113 if (stat(pathbuf, &sb) != 0) { 116 openpam_log(PAM_LOG_ERROR, "%s: %m", pathbuf); 123 "%s: not a regular file", pathbuf); 130 "%s: insecure ownership or permissions", pathbuf); 134 while (--len > 0 && pathbuf[len] != '/') 135 pathbuf[len] = '\0';
|
/freebsd-current/contrib/sendmail/smrsh/ |
H A D | smrsh.c | 151 char pathbuf[1000]; local 163 (void) sm_strlcpyn(pathbuf, sizeof pathbuf, 2, "PATH=", PATH); 164 newenv[0] = pathbuf;
|
/freebsd-current/contrib/tcsh/ |
H A D | glob.c | 468 struct strbuf pathbuf = strbuf_INIT; local 476 err = glob2(&pathbuf, pattern, pglob, no_match); 477 xfree(pathbuf.s); 487 glob2(struct strbuf *pathbuf, const Char *pattern, glob_t *pglob, int no_match) argument 501 strbuf_terminate(pathbuf); 503 if (Lstat(pathbuf->s, &sbuf)) 507 pathbuf->s[pathbuf->len - 1] != SEP) && 511 (Stat(pathbuf->s, &sbuf) == 0) && 515 strbuf_append1(pathbuf, SE 564 glob3(struct strbuf *pathbuf, const Char *pattern, const Char *restpattern, const Char *pglobstar, glob_t *pglob, int no_match) argument [all...] |
H A D | tc.os.c | 1218 char pathbuf[MAXPATHLEN]; /* temporary pathname buffer */ local 1219 char *pnptr = &pathbuf[(sizeof pathbuf)-1]; /* pathname pointer */ 1269 pnptr = strnrcpy(dirp->d_name, pnptr, pnptr - pathbuf); 1270 pnptr = strnrcpy("/", pnptr, pnptr - pathbuf); 1289 (void) chdir(strnrcpy(".", pnptr, pnptr - pathbuf)); 1304 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local 1315 pathbuf[MAXPATHLEN - 1] = '\0'; 1316 pathptr = &pathbuf[MAXPATHLEN - 1]; 1404 pathptr = strnrcpy(pathptr, d->d_name, pathptr - pathbuf); [all...] |
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | glob.c | 496 Char pathbuf[MaxPathLen+1]; local 501 return(glob2(pathbuf, pathbuf, pattern, pglob, limit)); 519 glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob, argument 533 if (g_lstat(pathbuf, &sb, pglob)) 539 (g_stat(pathbuf, &sb, pglob) == 0) && 545 return(globextend(pathbuf, pglob, limit)); 563 return(glob3(pathbuf, pathend, pattern, p, pglob, 570 glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern, argument 589 if ((dirp = g_opendir(pathbuf, pglo [all...] |
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | glob.c | 616 Char pathbuf[PATH_MAX]; local 621 return(glob2(pathbuf, pathbuf+PATH_MAX-1, 622 pathbuf, pathbuf+PATH_MAX-1, 632 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, argument 654 if (g_lstat(pathbuf, &sb, pglob)) 660 (g_stat(pathbuf, &sb, pglob) == 0) && 668 return(globextend(pathbuf, pglob, limitp, &sb)); 692 return(glob3(pathbuf, pathbuf_las 700 glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, Char *restpattern, Char *restpattern_last, glob_t *pglob, struct glob_lim *limitp) argument [all...] |
/freebsd-current/lib/libc/gen/ |
H A D | glob-compat11.c | 593 Char pathbuf[MAXPATHLEN]; local 598 return (glob2(pathbuf, pathbuf, pathbuf + MAXPATHLEN - 1, 608 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, argument 622 if (g_lstat(pathbuf, &sb, pglob)) 634 g_stat(pathbuf, &sb, pglob) == 0 && 644 return (globextend(pathbuf, pglob, limit, NULL)); 671 return (glob3(pathbuf, pathend, pathend_last, pattern, 678 glob3(Char *pathbuf, Cha argument [all...] |
H A D | glob.c | 626 Char pathbuf[MAXPATHLEN]; local 631 return (glob2(pathbuf, pathbuf, pathbuf + MAXPATHLEN - 1, 641 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, argument 655 if (g_lstat(pathbuf, &sb, pglob)) 667 g_stat(pathbuf, &sb, pglob) == 0 && 677 return (globextend(pathbuf, pglob, limit, NULL)); 704 return (glob3(pathbuf, pathend, pathend_last, pattern, 711 glob3(Char *pathbuf, Cha argument [all...] |
/freebsd-current/lib/libdpv/ |
H A D | dpv.c | 67 static char pathbuf[PATH_MAX]; variable 575 len = snprintf(pathbuf, 578 len = snprintf(pathbuf, 581 warnx("%s:%d:%s: pathbuf[%u] too small" 587 if ((output_out = open(pathbuf, 590 warn("%s", pathbuf);
|
/freebsd-current/libexec/rtld-elf/ |
H A D | libmap.c | 412 char pathbuf[64], *s, *t; local 414 if (n < sizeof(pathbuf) - 1) 415 s = pathbuf; 421 if (s != pathbuf)
|
/freebsd-current/sbin/fsck_ffs/ |
H A D | dir.c | 429 char pathbuf[MAXPATHLEN + 1]; local 440 getpathname(pathbuf, cwd, ino); 444 pathbuf); 446 pfatal("NAME=%s\n", pathbuf); 738 char pathbuf[MAXPATHLEN + 1]; local 761 getpathname(pathbuf, parent, parent); 762 if (expanddir(&ip, pathbuf) == 0) {
|
H A D | inode.c | 66 char pathbuf[MAXPATHLEN + 1]; local 100 getpathname(pathbuf, idesc->id_number, 103 pathbuf); 141 getpathname(pathbuf, idesc->id_number, 144 pathbuf); 172 char pathbuf[MAXPATHLEN + 1]; local 227 getpathname(pathbuf, idesc->id_number, 230 pathbuf);
|
H A D | pass2.c | 63 char pathbuf[MAXPATHLEN + 1]; local 162 getpathname(pathbuf, inp->i_number, inp->i_number); 165 "DIRECTORY", pathbuf, 169 "DIRECTORY", pathbuf, 227 getpathname(pathbuf, inp->i_parent, inp->i_number); 229 (uintmax_t)inp->i_number, pathbuf); 230 getpathname(pathbuf, inp->i_dotdot, inp->i_dotdot); 232 (uintmax_t)inp->i_dotdot, pathbuf); 233 getpathname(pathbuf, inp->i_parent, inp->i_parent); 235 (uintmax_t)inp->i_parent, pathbuf); [all...] |
/freebsd-current/sbin/kldconfig/ |
H A D | kldconfig.c | 143 char pathbuf[MAXPATHLEN+1]; local 152 if (realpath(path, pathbuf) == NULL) 153 strlcpy(pathbuf, path, sizeof(pathbuf)); 155 len = strlen(pathbuf); 157 if ((len > 0) && (pathbuf[len-1] == '/')) 158 pathbuf[--len] = '\0'; 162 if (!strcmp(pe->path, pathbuf)) 167 errx(1, "already in the module search path: %s", pathbuf); 172 ((pe->path = strdup(pathbuf)) 194 char pathbuf[MAXPATHLEN+1]; local [all...] |
/freebsd-current/sys/cam/ |
H A D | cam_periph.c | 619 char pathbuf[32], *periph_name; local 622 snprintf(pathbuf, sizeof(pathbuf), "scbus%d", pathid); 630 if (strcmp(strval, pathbuf) != 0)
|
/freebsd-current/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_mod.c | 208 char pathbuf[PATH_MAX]; local 383 if (realpath(rawpath, pathbuf) == NULL && !is_mpath_wholedisk) { 443 leafname = strrchr(pathbuf, '/') + 1; 521 (void) snprintf(pathbuf, sizeof (pathbuf), "%s%s", 524 "replaced by '%s'", path, pathbuf); 525 path = pathbuf;
|
/freebsd-current/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 1289 char *pathbuf = NULL; local 1299 pathbuf = umem_alloc(MAXPATHLEN, UMEM_NOFAIL); 1300 path = pathbuf; 1304 (void) snprintf(pathbuf, MAXPATHLEN, 1310 (void) snprintf(pathbuf, MAXPATHLEN, 1332 umem_free(pathbuf, MAXPATHLEN);
|