Lines Matching refs:S_ISGID
2727 if (dir && dir->i_mode & S_ISGID) {
2730 /* Directories are special, and always inherit S_ISGID */
2732 mode |= S_ISGID;
3057 * If the @mode of the new file has both the S_ISGID and S_IXGRP bit
3058 * raised and @dir has the S_ISGID bit raised ensure that the caller is
3061 * In all other cases, strip the S_ISGID bit from @mode.
3068 if ((mode & (S_ISGID | S_IXGRP)) != (S_ISGID | S_IXGRP))
3070 if (S_ISDIR(mode) || !dir || !(dir->i_mode & S_ISGID))
3074 return mode & ~S_ISGID;