HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
s
setaudid(2) setaudid(2)
NAME
setaudid - set the audit ID (aid) for the current process
SYNOPSIS
#include <sys/audit.h>
int setaudid(aid_t audid);
DESCRIPTION
setaudid() sets the auditID (aid) for the current process. This call is restricted to the super-user.
RETURN VALUE
Upon successful completion, setaudid() returns a value of 0; otherwise, it returns −1 and sets errno
to indicate the error.
ERRORS
setaudid() fails if any of the following conditions are encountered:
[EPERM] The caller is not a superuser.
[EINVAL] The audit ID (audid) is invalid.
AUTHOR
setaudid() was developed by HP.
SEE ALSO
getaudid(2).
Section 2−−308 − 1 − HP-UX Release 11i: December 2000
___
___