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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-alpha/] [signal.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1632 jcastillo
#ifndef _ASMAXP_SIGNAL_H
2
#define _ASMAXP_SIGNAL_H
3
 
4
typedef unsigned long sigset_t;         /* at least 32 bits */
5
 
6
#define _NSIG             32
7
#define NSIG            _NSIG
8
 
9
/*
10
 * Linux/AXP has different signal numbers that Linux/i386: I'm trying
11
 * to make it OSF/1 binary compatible, at least for normal binaries.
12
 */
13
#define SIGHUP           1
14
#define SIGINT           2
15
#define SIGQUIT          3
16
#define SIGILL           4
17
#define SIGTRAP          5
18
#define SIGABRT          6
19
#define SIGEMT           7
20
#define SIGFPE           8
21
#define SIGKILL          9
22
#define SIGBUS          10
23
#define SIGSEGV         11
24
#define SIGSYS          12
25
#define SIGPIPE         13
26
#define SIGALRM         14
27
#define SIGTERM         15
28
#define SIGURG          16
29
#define SIGSTOP         17
30
#define SIGTSTP         18
31
#define SIGCONT         19
32
#define SIGCHLD         20
33
#define SIGTTIN         21
34
#define SIGTTOU         22
35
#define SIGIO           23
36
#define SIGXCPU         24
37
#define SIGXFSZ         25
38
#define SIGVTALRM       26
39
#define SIGPROF         27
40
#define SIGWINCH        28
41
#define SIGINFO         29
42
#define SIGUSR1         30
43
#define SIGUSR2         31
44
 
45
#define SIGPOLL SIGIO
46
#define SIGPWR  SIGINFO
47
#define SIGIOT  SIGABRT
48
 
49
/*
50
 * sa_flags values: SA_STACK is not currently supported, but will allow the
51
 * usage of signal stacks by using the (now obsolete) sa_restorer field in
52
 * the sigaction structure as a stack pointer. This is now possible due to
53
 * the changes in signal handling. LBT 010493.
54
 * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
55
 * SA_RESTART flag to get restarting signals (which were the default long ago)
56
 * SA_SHIRQ flag is for shared interrupt support on PCI and EISA.
57
 */
58
#define SA_NOCLDSTOP    0x00000004
59
 
60
#define SA_STACK        0x00000001
61
#define SA_RESTART      0x00000002
62
#define SA_INTERRUPT    0x20000000
63
#define SA_NOMASK       0x00000008
64
#define SA_ONESHOT      0x00000010
65
#define SA_SHIRQ        0x00000020
66
 
67
#ifdef __KERNEL__
68
/*
69
 * These values of sa_flags are used only by the kernel as part of the
70
 * irq handling routines.
71
 *
72
 * SA_INTERRUPT is also used by the irq handling routines.
73
 */
74
#define SA_PROBE SA_ONESHOT
75
#define SA_SAMPLE_RANDOM SA_RESTART
76
#endif
77
 
78
 
79
#define SIG_BLOCK          1    /* for blocking signals */
80
#define SIG_UNBLOCK        2    /* for unblocking signals */
81
#define SIG_SETMASK        3    /* for setting the signal mask */
82
 
83
/* Type of a signal handler.  */
84
typedef void (*__sighandler_t)(int);
85
 
86
#define SIG_DFL ((__sighandler_t)0)     /* default signal handling */
87
#define SIG_IGN ((__sighandler_t)1)     /* ignore signal */
88
#define SIG_ERR ((__sighandler_t)-1)    /* error return from signal */
89
 
90
struct sigaction {
91
        __sighandler_t  sa_handler;
92
        sigset_t        sa_mask;
93
        unsigned int    sa_flags;
94
};
95
 
96
#ifdef __KERNEL__
97
#include <asm/sigcontext.h>
98
#endif
99
 
100
#endif

powered by: WebSVN 2.1.0

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