Lines Matching defs:statbuf
152 struct _stat64 statbuf;
153 r = _stat64(infilename, &statbuf);
154 if (r || !(statbuf.st_mode & S_IFREG)) return 0; /* No good... */
156 struct stat statbuf;
157 r = stat(infilename, &statbuf);
158 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */
160 return (size_t)statbuf.st_size;
168 struct _stat64 statbuf;
169 r = _stat64(infilename, &statbuf);
170 if (!r && (statbuf.st_mode & _S_IFDIR)) return 1;
172 struct stat statbuf;
173 r = stat(infilename, &statbuf);
174 if (!r && S_ISDIR(statbuf.st_mode)) return 1;