File: sysnerr.h

package info (click to toggle)
cssc 1.0.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,620 kB
  • ctags: 1,424
  • sloc: cpp: 13,500; sh: 4,759; ansic: 2,971; perl: 342; makefile: 342; awk: 11
file content (40 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* -*- C++ -*-
 * The contents of this header file is only used if
 * strerror() is not provided by the implementation.
 * It either includes the appropriate header files
 * or declares sys_nerr and sys_errlist itself.
 */


#ifndef HAVE_STRERROR
/* Provide declaration of sys_nerr. 
 */
#ifdef HAVE_SYS_NERR
#if ERRNO_H_DECLARES_SYS_NERR 
#include <errno.h>
#elif STDIO_H_DECLARES_SYS_NERR
#include <stdio.h>
#elif STDLIB_H_DECLARES_SYS_NERR
#include <stdlib.h>
#else
extern int sys_nerr;
#endif
#endif


/* Provide declaration of sys_errlist. 
 */
#ifdef HAVE_SYS_ERRLIST
#if ERRNO_H_DECLARES_SYS_ERRLIST
#include <errno.h>
#elif STDIO_H_DECLARES_SYS_ERRLIST
#include <stdio.h>
#elif STDLIB_H_DECLARES_SYS_ERRLIST
#include <stdlib.h>
#else
extern char *sys_errlist[];
#endif
#endif


#endif