MAN page from Other libacl1-devel-2.2.13-3sls.i586.rpm
ACL_CMP
Section: C Library Functions (3)
IndexBSD mandoc
Linux ACL
NAME
acl_cmp - compare two ACLs
LIBRARY
Linux Access Control Lists library (libacl, -lacl).
SYNOPSIS
In sys/types.hIn acl/libacl.hFt intFn acl_cmp acl_t acl1 acl_t acl2
DESCRIPTION
TheFn acl_cmpfunction compares the ACLs pointed to by the arguments
acl1and
acl2for equality. The two ACLs are considered equal if for each entry in
acl1there is an entry in
acl2with matching tag type, qualifier, and permissions, and vice versa.
RETURN VALUE
If successful, theFn acl_cmpfunction returns
0if the two ACLs
acl1and
acl2are equal, and
1if they differ. Otherwise, the value
-1is returned and the global variable
errnois set to indicate the error.
ERRORS
If any of the following conditions occur, theFn acl_cmpfunction returns
-1and sets
errnoto the corresponding value:
- Bq Er EINVAL
- The argumentacl1is not a valid pointer to an ACL.
The argumentacl2is not a valid pointer to an ACL.
STANDARDS
This is a non-portable, Linux specific extension to the ACL manipulationfunctions defined in IEEE Std 1003.1e draft 17 (lqPOSIX.1erq, abandoned).
SEE ALSO
acl(5)
AUTHOR
Written byAn Andreas Gruenbacher Aq a.gruenbacherAATTcomputer.org .
Index
- NAME
- LIBRARY
- SYNOPSIS
- DESCRIPTION
- RETURN VALUE
- ERRORS
- STANDARDS
- SEE ALSO
- AUTHOR
This document was created byman2html,using the manual pages.