summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/posix1e/acl_get.c')
-rw-r--r--lib/libc/posix1e/acl_get.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/libc/posix1e/acl_get.c b/lib/libc/posix1e/acl_get.c
index 8a77ab1..b323501 100644
--- a/lib/libc/posix1e/acl_get.c
+++ b/lib/libc/posix1e/acl_get.c
@@ -132,30 +132,6 @@ acl_get_fd_np(int fd, acl_type_t type)
return (aclp);
}
-int
-acl_get_perm_np(acl_permset_t permset_d, acl_perm_t perm)
-{
-
- if (permset_d == NULL) {
- errno = EINVAL;
- return (-1);
- }
-
- switch(perm) {
- case ACL_READ:
- case ACL_WRITE:
- case ACL_EXECUTE:
- if (*permset_d & perm)
- return (1);
- break;
- default:
- errno = EINVAL;
- return (-1);
- }
-
- return (0);
-}
-
/*
* acl_get_permset() (23.4.17): return via permset_p a descriptor to
* the permission set in the ACL entry entry_d.
OpenPOWER on IntegriCloud