Lines Matching refs:mode
1288 /* ACL: additional access mode flag */
1687 * Do re-calculate the mode for group for ACE_T type of acls.
1689 * POSIX ACL's, then it does a special calculation of group mode
1693 * algorithm is used for the group mode calculation only.
1701 * unix mode bits for the group.
1710 int mode = 0, seen = 0;
1729 * that will be the group mode bit.
1738 mode |= S_IRGRP;
1745 mode |= S_IWGRP;
1752 mode |= S_IXGRP;
1757 return (mode);
2090 int mode;
2091 mode = grp_mask_to_mode(rep);
2093 rep->lflags |= mode;
2733 color_match(const char *fname, mode_t mode, ls_color_t *color)
2755 return (S_ISREG(mode));
2758 return (S_ISDIR(mode));
2761 return (S_ISLNK(mode));
2764 return (S_ISFIFO(mode));
2767 return (S_ISSOCK(mode));
2770 return (S_ISDOOR(mode));
2773 return (S_ISBLK(mode));
2776 return (S_ISCHR(mode));
2779 return (S_ISPORT(mode));
2786 return (!S_ISLNK(mode) && (mode & S_ISUID));
2789 return (!S_ISLNK(mode) && (mode & S_ISGID));
2792 return (!S_ISLNK(mode) && (mode & (S_IWOTH|S_ISVTX)));
2795 return (!S_ISLNK(mode) && (mode & S_IWOTH));
2798 return (!S_ISLNK(mode) && (mode & S_ISVTX));
2801 return (!S_ISLNK(mode) && (mode & (S_IXUSR|S_IXGRP|S_IXOTH)));
2892 ls_color_find(const char *fname, mode_t mode)
2902 if (color_match(fname, mode, &lsc_colors[i]))