Home | History | Annotate | Download | only in tests

Lines Matching refs:statbuf

162     struct _stat64 statbuf;
163 r = _stat64(infilename, &statbuf);
164 if (r || !(statbuf.st_mode & S_IFREG)) return 0; /* No good... */
166 struct stat statbuf;
167 r = stat(infilename, &statbuf);
168 if (r || !S_ISREG(statbuf.st_mode)) return 0; /* No good... */
170 return (size_t)statbuf.st_size;
178 struct _stat64 statbuf;
179 r = _stat64(infilename, &statbuf);
180 if (!r && (statbuf.st_mode & _S_IFDIR)) return 1;
182 struct stat statbuf;
183 r = stat(infilename, &statbuf);
184 if (!r && S_ISDIR(statbuf.st_mode)) return 1;