17 |
ignore any declaration in the system header files, and always |
ignore any declaration in the system header files, and always |
18 |
declare it ourselves. With luck, this will always work. */ |
declare it ourselves. With luck, this will always work. */ |
19 |
#define sys_siglist no_such_symbol |
#define sys_siglist no_such_symbol |
20 |
|
#define sys_nsig sys_nsig__no_such_symbol |
21 |
|
|
22 |
#include <stdio.h> |
#include <stdio.h> |
23 |
#include <signal.h> |
#include <signal.h> |
24 |
|
|
25 |
/* Routines imported from standard C runtime libraries. */ |
/* Routines imported from standard C runtime libraries. */ |
26 |
|
|
27 |
#ifdef __STDC__ |
#ifdef HAVE_STDLIB_H |
28 |
#include <stddef.h> |
#include <stdlib.h> |
29 |
extern void *malloc (size_t size); /* 4.10.3.3 */ |
#else |
30 |
extern void *memset (void *s, int c, size_t n); /* 4.11.6.1 */ |
extern PTR malloc (); |
31 |
#else /* !__STDC__ */ |
#endif |
32 |
extern char *malloc (); /* Standard memory allocater */ |
|
33 |
extern char *memset (); |
#ifdef HAVE_STRING_H |
34 |
#endif /* __STDC__ */ |
#include <string.h> |
35 |
|
#else |
36 |
|
extern PTR memset (); |
37 |
|
#endif |
38 |
|
|
39 |
/* Undefine the macro we used to hide the definition of sys_siglist |
/* Undefine the macro we used to hide the definition of sys_siglist |
40 |
found in the system header files. */ |
found in the system header files. */ |
41 |
#undef sys_siglist |
#undef sys_siglist |
42 |
|
#undef sys_nsig |
43 |
|
|
44 |
#ifndef NULL |
#ifndef NULL |
45 |
# ifdef __STDC__ |
# ifdef __STDC__ |