sys/acl.h: move main typedefs to sys/_types.h

Make __ prefixed versions available without the pollution of sys/acl.h
(and by extension sys/param.h).

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44382
This commit is contained in:
Brooks Davis 2024-03-18 21:45:42 +00:00
parent d0efabdf15
commit 55513a1b6e
2 changed files with 16 additions and 7 deletions

View file

@ -187,6 +187,15 @@ typedef struct {
#endif
} __max_align_t;
/* Types for sys/acl.h */
typedef __uint32_t __acl_tag_t;
typedef __uint32_t __acl_perm_t;
typedef __uint16_t __acl_entry_type_t;
typedef __uint16_t __acl_flag_t;
typedef __uint32_t __acl_type_t;
typedef __uint32_t *__acl_permset_t;
typedef __uint16_t *__acl_flagset_t;
typedef __uint64_t __dev_t; /* device number */
typedef __uint32_t __fixpt_t; /* fixed point number */

View file

@ -44,13 +44,13 @@
* POSIX.1e and NFSv4 ACL types and related constants.
*/
typedef uint32_t acl_tag_t;
typedef uint32_t acl_perm_t;
typedef uint16_t acl_entry_type_t;
typedef uint16_t acl_flag_t;
typedef int acl_type_t;
typedef int *acl_permset_t;
typedef uint16_t *acl_flagset_t;
typedef __acl_tag_t acl_tag_t;
typedef __acl_perm_t acl_perm_t;
typedef __acl_entry_type_t acl_entry_type_t;
typedef __acl_flag_t acl_flag_t;
typedef __acl_type_t acl_type_t;
typedef __acl_permset_t acl_permset_t;
typedef __acl_flagset_t acl_flagset_t;
/*
* With 254 entries, "struct acl_t_struct" is exactly one 4kB page big.