Search
lxdream.org :: lxdream/test/include/signal.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/signal.h
changeset 185:6755a04c447f
author nkeynes
date Fri Dec 02 18:18:04 2011 +1000 (12 years ago)
permissions -rw-r--r--
last change SH4 shadow-mode tweaks
- Fix exceptions generated by the translator to account for the excepting
instruction(s) in the cycle counts.
- Compare floating point regs bitwise rather than with FP comparisons
(otherwise can fail due to nan != nan)
- Dump the translated block when we abort with an inconsistency
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/include/signal.h Fri Dec 02 18:18:04 2011 +1000
1.3 @@ -0,0 +1,37 @@
1.4 +#ifndef _SIGNAL_H_
1.5 +#ifdef __cplusplus
1.6 +extern "C" {
1.7 +#endif
1.8 +#define _SIGNAL_H_
1.9 +
1.10 +#include "_ansi.h"
1.11 +#include <sys/signal.h>
1.12 +
1.13 +typedef int sig_atomic_t; /* Atomic entity type (ANSI) */
1.14 +
1.15 +#if defined(__STDC__) || defined(__cplusplus)
1.16 +#define SIG_DFL ((void (*)(int))0) /* Default action */
1.17 +#define SIG_IGN ((void (*)(int))1) /* Ignore action */
1.18 +#define SIG_ERR ((void (*)(int))-1) /* Error return */
1.19 +#else
1.20 +#define SIG_DFL ((void (*)())0) /* Default action */
1.21 +#define SIG_IGN ((void (*)())1) /* Ignore action */
1.22 +#define SIG_ERR ((void (*)())-1) /* Error return */
1.23 +#endif
1.24 +
1.25 +typedef void (*_sig_func_ptr) (int);
1.26 +
1.27 +struct _reent;
1.28 +
1.29 +_sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
1.30 +int _EXFUN(_raise_r, (struct _reent *, int));
1.31 +
1.32 +#ifndef _REENT_ONLY
1.33 +_sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
1.34 +int _EXFUN(raise, (int));
1.35 +#endif
1.36 +
1.37 +#ifdef __cplusplus
1.38 +}
1.39 +#endif
1.40 +#endif /* _SIGNAL_H_ */
.