Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/acl.h
Show All 24 Lines | |||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
/* | /* | ||||
* Developed by the TrustedBSD Project. | * Developed by the TrustedBSD Project. | ||||
* Support for POSIX.1e and NFSv4 access control lists. | * Support for POSIX.1e and NFSv4 access control lists. | ||||
*/ | */ | ||||
#ifndef _SYS_ACL_H_ | #ifndef _SYS_ACL_H_ | ||||
#define _SYS_ACL_H_ | #define _SYS_ACL_H_ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
▲ Show 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | |||||
* filesystems (i.e., AFS). | * filesystems (i.e., AFS). | ||||
*/ | */ | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
int acl_add_flag_np(acl_flagset_t _flagset_d, acl_flag_t _flag); | int acl_add_flag_np(acl_flagset_t _flagset_d, acl_flag_t _flag); | ||||
int acl_add_perm(acl_permset_t _permset_d, acl_perm_t _perm); | int acl_add_perm(acl_permset_t _permset_d, acl_perm_t _perm); | ||||
int acl_calc_mask(acl_t *_acl_p); | int acl_calc_mask(acl_t *_acl_p); | ||||
int acl_clear_flags_np(acl_flagset_t _flagset_d); | int acl_clear_flags_np(acl_flagset_t _flagset_d); | ||||
int acl_clear_perms(acl_permset_t _permset_d); | int acl_clear_perms(acl_permset_t _permset_d); | ||||
int acl_cmp_np(acl_t _acl1, acl_t _acl2); | |||||
int acl_copy_entry(acl_entry_t _dest_d, acl_entry_t _src_d); | int acl_copy_entry(acl_entry_t _dest_d, acl_entry_t _src_d); | ||||
ssize_t acl_copy_ext(void *_buf_p, acl_t _acl, ssize_t _size); | ssize_t acl_copy_ext(void *_buf_p, acl_t _acl, ssize_t _size); | ||||
acl_t acl_copy_int(const void *_buf_p); | acl_t acl_copy_int(const void *_buf_p); | ||||
int acl_create_entry(acl_t *_acl_p, acl_entry_t *_entry_p); | int acl_create_entry(acl_t *_acl_p, acl_entry_t *_entry_p); | ||||
int acl_create_entry_np(acl_t *_acl_p, acl_entry_t *_entry_p, int _index); | int acl_create_entry_np(acl_t *_acl_p, acl_entry_t *_entry_p, int _index); | ||||
int acl_delete_entry(acl_t _acl, acl_entry_t _entry_d); | int acl_delete_entry(acl_t _acl, acl_entry_t _entry_d); | ||||
int acl_delete_entry_np(acl_t _acl, int _index); | int acl_delete_entry_np(acl_t _acl, int _index); | ||||
int acl_delete_fd_np(int _filedes, acl_type_t _type); | 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_file_np(const char *_path_p, acl_type_t _type); | ||||
int acl_delete_link_np(const char *_path_p, acl_type_t _type); | int acl_delete_link_np(const char *_path_p, acl_type_t _type); | ||||
int acl_delete_def_file(const char *_path_p); | int acl_delete_def_file(const char *_path_p); | ||||
int acl_delete_def_link_np(const char *_path_p); | int acl_delete_def_link_np(const char *_path_p); | ||||
int acl_delete_flag_np(acl_flagset_t _flagset_d, acl_flag_t _flag); | int acl_delete_flag_np(acl_flagset_t _flagset_d, acl_flag_t _flag); | ||||
int acl_delete_perm(acl_permset_t _permset_d, acl_perm_t _perm); | int acl_delete_perm(acl_permset_t _permset_d, acl_perm_t _perm); | ||||
acl_t acl_dup(acl_t _acl); | acl_t acl_dup(acl_t _acl); | ||||
int acl_equiv_mode_np(acl_t acl, mode_t *mode_p); | |||||
int acl_free(void *_obj_p); | int acl_free(void *_obj_p); | ||||
acl_t acl_from_mode_np(const mode_t mode); | |||||
acl_t acl_from_text(const char *_buf_p); | acl_t acl_from_text(const char *_buf_p); | ||||
int acl_get_brand_np(acl_t _acl, int *_brand_p); | int acl_get_brand_np(acl_t _acl, int *_brand_p); | ||||
int acl_get_entry(acl_t _acl, int _entry_id, acl_entry_t *_entry_p); | int acl_get_entry(acl_t _acl, int _entry_id, acl_entry_t *_entry_p); | ||||
acl_t acl_get_fd(int _fd); | acl_t acl_get_fd(int _fd); | ||||
acl_t acl_get_fd_np(int fd, acl_type_t _type); | 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_get_file(const char *_path_p, acl_type_t _type); | ||||
int acl_get_entry_type_np(acl_entry_t _entry_d, acl_entry_type_t *_entry_type_p); | int acl_get_entry_type_np(acl_entry_t _entry_d, acl_entry_type_t *_entry_type_p); | ||||
acl_t acl_get_link_np(const char *_path_p, acl_type_t _type); | acl_t acl_get_link_np(const char *_path_p, acl_type_t _type); | ||||
Show All 30 Lines |