Lines Matching defs:stat_buf
32 static errno_t perform_checks(struct stat *stat_buf,
42 struct stat *stat_buf;
45 stat_buf = &local_stat_buf;
47 stat_buf = caller_stat_buf;
51 ret = stat(filename, stat_buf);
53 ret = lstat(filename, stat_buf);
61 return perform_checks(stat_buf, uid, gid, mode, mask);
70 struct stat *stat_buf;
73 stat_buf = &local_stat_buf;
75 stat_buf = caller_stat_buf;
78 ret = fstat(fd, stat_buf);
86 return perform_checks(stat_buf, uid, gid, mode, mask);
89 static errno_t perform_checks(struct stat *stat_buf,
96 st_mode = stat_buf->st_mode & mask;
98 st_mode = stat_buf->st_mode & (S_IFMT|ALLPERMS);
114 if (uid != (uid_t)(-1) && stat_buf->st_uid != uid) {
119 if (gid != (gid_t)(-1) && stat_buf->st_gid != gid) {
132 struct stat stat_buf;
142 ret = check_fd(*fd, uid, gid, mode, mask, &stat_buf);