Lines Matching defs:mask
37 static int nfsrv_acemasktoperm(u_int32_t acetype, u_int32_t mask, int owner,
50 u_int32_t flag, mask, acetype;
59 mask = fxdr_unsigned(u_int32_t, *tl++);
168 * And turn the mask into perm bits.
171 aceerr = nfsrv_acemasktoperm(acetype, mask, owner, VREG,
183 * Turn an NFSv4 ace mask into R/W/X flag bits.
186 nfsrv_acemasktoperm(u_int32_t acetype, u_int32_t mask, int owner,
192 if (mask & NFSV4ACE_READDATA) {
193 mask &= ~NFSV4ACE_READDATA;
196 if (mask & NFSV4ACE_LISTDIRECTORY) {
197 mask &= ~NFSV4ACE_LISTDIRECTORY;
200 if (mask & NFSV4ACE_WRITEDATA) {
201 mask &= ~NFSV4ACE_WRITEDATA;
204 if (mask & NFSV4ACE_ADDFILE) {
205 mask &= ~NFSV4ACE_ADDFILE;
208 if (mask & NFSV4ACE_APPENDDATA) {
209 mask &= ~NFSV4ACE_APPENDDATA;
212 if (mask & NFSV4ACE_ADDSUBDIRECTORY) {
213 mask &= ~NFSV4ACE_ADDSUBDIRECTORY;
216 if (mask & NFSV4ACE_READNAMEDATTR) {
217 mask &= ~NFSV4ACE_READNAMEDATTR;
220 if (mask & NFSV4ACE_WRITENAMEDATTR) {
221 mask &= ~NFSV4ACE_WRITENAMEDATTR;
224 if (mask & NFSV4ACE_EXECUTE) {
225 mask &= ~NFSV4ACE_EXECUTE;
228 if (mask & NFSV4ACE_SEARCH) {
229 mask &= ~NFSV4ACE_SEARCH;
232 if (mask & NFSV4ACE_DELETECHILD) {
233 mask &= ~NFSV4ACE_DELETECHILD;
236 if (mask & NFSV4ACE_READATTRIBUTES) {
237 mask &= ~NFSV4ACE_READATTRIBUTES;
240 if (mask & NFSV4ACE_WRITEATTRIBUTES) {
241 mask &= ~NFSV4ACE_WRITEATTRIBUTES;
244 if (mask & NFSV4ACE_DELETE) {
245 mask &= ~NFSV4ACE_DELETE;
248 if (mask & NFSV4ACE_READACL) {
249 mask &= ~NFSV4ACE_READACL;
252 if (mask & NFSV4ACE_WRITEACL) {
253 mask &= ~NFSV4ACE_WRITEACL;
256 if (mask & NFSV4ACE_WRITEOWNER) {
257 mask &= ~NFSV4ACE_WRITEOWNER;
260 if (mask & NFSV4ACE_SYNCHRONIZE) {
261 mask &= ~NFSV4ACE_SYNCHRONIZE;
264 if (mask != 0) {