Open System Services System Calls Reference Manual (G06.28+, H06.05+)
System Functions (a - d) acl(2)
ERRORS
If any of these conditions occurs, the acl() function sets errno to the corresponding value:
[EACCES] The caller does not have access to a component of the pathname.
[EINVAL] One of these conditions occurred:
• The value of the cmd parameter is not ACL_GET, ACL_SET,or
ACL_CNT.
• The value of the cmd parameter is ACL_SET, and the value of the nen-
tries parameter is less than the number of mandatory ACL entries.
• The value of the cmd parameter is ACL_SET, and the ACL specified in
the aclbufp parameter is not valid.
[EIO] A disk I/O error occurred while attempting to store or retrieve the ACL
[EPERM] The value of the cmd parameter is ACL_SET, and the effective user ID of the
caller does not match the owner of the file or the super ID, and the effective user
ID or one of its group affiliations does not qualify the caller for membership in
the Safeguard SECURITY-OSS-ADMINISTRATOR group.
[ENOENT] A component of the path does not exist.
[ENOSPC] One of these conditions occurred:
• The value of the cmd parameter is ACL_GET, and the value of the nen-
tries parameter is less than the number of entries in the ACL for the file.
• The value of the cmd parameter is ACL_SET, and there is not enough
disk space to store the ACL.
• The value of the cmd parameter is ACL_SET, and nentries is greater
than the number of NACLENTRIES specfied in the acl.h header file.
[ENOSYS] This system does not support OSS ACLs.
[ENOTDIR] Either of these conditions is true:
• A component of the path specified by pathp is not a directory.
• The value of the cmd parameter is ACL_SET, and an attempt was made
to set a default ACL on a file type other than a directory.
[ENOTSUP] The file specified by pathp either resides in a fileset that does not support OSS
ACLs, or is a file type that does not support OSS ACLs (such as Guardian files
accessed from the //G directory).
[EROFS] The value of the cmd parameter is ACL_SET, and the file specified by pathp
resides in a fileset that is mounted as read-only.
[EFAULT] The aclbufp parameter points to an invalid address.
527186-007 Hewlett-Packard Company 1−11