Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

rpmio/rpmlog.c File Reference

More...

#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. More...

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 rpmlog (int code, const char *fmt,...)
int rpmErrorCode (void)
const char* rpmErrorString (void)
rpmlogCallback rpmErrorSetCallback (rpmlogCallback cb)

Variables

int nrecs = 0
rpmlogRec recs = NULL
int rpmlogMask = ((1 << (( RPMLOG_NOTICE )+1)) - 1)
int rpmlogFacility = RPMLOG_USER
rpmlogCallback _rpmlogCallback = NULL
char* rpmlogMsgPrefix []


Detailed Description

Definition in file rpmlog.c.


Define Documentation

#define va_copy( DEST, SRC )   ((DEST) = (SRC))
 

Definition at line 17 of file rpmlog.c.


Function Documentation

void * _free ( const void * p ) [inline, static]
 

Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.

Parameters:
p   memory to free
Return values:
NULL   always

Definition at line 33 of file rpmlog.c.

int rpmErrorCode ( void )
 

Definition at line 224 of file rpmlog.c.

rpmlogCallback rpmErrorSetCallback ( rpmlogCallback cb )
 

Definition at line 234 of file rpmlog.c.

const char* rpmErrorString ( void )
 

Definition at line 229 of file rpmlog.c.

void rpmlog ( int code,
const char * fmt,
... )
 

Definition at line 133 of file rpmlog.c.

Referenced by getGidS(), getGname(), getGnameS(), getUidS(), getUname(), and getUnameS().

void rpmlogClose ( void )
 

Definition at line 74 of file rpmlog.c.

Referenced by main().

int rpmlogCode ( void )
 

Definition at line 44 of file rpmlog.c.

Referenced by rpmErrorCode().

int rpmlogGetNrecs ( void )
 

Definition at line 39 of file rpmlog.c.

Referenced by buildSpec().

const char * rpmlogMessage ( void )
 

Definition at line 52 of file rpmlog.c.

Referenced by rpmErrorString().

void rpmlogOpen ( const char * ident,
int option,
int facility )
 

Definition at line 87 of file rpmlog.c.

void rpmlogPrint ( FILE * f )
 

Definition at line 59 of file rpmlog.c.

Referenced by buildSpec().

rpmlogCallback rpmlogSetCallback ( rpmlogCallback cb )
 

Definition at line 105 of file rpmlog.c.

Referenced by rpmErrorSetCallback().

int rpmlogSetMask ( int mask )
 

Definition at line 95 of file rpmlog.c.

int vsnprintf ( char * buf,
int nb,
const char * fmt,
va_list ap ) [inline, static]
 

Definition at line 126 of file rpmlog.c.

Referenced by rpmlog(), and snprintf().


Variable Documentation

rpmlogCallback _rpmlogCallback = NULL [static]
 

Definition at line 103 of file rpmlog.c.

Referenced by rpmlog().

int nrecs = 0 [static]
 

Definition at line 24 of file rpmlog.c.

rpmlogRec recs = NULL [static]
 

Definition at line 25 of file rpmlog.c.

int rpmlogFacility = RPMLOG_USER [static]
 

Definition at line 93 of file rpmlog.c.

int rpmlogMask = ((1 << (( RPMLOG_NOTICE )+1)) - 1) [static]
 

Definition at line 92 of file rpmlog.c.

char * rpmlogMsgPrefix [static]
 

Initial value:

 {
     "fatal error: " ,
     "fatal error: " ,
     "fatal error: " ,
     "error: " ,        
     "warning: " ,      
    "",                 
    "",                 
    "D: ",              
}

Definition at line 113 of file rpmlog.c.


Generated at Mon Sep 24 10:37:52 2001 for rpm by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001