13 |
incompatible with our later declaration, perhaps by using const |
incompatible with our later declaration, perhaps by using const |
14 |
attributes. So we hide the declaration in errno.h (if any) using a |
attributes. So we hide the declaration in errno.h (if any) using a |
15 |
macro. */ |
macro. */ |
16 |
|
#define sys_nerr sys_nerr__ |
17 |
#define sys_errlist sys_errlist__ |
#define sys_errlist sys_errlist__ |
18 |
#endif |
#endif |
19 |
|
|
21 |
#include <errno.h> |
#include <errno.h> |
22 |
|
|
23 |
#ifdef HAVE_SYS_ERRLIST |
#ifdef HAVE_SYS_ERRLIST |
24 |
|
#undef sys_nerr |
25 |
#undef sys_errlist |
#undef sys_errlist |
26 |
#endif |
#endif |
27 |
|
|
28 |
/* Routines imported from standard C runtime libraries. */ |
/* Routines imported from standard C runtime libraries. */ |
29 |
|
|
30 |
#ifdef __STDC__ |
#ifdef HAVE_STDLIB_H |
31 |
#include <stddef.h> |
#include <stdlib.h> |
32 |
extern void *malloc (size_t size); /* 4.10.3.3 */ |
#else |
33 |
extern void *memset (void *s, int c, size_t n); /* 4.11.6.1 */ |
extern PTR malloc (); |
34 |
#else /* !__STDC__ */ |
#endif |
35 |
extern char *malloc (); /* Standard memory allocater */ |
|
36 |
extern char *memset (); |
#ifdef HAVE_STRING_H |
37 |
#endif /* __STDC__ */ |
#include <string.h> |
38 |
|
#else |
39 |
|
extern PTR memset (); |
40 |
|
#endif |
41 |
|
|
42 |
#ifndef MAX |
#ifndef MAX |
43 |
# define MAX(a,b) ((a) > (b) ? (a) : (b)) |
# define MAX(a,b) ((a) > (b) ? (a) : (b)) |