Lines Matching defs:res
43 int res = __fchmod(fd, mode);
45 if (res >= 0 || errno != EPERM || (mode & (S_ISUID | S_ISGID)) == 0)
46 return res;
48 res = __fchmod(fd, mode ^ S_ISGID);
49 if (res >= 0 || errno != EPERM)
50 return res;
53 res = __fchmod(fd, mode ^ S_ISUID);
54 if (res >= 0 || errno != EPERM)
55 return res;
58 res = __fchmod(fd, mode ^ (S_ISUID | S_ISGID));
59 return res;