Security and Auditing Library Functions getauditflags(3BSM)
NAME
getauditflags, getauditflagsbin, getauditflagschar - convert
audit flag specificationsSYNOPSIS
cc [ flag... ] file... -lbsm -lsocket -lnsl [ library... ]
#include
#include
int getauditflagsbin(char *auditstring, au_mask_t *masks);
int getauditflagschar(char *auditstring, au_mask_t *masks, int verbose);
DESCRIPTION
The getauditflagsbin() function converts the character
representation of audit values pointed to by auditstringinto au_mask_t fields pointed to by masks. These fields
indicate which events are to be audited when they succeed and which are to be audited when they fail. The characterstring syntax is described in audit_flags(5).
The getauditflagschar() function converts the au_mask_t
fields pointed to by masks into a string pointed to byauditstring. If verbose is 0, the short (2-character) flag
names are used. If verbose is non-zero, the long flag names
are used. The auditstring argument should be large enough to contain the ASCII representation of the events. The auditstring argument contains a series of event names,each one identifying a single audit class, separated by com-
mas. The au_mask_t fields pointed to by masks correspond to
binary values defined in, which is read by . RETURN VALUES
Upon successful completion, getauditflagsbin() and getaudit-
flagschar() return 0. Otherwise they return -1.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 30 Mar 2010 1
Security and Auditing Library Functions getauditflags(3BSM)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
SEE ALSO
audit.log(4), audit_flags(5), attributes(5)
BUGS
This is not a very extensible interface.SunOS 5.11 Last change: 30 Mar 2010 2