#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
Defines | |
#define | strnenv(d, s, n) ((strncpy((d),(s),(n)-1)[(n)-1] = 0),(d)) |
#define | XDM_ALOGPATH LSTDIR "/log" |
#define | XDMAPI |
#define | XDMEXP |
#define | FOPEN_FLAGSTR "a" |
#define | XDM_ALOGFNAME "xdas_audit.log" |
#define | XDM_DEF_ALOGFILE XDM_ALOGPATH "/" XDM_ALOGFNAME |
The default audit log file path. | |
Functions | |
XDMEXP int XDMAPI | xdm_append (const char **msgflds) |
XDM module append routine. | |
XDMEXP int XDMAPI | xdm_init (void(*logmsg)(int level, const char *msg,...), char *(*getcnfstr)(const char *, char *, size_t *)) |
XDM module initialization routine. | |
XDMEXP void XDMAPI | xdm_exit (void) |
XDM module exit routine. | |
Variables | |
static char | s_alogfile [FILENAME_MAX] |
The global audit log filename. | |
static FILE * | s_file = 0 |
The global audit file pointer. | |
static void(* | s_fplogmsg )(int level, const char *msg,...)=0 |
A pointer to the xdasd logmsg function. |
Definition in file xdm_file.c.