Lines Matching refs:newmode
86 mode_t clrval, newmode, value; in getmode() local
89 newmode = omode; in getmode()
99 value = (newmode & S_IRWXU) >> 6; in getmode()
103 value = (newmode & S_IRWXG) >> 3; in getmode()
107 value = newmode & S_IRWXO; in getmode()
112 newmode &= ~((clrval<<6) & set->bits); in getmode()
114 newmode &= ~((clrval<<3) & set->bits); in getmode()
116 newmode &= ~(clrval & set->bits); in getmode()
120 newmode |= (value<<6) & set->bits; in getmode()
122 newmode |= (value<<3) & set->bits; in getmode()
124 newmode |= value & set->bits; in getmode()
129 newmode |= set->bits; in getmode()
133 newmode &= ~set->bits; in getmode()
138 newmode |= set->bits; in getmode()
144 (void)printf("getmode:%04o -> %04o\n", omode, newmode); in getmode()
146 return (newmode); in getmode()