getaudproc - get the audit process flag for the calling process
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 super-user.
Upon successful completion, the audit process flag is returned;
otherwise, a -1 is returned and errno is set to indicate the error.
getaudproc() fails if the following is true:
[EPERM] The caller is not the super-user.
getaudproc() was developed by HP.
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000