mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 11:00:04 +08:00
c1a3171f2d
* libc/include/stdio.h: Untangle, add _BEGIN_STD_C and _END_STD_C. * libc/include/time.h: Same. * libc/include/string.h: Same. * libc/include/stdlib.h: Same. * libc/include/signal.h: Same. * libc/include/setjmp.h: Same. * libc/include/math.h: Same. * libc/include/locale.h: Same. * libc/include/ctype.h: Same. * libc/include/machine/setjmp.h: Same. * libc/include/_ansi.h (_BEGIN_STD_C): Add. (_END_STD_C): Add.
36 lines
857 B
C
36 lines
857 B
C
#ifndef _SIGNAL_H_
|
|
#define _SIGNAL_H_
|
|
|
|
#include "_ansi.h"
|
|
#include <sys/signal.h>
|
|
|
|
_BEGIN_STD_C
|
|
|
|
typedef int sig_atomic_t; /* Atomic entity type (ANSI) */
|
|
|
|
#if defined(__STDC__) || defined(__cplusplus)
|
|
#define SIG_DFL ((void (*)(int))0) /* Default action */
|
|
#define SIG_IGN ((void (*)(int))1) /* Ignore action */
|
|
#define SIG_ERR ((void (*)(int))-1) /* Error return */
|
|
#else
|
|
#define SIG_DFL ((void (*)())0) /* Default action */
|
|
#define SIG_IGN ((void (*)())1) /* Ignore action */
|
|
#define SIG_ERR ((void (*)())-1) /* Error return */
|
|
#endif
|
|
|
|
typedef void (*_sig_func_ptr) (int);
|
|
|
|
struct _reent;
|
|
|
|
_sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
|
|
int _EXFUN(_raise_r, (struct _reent *, int));
|
|
|
|
#ifndef _REENT_ONLY
|
|
_sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
|
|
int _EXFUN(raise, (int));
|
|
#endif
|
|
|
|
_END_STD_C
|
|
|
|
#endif /* _SIGNAL_H_ */
|