Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setaccvec(2) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

initgroups(3C)

acc_vector(4)

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

initgroups(3C), acc_vector(4)

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026