rpmio/rpmlog.c File Reference
#include "system.h"
#include <stdarg.h>
#include "rpmlog.h"
#include "debug.h"
Go to the source code of this file.
|
Defines |
#define | va_copy(DEST, SRC) ((DEST) = (SRC)) |
Functions |
static void * | _free (const void *p) |
| Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
|
int | rpmlogGetNrecs (void) |
int | rpmlogCode (void) |
const char * | rpmlogMessage (void) |
void | rpmlogPrint (FILE *f) |
void | rpmlogClose (void) |
void | rpmlogOpen (const char *ident, int option, int facility) |
int | rpmlogSetMask (int mask) |
rpmlogCallback | rpmlogSetCallback (rpmlogCallback cb) |
static int | vsnprintf (char *buf, int nb, const char *fmt, va_list ap) |
static void | vrpmlog (unsigned code, const char *fmt, va_list ap) |
void | rpmlog (int code, const char *fmt,...) |
int | rpmErrorCode (void) |
const char * | rpmErrorString (void) |
rpmlogCallback | rpmErrorSetCallback (rpmlogCallback cb) |
Variables |
static int | nrecs = 0 |
static rpmlogRec | recs = NULL |
static unsigned | rpmlogMask = ((1 << (((unsigned)( RPMLOG_NOTICE ))+1)) - 1) |
static unsigned | rpmlogFacility = RPMLOG_USER |
static rpmlogCallback | _rpmlogCallback = NULL |
static char * | rpmlogMsgPrefix [] |
Detailed Description
Definition in file rpmlog.c.
Define Documentation
#define va_copy |
( |
DEST, |
|
|
SRC |
|
) |
((DEST) = (SRC)) |
Function Documentation
static void* _free |
( |
const void * |
p |
) |
[inline, static] |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- Parameters:
-
- Return values:
-
Definition at line 35 of file rpmlog.c.
int rpmErrorCode |
( |
void |
|
) |
|
rpmlogCallback rpmErrorSetCallback |
( |
rpmlogCallback |
cb |
) |
|
const char* rpmErrorString |
( |
void |
|
) |
|
void rpmlog |
( |
int |
code, |
|
|
const char * |
fmt, |
|
|
|
... | |
|
) |
| | |
void rpmlogClose |
( |
void |
|
) |
|
int rpmlogGetNrecs |
( |
void |
|
) |
|
const char* rpmlogMessage |
( |
void |
|
) |
|
void rpmlogOpen |
( |
const char * |
ident, |
|
|
int |
option, |
|
|
int |
facility | |
|
) |
| | |
void rpmlogPrint |
( |
FILE * |
f |
) |
|
rpmlogCallback rpmlogSetCallback |
( |
rpmlogCallback |
cb |
) |
|
int rpmlogSetMask |
( |
int |
mask |
) |
|
static void vrpmlog |
( |
unsigned |
code, |
|
|
const char * |
fmt, |
|
|
va_list |
ap | |
|
) |
| | [static] |
< mask for one priority
< mask to extract facility part
Definition at line 151 of file rpmlog.c.
static int vsnprintf |
( |
char * |
buf, |
|
|
int |
nb, |
|
|
const char * |
fmt, |
|
|
va_list |
ap | |
|
) |
| | [inline, static] |
Variable Documentation
rpmlogRec recs = NULL [static] |
unsigned rpmlogMask = ((1 << (((unsigned)( RPMLOG_NOTICE ))+1)) - 1) [static] |
all priorities through RPMLOG_NOTICE
Definition at line 99 of file rpmlog.c.
Initial value:
{
"fatal error: " ,
"fatal error: " ,
"fatal error: " ,
"error: " ,
"warning: " ,
"",
"",
"D: ",
}
Definition at line 128 of file rpmlog.c.