Lines Matching +full:in +full:- +full:masks

1 /*-
6 * Redistribution and use in source and binary forms, with or without
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
21 * ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
50 getauditflagsbin(char *auditstr, au_mask_t *masks) in getauditflagsbin() argument
65 masks->am_success = 0; in getauditflagsbin()
66 masks->am_failure = 0; in getauditflagsbin()
81 } else if (tok[0] == '-') { in getauditflagsbin()
89 SUB_FROM_MASK(masks, c.ac_class, sel); in getauditflagsbin()
91 ADD_TO_MASK(masks, c.ac_class, sel); in getauditflagsbin()
94 return (-1); in getauditflagsbin()
104 * Convert the au_mask_t fields into a string value. If verbose is non-zero
105 * the long flag names are used else the short (2-character)flag names are
111 * XXXRW: This is not thread-safe as it relies on atomicity between
117 getauditflagschar(char *auditstr, au_mask_t *masks, int verbose) in getauditflagschar() argument
132 * Enumerate the class entries, check if each is selected in either in getauditflagschar()
133 * the success or failure masks. in getauditflagschar()
143 sel |= ((c.ac_class & masks->am_success) == c.ac_class) ? in getauditflagschar()
145 sel |= ((c.ac_class & masks->am_failure) == c.ac_class) ? in getauditflagschar()
157 *strptr = '-'; in getauditflagschar()
177 *(strptr-1) = '\0'; in getauditflagschar()