Documentation Archive Developer
Search
ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



GETAUID(2)                  BSD System Calls Manual                 GETAUID(2)

NAME
     getauid -- get the audit user ID of the current process

SYNOPSIS
     #include <bsm/audit.h>

     int
     getauid(au_id_t * auid);

DESCRIPTION
     The getauid() function returns the audit user ID for the calling process.
     The variable pointed at by auid holds the ID returned by the system.

RETURN VALUES
     Upon successful completion a value of 0 is returned.  Otherwise, a value
     of -1 is returned and errno is set to indicate the error.

SEE ALSO
     audit(2), auditon(2), auditctl(2), setauid(2), getaudit(2), setaudit(2)

HISTORY
     The getauid() function call first appeared in Mac OS X 10.3 (Panther).

Darwin                           July 30, 2007                          Darwin