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 Sat Mar 03 15:52:59 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Swap between run + pause icons when pressed
file annotate diff log raw
nkeynes@185
     1
#ifndef _SIGNAL_H_
nkeynes@185
     2
#ifdef __cplusplus
nkeynes@185
     3
extern "C" {
nkeynes@185
     4
#endif
nkeynes@185
     5
#define _SIGNAL_H_
nkeynes@185
     6
nkeynes@185
     7
#include "_ansi.h"
nkeynes@185
     8
#include <sys/signal.h>
nkeynes@185
     9
nkeynes@185
    10
typedef int	sig_atomic_t;		/* Atomic entity type (ANSI) */
nkeynes@185
    11
nkeynes@185
    12
#if defined(__STDC__) || defined(__cplusplus)
nkeynes@185
    13
#define SIG_DFL ((void (*)(int))0)	/* Default action */
nkeynes@185
    14
#define SIG_IGN ((void (*)(int))1)	/* Ignore action */
nkeynes@185
    15
#define SIG_ERR ((void (*)(int))-1)	/* Error return */
nkeynes@185
    16
#else
nkeynes@185
    17
#define SIG_DFL ((void (*)())0)		/* Default action */
nkeynes@185
    18
#define SIG_IGN ((void (*)())1)		/* Ignore action */
nkeynes@185
    19
#define SIG_ERR ((void (*)())-1)	/* Error return */
nkeynes@185
    20
#endif
nkeynes@185
    21
nkeynes@185
    22
typedef void (*_sig_func_ptr) (int);
nkeynes@185
    23
nkeynes@185
    24
struct _reent;
nkeynes@185
    25
nkeynes@185
    26
_sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
nkeynes@185
    27
int	_EXFUN(_raise_r, (struct _reent *, int));
nkeynes@185
    28
nkeynes@185
    29
#ifndef _REENT_ONLY
nkeynes@185
    30
_sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
nkeynes@185
    31
int	_EXFUN(raise, (int));
nkeynes@185
    32
#endif
nkeynes@185
    33
nkeynes@185
    34
#ifdef __cplusplus
nkeynes@185
    35
}
nkeynes@185
    36
#endif
nkeynes@185
    37
#endif /* _SIGNAL_H_ */
.