Search
lxdream.org :: lxdream/test/include/signal.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/signal.h
changeset 185:6755a04c447f
author nkeynes
date Fri Feb 08 00:06:56 2008 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix LDS/STS to FPUL/FPSCR to check the FPU disabled bit. Fixes
the linux 2.4.0-test8 kernel boot
(this wasn't exactly very well documented in the original manual)
view annotate diff log raw
     1 #ifndef _SIGNAL_H_
     2 #ifdef __cplusplus
     3 extern "C" {
     4 #endif
     5 #define _SIGNAL_H_
     7 #include "_ansi.h"
     8 #include <sys/signal.h>
    10 typedef int	sig_atomic_t;		/* Atomic entity type (ANSI) */
    12 #if defined(__STDC__) || defined(__cplusplus)
    13 #define SIG_DFL ((void (*)(int))0)	/* Default action */
    14 #define SIG_IGN ((void (*)(int))1)	/* Ignore action */
    15 #define SIG_ERR ((void (*)(int))-1)	/* Error return */
    16 #else
    17 #define SIG_DFL ((void (*)())0)		/* Default action */
    18 #define SIG_IGN ((void (*)())1)		/* Ignore action */
    19 #define SIG_ERR ((void (*)())-1)	/* Error return */
    20 #endif
    22 typedef void (*_sig_func_ptr) (int);
    24 struct _reent;
    26 _sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
    27 int	_EXFUN(_raise_r, (struct _reent *, int));
    29 #ifndef _REENT_ONLY
    30 _sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
    31 int	_EXFUN(raise, (int));
    32 #endif
    34 #ifdef __cplusplus
    35 }
    36 #endif
    37 #endif /* _SIGNAL_H_ */
.