Lines Matching refs:st
48 struct stat st;
54 r = stat(path, &st);
56 r = lstat(path, &st);
60 return !!S_ISDIR(st.st_mode);
88 bool null_or_empty(struct stat *st) {
89 assert(st);
91 if (S_ISREG(st->st_mode) && st->st_size <= 0)
97 if (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode))
104 struct stat st;
108 if (stat(fn, &st) < 0)
111 return null_or_empty(&st);
115 struct stat st;
119 if (fstat(fd, &st) < 0)
122 return null_or_empty(&st);
126 struct statvfs st;
130 if (statvfs(path, &st) < 0)
133 if (st.f_flag & ST_RDONLY)