Lines Matching full:rights
29 * rights manipulation API in terms of original (FreeBSD9.x)
35 /* Rights manipulation macros/functions.
39 #define cap_rights_init(rights, ...) _cap_rights_init((rights), __VA_ARGS__, 0ULL) argument
40 #define cap_rights_set(rights, ...) _cap_rights_set((rights), __VA_ARGS__, 0ULL) argument
41 #define cap_rights_clear(rights, ...) _cap_rights_clear((rights), __VA_ARGS__, 0ULL) argument
42 #define cap_rights_is_set(rights, ...) _cap_rights_is_set((rights), __VA_ARGS__, 0ULL) argument
44 inline cap_rights_t* _cap_rights_init(cap_rights_t *rights, ...) { in _cap_rights_init() argument
47 *rights = 0; in _cap_rights_init()
48 va_start(ap, rights); in _cap_rights_init()
51 *rights |= right; in _cap_rights_init()
55 return rights; in _cap_rights_init()
58 inline cap_rights_t* _cap_rights_set(cap_rights_t *rights, ...) { in _cap_rights_set() argument
61 va_start(ap, rights); in _cap_rights_set()
64 *rights |= right; in _cap_rights_set()
68 return rights; in _cap_rights_set()
71 inline cap_rights_t* _cap_rights_clear(cap_rights_t *rights, ...) { in _cap_rights_clear() argument
74 va_start(ap, rights); in _cap_rights_clear()
77 *rights &= ~right; in _cap_rights_clear()
81 return rights; in _cap_rights_clear()
84 inline bool _cap_rights_is_set(const cap_rights_t *rights, ...) { in _cap_rights_is_set() argument
88 va_start(ap, rights); in _cap_rights_is_set()
95 return (accumulated & *rights) == accumulated; in _cap_rights_is_set()
98 inline bool _cap_rights_is_valid(const cap_rights_t *rights) { in _cap_rights_is_valid() argument
116 #endif /* old/new style rights manipulation */