audswitch() — suspend or resume auditing on the current process
int audswitch(int aflag);
suspends or resumes auditing within the current process.
This call is restricted to users with the
One of the following flags must be used for
Suspend auditing on the current process.
Resume auditing on the current process.
can be used in processes with the
privilege to temporarily suspend auditing during intervals
where auditing is to be handled by the process itself.
Auditing is suspended by a call to
parameter and resumed later by a call to
call to resume auditing serves only to reverse the action of a previous
call to suspend auditing.
A call to
to resume auditing when auditing is not suspended has no effect.
affects only the current process.
cannot suspend auditing for processes
from the current process.
to enable or disable auditing for a process and its children).
Some or all of the actions associated with this system call require the
Processes owned by the superuser have this privilege.
Processes owned by other users may have this privilege, depending on system
for more information about privileged access on
systems that support fine-grained privileges.
Upon successful completion,
If an error occurs,
is returned and the global variable
is set to indicate the error.
fails if one of the following is true:
The user does not possess the
The input parameter is neither
was developed by HP.