#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 | |
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) |
int | vsnprintf (char *buf, int nb, const char *fmt, va_list ap) |
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 | |
int | nrecs = 0 |
rpmlogRec | recs = NULL |
unsigned | rpmlogMask = ((1 << (((unsigned)( RPMLOG_NOTICE ))+1)) - 1) |
unsigned | rpmlogFacility = RPMLOG_USER |
rpmlogCallback | _rpmlogCallback = NULL |
char * | rpmlogMsgPrefix [] |
Definition in file rpmlog.c.
|
Definition at line 17 of file rpmlog.c. Referenced by vrpmlog(). |
|
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
|
|
Definition at line 248 of file rpmlog.c. References rpmlogCode(). |
|
Definition at line 258 of file rpmlog.c. References rpmlogSetCallback(). |
|
Definition at line 253 of file rpmlog.c. References rpmlogMessage(). |
|
Definition at line 237 of file rpmlog.c. References vrpmlog(). Referenced by getGidS(), getGname(), getGnameS(), getUidS(), getUname(), and getUnameS(). |
|
Definition at line 78 of file rpmlog.c. References _free(), and nrecs. Referenced by main(). |
|
Definition at line 46 of file rpmlog.c. References nrecs. Referenced by rpmErrorCode(). |
|
Definition at line 41 of file rpmlog.c. References nrecs. Referenced by buildSpec(). |
|
Definition at line 54 of file rpmlog.c. Referenced by rpmErrorString(). |
|
|
|
Definition at line 62 of file rpmlog.c. References nrecs. Referenced by buildSpec(). |
|
Definition at line 117 of file rpmlog.c. References _rpmlogCallback. Referenced by rpmErrorSetCallback(). |
|
Definition at line 104 of file rpmlog.c. References rpmlogMask. |
|
Definition at line 151 of file rpmlog.c. References _, _free(), _rpmlogCallback, EXIT_FAILURE, nrecs, rpmlogMask, rpmlogMsgPrefix, va_copy, vsnprintf(), xmalloc(), and xrealloc(). Referenced by rpmlog(). |
|
Definition at line 141 of file rpmlog.c. Referenced by snprintf(), and vrpmlog(). |
|
Definition at line 115 of file rpmlog.c. Referenced by rpmlogSetCallback(), and vrpmlog(). |
|
Definition at line 25 of file rpmlog.c. Referenced by rpmlogClose(), rpmlogCode(), rpmlogGetNrecs(), rpmlogMessage(), rpmlogPrint(), and vrpmlog(). |
|
|
|
|
|
all priorities through pri Definition at line 99 of file rpmlog.c. Referenced by rpmlogSetMask(), and vrpmlog(). |
|
Initial value: { "fatal error: " , "fatal error: " , "fatal error: " , "error: " , "warning: " , "", "", "D: ", } Definition at line 128 of file rpmlog.c. Referenced by vrpmlog(). |