dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Functions | Variables
error.c File Reference
#include <config.h>
#include "error.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "getprogname.h"
#include <fcntl.h>
#include <unistd.h>
Include dependency graph for error.c:

Macros

#define _(String)   String
 
#define program_name   getprogname ()
 

Functions

this configure time declaration test was not run int strerror_r (int errnum, char *buf, size_t buflen)
 
static int is_open (int fd)
 
static void flush_stdout (void)
 
static void print_errno_message (int errnum)
 
static void _GL_ATTRIBUTE_FORMAT_PRINTF (3, 0)
 
void error (int status, int errnum, const char *message,...)
 
void error_at_line (int status, int errnum, const char *file_name, unsigned int line_number, const char *message,...)
 

Variables

void(* error_print_progname )(void)
 
unsigned int error_message_count
 
int error_one_per_line
 

Macro Definition Documentation

◆ _

#define _ (   String)    String

Referenced by print_errno_message().

◆ program_name

#define program_name   getprogname ()

Function Documentation

◆ _GL_ATTRIBUTE_FORMAT_PRINTF()

static void _GL_ATTRIBUTE_FORMAT_PRINTF ( ,
 
)
static
Here is the call graph for this function:

◆ error()

void error ( int  status,
int  errnum,
const char *  message,
  ... 
)

◆ error_at_line()

void error_at_line ( int  status,
int  errnum,
const char *  file_name,
unsigned int  line_number,
const char *  message,
  ... 
)
Here is the call graph for this function:

◆ flush_stdout()

static void flush_stdout ( void  )
static

Referenced by error(), and error_at_line().

Here is the call graph for this function:

◆ is_open()

static int is_open ( int  fd)
static

Referenced by flush_stdout().

◆ print_errno_message()

static void print_errno_message ( int  errnum)
static

Referenced by _GL_ATTRIBUTE_FORMAT_PRINTF().

Here is the call graph for this function:

◆ strerror_r()

this configure time declaration test was not run int strerror_r ( int  errnum,
char *  buf,
size_t  buflen 
)

Variable Documentation

◆ error_message_count

unsigned int error_message_count

◆ error_one_per_line

int error_one_per_line

◆ error_print_progname

void(* error_print_progname) (void)

Referenced by error(), and error_at_line().