setaccvec(2)
NAME
setaccvec − set or get access vectors
SYNOPSIS
#include <sys/acc_vec.h>
int setaccvec (cmd, vector)
int cmd, ∗vector;
DESCRIPTION
setaccvec sets the access vector of the current user process according to the array vector. The parameter cmd indicates whether the operation is an ACC_SET or an ACC_GET.
Only a process with an effective UID of super-user may set new access vectors.
RETURN VALUE
A 0 value is returned on success, −1 on error, with a error code stored in errno.
ERRORS
The setaccvec call will fail if:
[EPERM] The effective UID is not the super-user.
[EFAULT] The address specified for vector is outside the process address space.
SEE ALSO
CX/UX Programmer’s Reference Manual