*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> getaudproc (2)              


 getaudproc(2)                                                 getaudproc(2)

 NAME    [Toc]    [Back]
      getaudproc - get the audit process flag for the calling process

 SYNOPSIS    [Toc]    [Back]
      #include <sys/audit.h>

      int getaudproc(void);

 DESCRIPTION    [Toc]    [Back]
      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.

 RETURN VALUE    [Toc]    [Back]
      Upon successful completion, the audit process flag is returned;
      otherwise, a -1 is returned and errno is set to indicate the error.

 ERRORS    [Toc]    [Back]
      getaudproc() fails if the following is true:

      [EPERM]        The caller is not the super-user.

 AUTHOR    [Toc]    [Back]
      getaudproc() was developed by HP.

 SEE ALSO    [Toc]    [Back]

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
pthread_atfork Tru64 Declares fork handler routines to be called when the calling thread's process forks a child process
pxfwait IRIX Obtains information about a calling process' child process
tt_open HP-UX return the process identifier for the calling process
getgid Tru64 Get the group ID of the calling process
_exit NetBSD terminate the calling process
getegid Tru64 Get the group ID of the calling process
_exit FreeBSD terminate the calling process
_exit OpenBSD terminate the calling process
aio_suspend Tru64 Suspends the calling process until at least
setaudid HP-UX set the audit ID (aid) for the current process
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service