Lines Matching refs:stat
18 #include <sys/stat.h>
316 struct stat stat;
317 if (fstat(fd, &stat) != 0)
318 error("stat file failed: %s\n", strerror(errno));
320 if (size + stat.st_size > sMaxFileSize)
321 size = sMaxFileSize - stat.st_size;
323 offset = stat.st_size;
400 struct stat stat;
401 if (fstat(fd, &stat) != 0)
402 error("stat file \"%s\" failed: %s", file.name.c_str(), strerror(errno));
404 if (file.size != stat.st_size) {
406 file.name.c_str(), file.size, stat.st_size);