GETAUDPROC(2)
NAME
getaudproc − get the audit process flag for the calling process
SYNOPSIS
#include <sys/audit.h> int getaudproc ()
DESCRIPTION
Getaudproc returns the audit process flag for the calling process. the audit process flag (u_audproc) determines whether the process, run by a given user, should be audited. The process is audited if the returned flag is 1. If the returned flag is 0, the process is not audited. This call is restricted to the superuser.
RETURN VALUE
Upon successful completion, the audit process flag is returned; otherwise, a −1 is returned.
ERRORS
Getaudproc fails if the following is true:
[EPERM] The caller is not a superuser.
AUTHOR
Getaudproc was developed by HP.
SEE ALSO
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989