diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-01-28 15:22:51 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-01-28 15:22:51 +0000 |
commit | 1d708306f5618cd4893014b2cc9ff3e15875d962 (patch) | |
tree | ed38b994986fe6ba6f9af95ef5d073bd17ecc22f | |
parent | ecc56c784b2880b40040e285d8c1a4ab80cc2f34 (diff) | |
download | FreeBSD-src-1d708306f5618cd4893014b2cc9ff3e15875d962.zip FreeBSD-src-1d708306f5618cd4893014b2cc9ff3e15875d962.tar.gz |
Fix man page structures/constants to match recent changes in acl.h
Fix a few more namespace messes and whitespace curiosities in acl.h
Fix comments in acl.h
Clean up some function prototypes from acl.h that won't be committed
before the code freeze.
Some of this kindly pointed out by: the ever patient bde
-rw-r--r-- | share/man/man9/acl.9 | 14 | ||||
-rw-r--r-- | sys/sys/acl.h | 84 |
2 files changed, 45 insertions, 53 deletions
diff --git a/share/man/man9/acl.9 b/share/man/man9/acl.9 index 61af2cb..1e085e5 100644 --- a/share/man/man9/acl.9 +++ b/share/man/man9/acl.9 @@ -1,5 +1,5 @@ .\"- -.\" Copyright (c) 1999 Robert N. M. Watson +.\" Copyright (c) 1999, 2000 Robert N. M. Watson .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -50,12 +50,12 @@ typedef struct acl_entry *acl_entry_t; struct acl { int acl_cnt; - struct acl_entry acl_entry[MAX_ACL_ENTRIES]; + struct acl_entry acl_entry[ACL_MAX_ENTRIES]; }; typedef struct acl *acl_t; /* - * Possible valid values for a_type of acl_entry_t + * Possible valid values for a_tag of acl_entry_t */ #define ACL_USER_OBJ 0x00000001 #define ACL_USER 0x00000002 @@ -64,10 +64,16 @@ typedef struct acl *acl_t; #define ACL_MASK 0x00000010 #define ACL_OTHER 0x00000020 #define ACL_OTHER_OBJ ACL_OTHER -#define ACL_AFS_ID 0x00000040 +/* + * Possible valid values a_type_t arguments + */ #define ACL_TYPE_ACCESS 0x00000000 #define ACL_TYPE_DEFAULT 0x00000001 +#define ACL_TYPE_AFS 0x00000002 +#define ACL_TYPE_CODA 0x00000003 +#define ACL_TYPE_NTFS 0x00000004 +#define ACL_TYPE_NWFS 0x00000005 /* * Possible flags in a_perm field diff --git a/sys/sys/acl.h b/sys/sys/acl.h index 905f9f8..372be98 100644 --- a/sys/sys/acl.h +++ b/sys/sys/acl.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1999 Robert N. M. Watson + * Copyright (c) 1999, 2000 Robert N. M. Watson * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -61,7 +61,7 @@ struct acl { typedef struct acl *acl_t; /* - * Possible valid values for a_type of acl_entry_t + * Possible valid values for a_tag of acl_entry_t */ #define ACL_USER_OBJ 0x00000001 #define ACL_USER 0x00000002 @@ -71,12 +71,15 @@ typedef struct acl *acl_t; #define ACL_OTHER 0x00000020 #define ACL_OTHER_OBJ ACL_OTHER +/* + * Possible valid values a_type_t arguments + */ #define ACL_TYPE_ACCESS 0x00000000 #define ACL_TYPE_DEFAULT 0x00000001 -#define ACL_TYPE_AFS 0x00000002 -#define ACL_TYPE_CODA 0x00000003 -#define ACL_TYPE_NTFS 0x00000004 -#define ACL_TYPE_NWFS 0x00000005 +#define ACL_TYPE_AFS 0x00000002 +#define ACL_TYPE_CODA 0x00000003 +#define ACL_TYPE_NTFS 0x00000004 +#define ACL_TYPE_NWFS 0x00000005 /* * Possible flags in a_perm field @@ -97,23 +100,6 @@ typedef struct acl *acl_t; MALLOC_DECLARE(M_ACL); #endif -/* - * POSIX.1e and generic kernel/vfs semantics functions--not currently in the - * base distribution, but will be soon. - */ -struct proc; -struct ucred; -struct vattr; -struct vop_getacl_args; -struct vop_aclcheck_args; - -void generic_attr_to_posix1e_acl(struct acl *a_acl, struct vattr *vattr); -int generic_vop_aclcheck(struct vop_aclcheck_args *ap); -int generic_vop_getacl(struct vop_getacl_args *ap); -int posix1e_acl_access(struct acl *a_acl, int a_mode, struct ucred *a_cred, - struct proc *a_p); -int posix1e_vop_aclcheck(struct vop_aclcheck_args *ap); - #else /* !_KERNEL */ /* @@ -121,15 +107,15 @@ int posix1e_vop_aclcheck(struct vop_aclcheck_args *ap); * have strict acl entry ordering requirements */ __BEGIN_DECLS -int __acl_aclcheck_fd(int filedes, acl_type_t type, struct acl *aclp); -int __acl_aclcheck_file(const char *path, acl_type_t type, - struct acl *aclp); -int __acl_delete_fd(int filedes, acl_type_t type); -int __acl_delete_file(const char *path_p, acl_type_t type); -int __acl_get_fd(int filedes, acl_type_t type, struct acl *aclp); -int __acl_get_file(const char *path, acl_type_t type, struct acl *aclp); -int __acl_set_fd(int filedes, acl_type_t type, struct acl *aclp); -int __acl_set_file(const char *path, acl_type_t type, struct acl *aclp); +int __acl_aclcheck_fd(int _filedes, acl_type_t _type, struct acl *_aclp); +int __acl_aclcheck_file(const char *_path, acl_type_t _type, + struct acl *_aclp); +int __acl_delete_fd(int _filedes, acl_type_t _type); +int __acl_delete_file(const char *_path_p, acl_type_t _type); +int __acl_get_fd(int _filedes, acl_type_t _type, struct acl *_aclp); +int __acl_get_file(const char *_path, acl_type_t _type, struct acl *_aclp); +int __acl_set_fd(int _filedes, acl_type_t _type, struct acl *_aclp); +int __acl_set_file(const char *_path, acl_type_t _type, struct acl *_aclp); __END_DECLS /* @@ -139,23 +125,23 @@ __END_DECLS * ACL type for different file systems (i.e., AFS) */ __BEGIN_DECLS -int acl_delete_fd_np(int filedes, acl_type_t type); -int acl_delete_file_np(const char *path_p, acl_type_t type); -int acl_delete_def_file(const char *path_p); -acl_t acl_dup(acl_t acl); -int acl_free(void *obj_p); -acl_t acl_from_text(const char *buf_p); -acl_t acl_get_fd(int fd); -acl_t acl_get_fd_np(int fd, acl_type_t type); -acl_t acl_get_file(const char *path_p, acl_type_t type); -acl_t acl_init(int count); -int acl_set_fd(int fd, acl_t acl); -int acl_set_fd_np(int fd, acl_t acl, acl_type_t type); -int acl_set_file(const char *path_p, acl_type_t type, acl_t acl); -char *acl_to_text(acl_t acl, ssize_t *len_p); -int acl_valid(acl_t acl); -int acl_valid_fd_np(int fd, acl_type_t type, acl_t acl); -int acl_valid_file_np(const char *path_p, acl_type_t type, acl_t acl); +int acl_delete_fd_np(int _filedes, acl_type_t _type); +int acl_delete_file_np(const char *_path_p, acl_type_t _type); +int acl_delete_def_file(const char *_path_p); +acl_t acl_dup(acl_t _acl); +int acl_free(void *_obj_p); +acl_t acl_from_text(const char *_buf_p); +acl_t acl_get_fd(int _fd); +acl_t acl_get_fd_np(int fd, acl_type_t _type); +acl_t acl_get_file(const char *_path_p, acl_type_t _type); +acl_t acl_init(int _count); +int acl_set_fd(int _fd, acl_t _acl); +int acl_set_fd_np(int _fd, acl_t _acl, acl_type_t _type); +int acl_set_file(const char *_path_p, acl_type_t _type, acl_t _acl); +char *acl_to_text(acl_t _acl, ssize_t *_len_p); +int acl_valid(acl_t _acl); +int acl_valid_fd_np(int _fd, acl_type_t _type, acl_t _acl); +int acl_valid_file_np(const char *_path_p, acl_type_t _type, acl_t _acl); __END_DECLS #endif /* !_KERNEL */ |