Lines Matching refs:stbuf
140 struct stat stbuf;
141 int res = stat(path, &stbuf);
146 return st_check_size(&stbuf, len);
166 struct stat stbuf;
167 int res = lstat(path, &stbuf);
172 return st_check_type(&stbuf, type);
187 struct stat stbuf;
188 int res = lstat(path, &stbuf);
193 return st_check_mode(&stbuf, mode);
206 struct stat stbuf;
207 int res = lstat(path, &stbuf);
212 if (stbuf.st_atime != atime) {
213 ERROR("atime %li instead of %li", stbuf.st_atime, atime);
216 if (stbuf.st_mtime != mtime) {
217 ERROR("mtime %li instead of %li", stbuf.st_mtime, mtime);
230 struct stat stbuf;
231 int res = fstat(fd, &stbuf);
236 if (stbuf.st_atime != atime) {
237 ERROR("atime %li instead of %li", stbuf.st_atime, atime);
240 if (stbuf.st_mtime != mtime) {
241 ERROR("mtime %li instead of %li", stbuf.st_mtime, mtime);
263 struct stat stbuf;
264 int res = lstat(path, &stbuf);
269 return st_check_nlink(&stbuf, nlink);
274 struct stat stbuf;
275 int res = fstat(fd, &stbuf);
289 err += st_check_type(&stbuf, st->st_mode & S_IFMT);
290 err += st_check_mode(&stbuf, st->st_mode & ALLPERMS);
291 err += st_check_size(&stbuf, st->st_size);
292 err += st_check_nlink(&stbuf, st->st_nlink);
299 struct stat stbuf;
300 int res = lstat(path, &stbuf);