OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [sys/] [signal.h] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* libc/sys/linux/sys/signal.h - Signal handling */
2
 
3
/* Written 2000 by Werner Almesberger */
4
 
5
 
6
#ifndef _SYS_SIGNAL_H
7
#define _SYS_SIGNAL_H
8
#define _SIGNAL_H
9
 
10
#include <sys/types.h>
11
#include <bits/sigset.h>
12
#include <bits/signum.h>
13
 
14
/* we want RT signals so we must override the definition of sigset_t
15
   and NSIG */
16
 
17
#undef NSIG
18
#define NSIG _NSIG
19
#undef sigset_t
20
#define sigset_t __sigset_t
21
 
22
typedef void (*_sig_func_ptr) (int);
23
typedef _sig_func_ptr __sighandler_t;
24
 
25
#include <bits/siginfo.h>
26
#include <bits/sigaction.h>
27
#include <bits/sigstack.h>
28
 
29
/* --- include/signal.h thinks it knows better :-( --- */
30
 
31
#undef SIG_DFL
32
#undef SIG_IGN
33
#undef SIG_ERR
34
 
35
/* --- redundant stuff below --- */
36
 
37
#include <_ansi.h>
38
 
39
int     _EXFUN(kill, (int, int));
40
_VOID   _EXFUN(psignal, (int, const char *));
41
int     _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *));
42
int     _EXFUN(sigaddset, (sigset_t *, const int));
43
int     _EXFUN(sigdelset, (sigset_t *, const int));
44
int     _EXFUN(sigismember, (const sigset_t *, int));
45
int     _EXFUN(sigfillset, (sigset_t *));
46
int     _EXFUN(sigemptyset, (sigset_t *));
47
int     _EXFUN(sigpending, (sigset_t *));
48
int     _EXFUN(sigsuspend, (const sigset_t *));
49
int     _EXFUN(sigpause, (int));
50
 
51
#ifndef _POSIX_SOURCE
52
extern const char *const sys_siglist[];
53
typedef __sighandler_t sig_t; /* BSDism */
54
#endif
55
 
56
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.