Lines Matching refs:stbuf
372 struct stat stbuf; in FileSize() local
373 int rc = fstat(fd, &stbuf); in FileSize()
379 if (S_ISREG(stbuf.st_mode)) in FileSize()
380 return stbuf.st_size; in FileSize()
381 if (S_ISBLK(stbuf.st_mode)) in FileSize()
487 struct stat stbuf; in FileExists() local
488 return 0 == lstat(path, &stbuf); in FileExists()
492 struct stat stbuf; in IsSymlink() local
493 return lstat(path, &stbuf) == 0 && S_ISLNK(stbuf.st_mode) != 0; in IsSymlink()
497 struct stat stbuf; in IsRegFile() local
498 return lstat(path, &stbuf) == 0 && S_ISREG(stbuf.st_mode) != 0; in IsRegFile()