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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [signal.h.save] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
 
2
#ifndef __SIGNAL_H
3
#define __SIGNAL_H
4
#include 
5
 
6
typedef unsigned long sigset_t;         /* at least 32 bits */
7
 
8
#define _NSIG             32
9
#define NSIG            _NSIG
10
 
11
#define SIGHUP           1
12
#define SIGINT           2
13
#define SIGQUIT          3
14
#define SIGILL           4
15
#define SIGTRAP          5
16
#define SIGABRT          6
17
#define SIGIOT           6
18
#define SIGBUS           7
19
#define SIGFPE           8
20
#define SIGKILL          9
21
#define SIGUSR1         10
22
#define SIGSEGV         11
23
#define SIGUSR2         12
24
#define SIGPIPE         13
25
#define SIGALRM         14
26
#define SIGTERM         15
27
#define SIGSTKFLT       16
28
#define SIGCHLD         17
29
#define SIGCONT         18
30
#define SIGSTOP         19
31
#define SIGTSTP         20
32
#define SIGTTIN         21
33
#define SIGTTOU         22
34
#define SIGURG          23
35
#define SIGXCPU         24
36
#define SIGXFSZ         25
37
#define SIGVTALRM       26
38
#define SIGPROF         27
39
#define SIGWINCH        28
40
#define SIGIO           29
41
#define SIGPOLL         SIGIO
42
/*
43
#define SIGLOST         29
44
*/
45
#define SIGPWR          30
46
#define SIGUNUSED       31
47
 
48
/*
49
 * sa_flags values: SA_STACK is not currently supported, but will allow the
50
 * usage of signal stacks by using the (now obsolete) sa_restorer field in
51
 * the sigaction structure as a stack pointer. This is now possible due to
52
 * the changes in signal handling. LBT 010493.
53
 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
54
 * SA_RESTART flag to get restarting signals (which were the default long ago)
55
 */
56
#define SA_NOCLDSTOP    1
57
#define SA_STACK        0x08000000
58
#define SA_RESTART      0x10000000
59
#define SA_INTERRUPT    0x20000000
60
#define SA_NOMASK       0x40000000
61
#define SA_ONESHOT      0x80000000
62
 
63
#define SIG_BLOCK          0    /* for blocking signals */
64
#define SIG_UNBLOCK        1    /* for unblocking signals */
65
#define SIG_SETMASK        2    /* for setting the signal mask */
66
 
67
/* Type of a signal handler.  */
68
typedef void (*__sighandler_t)(/* int */);
69
 
70
#define SIG_DFL ((__sighandler_t)0)     /* default signal handling */
71
#define SIG_IGN ((__sighandler_t)1)     /* ignore signal */
72
#define SIG_ERR ((__sighandler_t)-1)    /* error return from signal */
73
 
74
struct sigaction {
75
        __sighandler_t sa_handler;
76
        sigset_t sa_mask;
77
        unsigned long sa_flags;
78
        void (*sa_restorer)( /*void*/ );
79
};
80
 
81
/* BSDisms */
82
extern __const char * __const sys_siglist[];
83
#define sig_t __sighandler_t
84
 
85
#endif

powered by: WebSVN 2.1.0

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