Lines Matching defs:statb
78 FcStat (const FcChar8 *file, struct stat *statb)
88 statb->st_dev = 0;
99 statb->st_ino = FcStringHash ((const FcChar8 *) full_path_name);
101 statb->st_mode = _S_IREAD | _S_IWRITE;
102 statb->st_mode |= (statb->st_mode >> 3) | (statb->st_mode >> 6);
105 statb->st_mode |= _S_IFDIR;
107 statb->st_mode |= _S_IFREG;
109 statb->st_nlink = 1;
110 statb->st_uid = statb->st_gid = 0;
111 statb->st_rdev = 0;
115 statb->st_size = wfad.nFileSizeLow;
117 statb->st_atime = (*(INT64 *)&wfad.ftLastAccessTime)/10000000 - EPOCH_OFFSET;
118 statb->st_mtime = (*(INT64 *)&wfad.ftLastWriteTime)/10000000 - EPOCH_OFFSET;
119 statb->st_ctime = statb->st_mtime;
127 FcStat (const FcChar8 *file, struct stat *statb)
129 return stat ((char *) file, statb);
291 struct stat statb;
303 if (lstat (f, &statb) < 0)
309 if (S_ISDIR (statb.st_mode))
316 dtype = statb.st_mode;
337 FcStatChecksum (const FcChar8 *file, struct stat *statb)
339 if (FcStat (file, statb) == -1)
348 if (FcDirChecksum (file, &statb->st_mtime) == -1)
357 FcFStatFs (int fd, FcStatFS *statb)
366 memset (statb, 0, sizeof (FcStatFS));
379 memset (statb, 0, sizeof (FcStatFS));
384 statb->is_remote_fs = !(buf.f_flags & MNT_LOCAL);
393 statb->is_remote_fs = FcTrue;
396 statb->is_mtime_broken = FcTrue;
411 statb->is_remote_fs = FcTrue;
414 statb->is_mtime_broken = FcTrue;
423 FcStatFS statb;
425 if (FcFStatFs (fd, &statb) < 0)
428 return !statb.is_remote_fs;
438 FcStatFS statb;
439 int ret = FcFStatFs (fd, &statb);
445 return statb.is_mtime_broken;