| /openbsd-src/distrib/special/more/ |
| H A D | termcap.c | 69 char pathbuf[PATH_MAX]; /* holds raw path of filenames */ in tgetent() local 90 strlcpy(pathbuf, _PATH_TERMCAP, sizeof(pathbuf)); in tgetent() 93 strlcpy(pathbuf, termpath, sizeof(pathbuf)); in tgetent() 95 snprintf(pathbuf, sizeof(pathbuf), "%s/%s", home, in tgetent() 96 _PATH_DEF) >= sizeof(pathbuf)) in tgetent() 97 strlcpy(pathbuf, _PATH_DEF, sizeof(pathbuf)); in tgetent() 100 strlcpy(pathbuf, cp, sizeof(pathbuf)); in tgetent() 102 *fname++ = pathbuf; /* tokenize path into vector of names */ in tgetent() 105 p = pathbuf; in tgetent()
|
| /openbsd-src/gnu/usr.bin/perl/ext/DynaLoader/ |
| H A D | dl_dlopen.xs | 184 char pathbuf[PATH_MAX + 2]; variable 187 if (getcwd(pathbuf, PATH_MAX - filename_len)) { 188 const size_t path_len = strlen(pathbuf); 189 pathbuf[path_len] = '/'; 190 filename = (char *) memcpy(pathbuf + path_len + 1, filename, filename_len + 1);
|
| /openbsd-src/gnu/usr.bin/perl/ext/File-Glob/ |
| H A D | bsd_glob.c | 639 Char pathbuf[MAXPATHLEN]; local 646 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 647 pathbuf, pathbuf+MAXPATHLEN-1, 657 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, argument 673 if (g_lstat(pathbuf, &sb, pglob)) 683 (g_stat(pathbuf, &sb, pglob) == 0) && 694 return(globextend(pathbuf, pglob, limitp)); 728 return(glob3(pathbuf, pathbuf_last, pathend, 736 glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, argument 765 if (q - pathbuf > 5) { [all …]
|
| /openbsd-src/sbin/fsck_ext2fs/ |
| H A D | inode.c | 122 char pathbuf[PATH_MAX + 1]; in ckinode() local 140 getpathname(pathbuf, sizeof pathbuf, in ckinode() 143 pathbuf); in ckinode() 177 getpathname(pathbuf, sizeof pathbuf, in ckinode() 180 pathbuf); in ckinode() 208 char pathbuf[PATH_MAX + 1]; in iblock() local 258 getpathname(pathbuf, sizeof pathbuf, in iblock() 261 pathbuf); in iblock()
|
| H A D | pass2.c | 64 char pathbuf[PATH_MAX + 1]; in pass2() local 135 getpathname(pathbuf, sizeof pathbuf, inp->i_number, in pass2() 138 pathbuf, (u_long)inp->i_isize, sblock.e2fs_bsize); in pass2() 201 char pathbuf[PATH_MAX + 1]; in pass2check() local 386 getpathname(pathbuf, sizeof pathbuf, in pass2check() 390 pwarn("%s %s %s\n", pathbuf, in pass2check()
|
| H A D | dir.c | 260 char pathbuf[PATH_MAX + 1]; in fileerror() local 265 getpathname(pathbuf, sizeof pathbuf, cwd, ino); in fileerror() 267 pfatal("NAME=%s\n", pathbuf); in fileerror() 273 (letoh16(dp->e2di_mode) & IFMT) == IFDIR ? "DIR" : "FILE", pathbuf); in fileerror() 275 pfatal("NAME=%s\n", pathbuf); in fileerror() 484 char pathbuf[PATH_MAX + 1]; in makeentry() local 504 getpathname(pathbuf, sizeof pathbuf, parent, parent); in makeentry() 506 if (expanddir(dp, pathbuf) == 0) in makeentry()
|
| /openbsd-src/usr.bin/mail/ |
| H A D | fio.c | 73 char linebuf[LINESIZE], pathbuf[PATHSIZE]; in setptr() local 76 (void)snprintf(pathbuf, sizeof(pathbuf), "%s/mail.XXXXXXXXXX", tmpdir); in setptr() 77 if ((c = mkstemp(pathbuf)) == -1 || (mestmp = Fdopen(c, "r+")) == NULL) in setptr() 78 err(1, "can't open %s", pathbuf); in setptr() 79 (void)rm(pathbuf); in setptr() 125 err(1, "%s", pathbuf); in setptr()
|
| /openbsd-src/lib/libc/gen/ |
| H A D | glob.c | 602 Char pathbuf[PATH_MAX]; in glob1() local 607 return(glob2(pathbuf, pathbuf+PATH_MAX-1, in glob1() 608 pathbuf, pathbuf+PATH_MAX-1, in glob1() 618 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, in glob2() argument 640 if (g_lstat(pathbuf, &sb, pglob)) in glob2() 646 (g_stat(pathbuf, &sb, pglob) == 0) && in glob2() 654 return(globextend(pathbuf, pglob, limitp, &sb)); in glob2() 678 return(glob3(pathbuf, pathbuf_last, pathend, in glob2() 686 glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, in glob3() argument 708 if ((dirp = g_opendir(pathbuf, pglob)) == NULL) { in glob3() [all …]
|
| /openbsd-src/sbin/fsck_ffs/ |
| H A D | inode.c | 66 char pathbuf[PATH_MAX + 1]; in ckinode() local 91 getpathname(pathbuf, sizeof pathbuf, in ckinode() 94 pathbuf); in ckinode() 127 getpathname(pathbuf, sizeof pathbuf, in ckinode() 130 pathbuf); in ckinode() 157 char pathbuf[PATH_MAX + 1]; in iblock() local 206 getpathname(pathbuf, sizeof pathbuf, in iblock() 209 pathbuf); in iblock()
|
| H A D | pass2.c | 80 char pathbuf[PATH_MAX + 1]; in pass2() local 163 getpathname(pathbuf, sizeof pathbuf, in pass2() 166 "DIRECTORY", pathbuf, inp->i_isize, in pass2() 254 char pathbuf[PATH_MAX + 1]; in pass2check() local 420 getpathname(pathbuf, sizeof pathbuf, in pass2check() 424 pwarn("%s %s %s\n", pathbuf, in pass2check()
|
| H A D | dir.c | 234 char pathbuf[PATH_MAX + 1]; in fileerror() local 239 getpathname(pathbuf, sizeof pathbuf, cwd, ino); in fileerror() 241 pfatal("NAME=%s\n", pathbuf); in fileerror() 248 pathbuf); in fileerror() 250 pfatal("NAME=%s\n", pathbuf); in fileerror() 460 char pathbuf[PATH_MAX + 1]; in makeentry() local 479 getpathname(pathbuf, sizeof pathbuf, parent, parent); in makeentry() 481 if (expanddir(dp, pathbuf) == 0) in makeentry()
|
| /openbsd-src/lib/libcurses/tinfo/ |
| H A D | read_termcap.c | 795 char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ in _nc_tgetent() local 802 p = pathbuf; in _nc_tgetent() 814 _nc_str_init(&desc, pathbuf, sizeof(pathbuf)); in _nc_tgetent() 839 *fname++ = pathbuf; /* tokenize path into vector of names */ in _nc_tgetent() 1040 char pathbuf[PATH_MAX]; in _nc_read_termcap_entry() local 1075 _nc_SPRINTF(pathbuf, _nc_SLIMIT(sizeof(pathbuf)) in _nc_read_termcap_entry() 1077 (int) (sizeof(pathbuf) - sizeof(PRIVATE_CAP)), in _nc_read_termcap_entry() 1079 ADD_TC(pathbuf, filecount); in _nc_read_termcap_entry()
|
| /openbsd-src/gnu/usr.bin/cvs/windows-NT/ |
| H A D | filesubr.c | 791 static char *pathbuf; in get_homedir() local 794 if (pathbuf != NULL) in get_homedir() 795 return pathbuf; in get_homedir() 800 pathbuf = xmalloc (strlen (hd) + strlen (hp) + 5); in get_homedir() 801 strcpy (pathbuf, hd); in get_homedir() 802 strcat (pathbuf, hp); in get_homedir() 804 return pathbuf; in get_homedir()
|
| H A D | ChangeLog | 305 * filesubr.c (get_homedir): Allocate pathbuf; removes arbitrary
|
| /openbsd-src/usr.bin/rdist/ |
| H A D | expand.c | 55 char pathbuf[BUFSIZ]; variable 129 path = tpathp = pathp = pathbuf; in expand() 131 lastpathp = &pathbuf[sizeof pathbuf - 2]; in expand() 271 cp = exptilde(path, tilde, sizeof(pathbuf)); in expstr()
|
| /openbsd-src/bin/ps/ |
| H A D | ps.c | 210 char *ttypath, pathbuf[PATH_MAX]; in main() local 215 int r = snprintf(pathbuf, sizeof(pathbuf), "%s%s", in main() 217 if (r < 0 || r > sizeof(pathbuf)) in main() 219 ttypath = pathbuf; in main()
|
| /openbsd-src/usr.bin/ftp/ |
| H A D | fetch.c | 187 char *buf = NULL, *cp, *pathbuf = NULL; in file_get() local 211 pathbuf = strdup(path); in file_get() 212 if (pathbuf == NULL) in file_get() 214 savefile = basename(pathbuf); in file_get() 293 free(pathbuf); in file_get() 315 char *pathbuf = NULL; in url_get() local 420 pathbuf = strdup(path); in url_get() 421 if (pathbuf == NULL) in url_get() 423 savefile = basename(pathbuf); in url_get() 1144 free(pathbuf); in url_get()
|
| /openbsd-src/usr.bin/xinstall/ |
| H A D | xinstall.c | 66 char pathbuf[PATH_MAX], tempfile[PATH_MAX]; variable 238 (void)snprintf(pathbuf, sizeof(pathbuf), "%s/%s", in install() 241 to_name = pathbuf; in install()
|
| /openbsd-src/usr.bin/rpcgen/ |
| H A D | rpc_main.c | 78 static char pathbuf[PATH_MAX]; variable 988 if (snprintf(pathbuf, sizeof pathbuf, 989 "%s/cpp", argv[i]) >= sizeof pathbuf) 991 CPP = pathbuf;
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | mg.c | 1355 char pathbuf[256], eltbuf[256], *cp, *elt; in Perl_magic_setenv() local 1377 } while (my_trnlnm(s, pathbuf, i++) && (elt = pathbuf)); in Perl_magic_setenv()
|