Lines Matching defs:statbuf
124 struct _stat64 statbuf;
125 r = _stat64(infilename, &statbuf);
126 if (r || !(statbuf.st_mode & S_IFREG)) return 0; /* No good... */
128 struct stat statbuf;
129 r = stat(infilename, &statbuf);
130 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */
132 return (size_t)statbuf.st_size;
140 struct _stat64 statbuf;
141 r = _stat64(infilename, &statbuf);
142 if (!r && (statbuf.st_mode & _S_IFDIR)) return 1;
144 struct stat statbuf;
145 r = stat(infilename, &statbuf);
146 if (!r && S_ISDIR(statbuf.st_mode)) return 1;