/src/distrib/utils/more/ |
os.c | 261 struct stat statbuf; local in function:bad_file 263 if (stat(filename, &statbuf) < 0) { 268 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
|
/src/usr.bin/tail/ |
forward.c | 92 struct stat statbuf; local in function:forward 244 stat(fname, &statbuf) != -1) { 245 if (statbuf.st_ino != sbp->st_ino || 246 statbuf.st_dev != sbp->st_dev || 247 statbuf.st_rdev != sbp->st_rdev || 248 statbuf.st_nlink == 0) { 254 *sbp = statbuf;
|
/src/usr.sbin/mtree/ |
verify.c | 195 struct stat statbuf; local in function:miss 197 if (qflag && stat(path, &statbuf) == 0 && 198 S_ISDIR(statbuf.st_mode))
|
/src/games/larn/ |
diag.c | 183 struct stat statbuf; local in function:savegame 229 if (fstat(io_outfd, &statbuf) < 0) 232 lprint((long) statbuf.st_ino); /* inode # */
|
/src/sbin/mount_umap/ |
mount_umap.c | 103 struct stat statbuf; local in function:mount_umap 156 if (fstat(fileno(fp), &statbuf)) 158 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { 159 strmode(statbuf.st_mode, buf); 163 if (statbuf.st_uid != ROOTUSER) 204 if (fstat(fileno(gfp), &statbuf)) 206 if (statbuf.st_mode & S_IWGRP || statbuf.st_mode & S_IWOTH) { 207 strmode(statbuf.st_mode, buf) [all...] |
/src/sys/arch/mvme68k/stand/installboot/ |
installboot.c | 241 struct stat statbuf; local in function:loadblocknums 273 if (fstat(fd, &statbuf) != 0) 293 blk = FFS_FSBTODB(fs, ino_to_fsba(fs, statbuf.st_ino)); 295 ip = (struct ufs1_dinode *)(buf) + ino_to_fsbo(fs, statbuf.st_ino);
|
/src/bin/pax/ |
ftree.c | 413 struct stat statbuf; local in function:next_file 447 Mftent.fts_statp = &statbuf; 451 if (lstat(Mftent.fts_path, &statbuf) == -1) { 456 memset(&statbuf, 0, sizeof(statbuf)); 457 statbuf.st_dev = MFTENT_DUMMY_DEV; 458 statbuf.st_ino = ftnode->lineno; 459 statbuf.st_size = 0; 467 statbuf.st_mode = nodetoino(ftnode->type); 471 statbuf.st_mtime = starttime [all...] |
/src/tests/fs/lfs/ |
t_rfw.c | 282 struct stat statbuf; local in function:write_file 286 if (rump_sys_stat(filename, &statbuf) < 0) 289 size = statbuf.st_size; 308 struct stat statbuf; local in function:check_file 311 if (rump_sys_stat(filename, &statbuf) < 0) { 315 if (size != statbuf.st_size) { 317 filename, size, (int)statbuf.st_size);
|
/src/lib/libc/net/ |
nsdispatch.c | 491 struct stat statbuf; local in function:_nsconfigure 495 if (stat(_PATH_NS_CONF, &statbuf) == -1) { 505 if (statbuf.st_mtime <= _nsconfmod) { 545 _nsconfmod = statbuf.st_mtime;
|
/src/lib/libskey/ |
skeylogin.c | 105 struct stat statbuf; local in function:openSkey 109 if (stat(_PATH_SKEYKEYS, &statbuf) == 0 && 111 if ((statbuf.st_mode & 0007777) != 0600)
|
/src/usr.bin/at/ |
at.c | 177 struct stat statbuf; local in function:writefile 242 if (stat(atfile, &statbuf) == -1)
|
/src/lib/libc/db/hash/ |
hash.c | 101 struct stat statbuf; local in function:__hash_open 125 (stat(file, &statbuf) && (errno == ENOENT))) { 131 if ((hashp->fp = __dbopen(file, flags, mode, &statbuf)) == -1) 133 new_table |= statbuf.st_size == 0; 280 struct stat statbuf; local in function:init_hash 298 if (stat(file, &statbuf)) 300 hashp->BSIZE = MIN(statbuf.st_blksize, MAX_BSIZE);
|
/src/usr.sbin/rpc.pcnfsd/ |
pcnfsd_print.c | 91 struct stat statbuf; variable in typeref:struct:stat 172 if (stat(sp_name, &statbuf) || !S_ISDIR(statbuf.st_mode)) 188 if (stat(pathname, &statbuf) || !S_ISDIR(statbuf.st_mode)) { 235 if (stat(pathname, &statbuf)) { 244 if (stat(pathname, &statbuf)) { 263 if (statbuf.st_size == 0) { 290 if (!stat(new_pathname, &statbuf)) {
|
/src/usr.bin/error/ |
touch.c | 814 struct stat statbuf; local in function:probethisfile 816 if (stat(name, &statbuf) < 0) 818 if ((statbuf.st_mode & S_IREAD) == 0) 820 if ((statbuf.st_mode & S_IWRITE) == 0)
|
/src/lib/libresolv/ |
dst_api.c | 107 struct stat statbuf; local in function:dst_init 113 } else if (stat(s, &statbuf) != 0 || 114 !S_ISDIR(statbuf.st_mode)) {
|
/src/bin/csh/ |
dir.c | 854 struct stat statbuf; local in function:dcanon 860 stat(short2str(p1), &statbuf) != -1) { 861 home_dev = statbuf.st_dev; 862 home_ino = statbuf.st_ino; 869 for (sp = NULL; *p2 && stat(short2str(p2), &statbuf) != -1;) { 870 if (statbuf.st_dev == home_dev && 871 statbuf.st_ino == home_ino) {
|
/src/usr.bin/pr/ |
pr.c | 1304 struct stat statbuf; local in function:nxtfile 1389 if (fstat(fileno(inf), &statbuf) < 0) { 1397 timeptr = localtime(&(statbuf.st_mtime));
|
/src/usr.bin/fstat/ |
fstat.c | 1365 struct stat statbuf; local in function:getfname 1368 if (stat(filename, &statbuf)) { 1378 cur->ino = statbuf.st_ino; 1379 cur->fsid = statbuf.st_dev & 0xffff;
|
/src/sys/arch/arm/xscale/ |
ixp425_if_npe.c | 526 void *statbuf; local in function:npe_activate 573 &statbuf, BUS_DMA_NOWAIT); 580 sc->sc_stats = (void *)statbuf;
|
/src/usr.bin/patch/ |
patch.c | 374 struct stat statbuf; local in function:main 391 stat(realout, &statbuf) == 0 && 392 statbuf.st_size == 0) {
|