osprey/cygnus/libiberty/strerror.c File Reference

#include "config.h"
#include "ansidecl.h"
#include "libiberty.h"
#include <stdio.h>
#include <errno.h>

Include dependency graph for strerror.c:

Go to the source code of this file.

Data Types

type  error_info

Defines

#define MAX(a, b)   ((a) > (b) ? (a) : (b))
#define ENTRY(value, name, msg)   {value, name, msg}
#define sys_nerr   sys_nerr__
#define sys_errlist   sys_errlist__

Functions/Subroutines

PTR malloc ()
PTR memset ()
static void init_error_tables PARAMS ((void))
static void init_error_tables ()
int errno_max ()
char * strerror (int errnoval)
const char * strerrno (int errnoval)
int strtoerrno (char *name) const

Variables

static struct error_info error_table []
static const char ** error_names
static int num_error_names = 0
static int sys_nerr
static const char ** sys_errlist


Define Documentation

#define ENTRY ( value,
name,
msg   )     {value, name, msg}

Definition at line 73 of file strerror.c.

#define MAX ( a,
b   )     ((a) > (b) ? (a) : (b))

Definition at line 47 of file strerror.c.

#define sys_errlist   sys_errlist__

#define sys_nerr   sys_nerr__


Function Documentation

int errno_max ( void   ) 

Definition at line 591 of file strerror.c.

Referenced by mpw_start_progress().

static void init_error_tables ( void   )  [static]

Definition at line 510 of file strerror.c.

References malloc, memset, msg, and NULL.

Referenced by errno_max(), strerrno(), strerror(), and strtoerrno().

PTR malloc (  ) 

PTR memset (  ) 

static void init_error_tables PARAMS ( (void  )  [static, read]

Definition at line 77 of file cplus-dem.c.

const char* strerrno ( int  errnoval  ) 

Definition at line 697 of file strerror.c.

char* strerror ( int  errnoval  ) 

int strtoerrno ( char *  name  )  const

Definition at line 745 of file strerror.c.

References init_error_tables(), NULL, and strcmp().


Variable Documentation

const char** error_names [static]

Definition at line 456 of file strerror.c.

Definition at line 78 of file strerror.c.

int num_error_names = 0 [static]

Definition at line 457 of file strerror.c.

Referenced by errno_max(), init_error_tables(), strerrno(), and strtoerrno().

const char** sys_errlist [static]

Definition at line 472 of file strerror.c.

int sys_nerr [static]

Definition at line 471 of file strerror.c.


Generated on Wed Apr 8 15:03:49 2009 for Open64 by  doxygen 1.5.6