Lines Matching refs:statb
95 static struct stat statb;
130 if(fstat(FDVERIFY,&statb) < 0 || statb.st_uid != 0 ||
131 (statb.st_mode & ~S_IFMT) != SPECIAL || close(FDVERIFY)<0)
138 if(stat(tmpname,&statb) < 0 || statb.st_nlink != 1 ||
139 !S_ISREG(statb.st_mode))
142 ((statb.st_mode & S_ISUID) == 0 || statb.st_uid != euserid))
165 if(fstat(FDIN,&statb) < 0 || (statb.st_mode & ~S_IFMT) != SPECIAL)
168 euserid = statb.st_uid;
191 if(fstat(n, &statb) < 0 || !S_ISREG(statb.st_mode))
194 statb.st_ino != statx.st_ino || statb.st_dev != statx.st_dev)
197 (statb.st_ino == statx.st_ino && statb.st_dev == statx.st_dev))
208 if(statb.st_mode & S_ISUID)
209 effuid = statb.st_uid;
210 if(statb.st_mode & S_ISGID)
211 effgid = statb.st_gid;
295 struct stat statb;
296 if (stat(name, &statb) == 0)
300 if(!S_ISREG(statb.st_mode) || mode != 1)
305 else if(euserid == statb.st_uid)
307 else if(egroupid == statb.st_gid)
329 if(groups[n] == statb.st_gid)
337 if(statb.st_mode & mode)