ACL_CMP(3) BSD Library Functions Manual ACL_CMP(3)


acl_cmp — compare two ACLs


Linux Access Control Lists library (libacl, −lacl).


#include <sys/types.h>
#include <acl/libacl.h>


acl_cmp(acl_t acl1, acl_t acl2);


The acl_cmp() function compares the ACLs pointed to by the arguments acl1 and acl2 for equality. The two ACLs are considered equal if for each entry in acl1 there is an entry in acl2 with matching tag type, qualifier, and permissions, and vice versa.


If successful, the acl_cmp() function returns 0 if the two ACLs acl1 and acl2 are equal, and 1 if they differ. Otherwise, the value -1 is returned and the global variable errno is set to indicate the error.


If any of the following conditions occur, the acl_cmp() function returns -1 and sets errno to the corresponding value:


The argument acl1 is not a valid pointer to an ACL.

The argument acl2 is not a valid pointer to an ACL.


This is a non-portable, Linux specific extension to the ACL manipulation functions defined in IEEE Std 1003.1e draft 17 (“POSIX.1e”, abandoned).




Written by Andreas Gruenbacher ⟨⟩ .

Linux ACL March 23, 2002 Linux ACL

More Linux Commands

uxterm(1) - X terminal emulator for Unicode (UTF-8) environm
uxterm is a wrapper around the xterm(1) program that invokes the latter program with the UXTerm X resource class set. All arguments to uxterm are passed to xter

glEvalPoint2(3gl) - generate and evaluate a single point in
glMapGrid and glEvalMesh are used in tandem to efficiently generate and evaluate a series of evenly spaced map domain values. glEvalPoint can be used to evaluat

IO::Lines(3pm) - IO:: interface for reading/writing an array
This class implements objects which behave just like FileHandle (or IO::Handle) objects, except that you may use them to write to (or read from) an array of lin

ber_bvarray_add(3) - OpenLDAP LBER types and allocation func
The following are the basic types and structures defined for use with the Lightweight BER library. ber_int_t is a signed integer of at least 32 bits. It is comm

perl5182delta(1) what is new for perl v5.18.2 (Man Page)....
This document describes differences between the 5.18.1 release and the 5.18.2 release. If you are upgrading from an earlier release such as 5.18.0, first read p

wbkgrnd(3ncurses) - curses window complex background manipul
The bkgrndset and wbkgrndset routines manipulate the background of the named window. The window background is a cchar_t consisting of any combination of attribu

perf_event_open(2) set up performance monitoring (Man Page)
Given a list of parameters, perf_event_open() returns a file descriptor, for use in subsequent system calls (read(2), mmap(2), prctl(2), fcntl(2), etc.). A call

checkproc(8) - Checks for a process by full path name.......
checkproc checks for running processes that use the specified executable. checkproc does not use the pid to verify a process but the full path of the correspond

fdopendir(3) - open a directory (Library - Linux man page)
The opendir() function opens a directory stream corresponding to the directory name, and returns a pointer to the directory stream. The stream is positioned at

glVertex4iv(3gl) - specify a vertex - Linux manual page.....
glVertex commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are assoc

Tcl_FSGetFileSystemForPath(3) - procedures to interact with
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

sched_get_priority_max(2) - get static priority range.......
sched_get_priority_max() returns the maximum priority value that can be used with the scheduling algorithm identified by policy. sched_get_priority_min() return

We can't live, work or learn in freedom unless the software we use is free.