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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [cris/] [sys/] [signal.h] - Blame information for rev 438

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

Line No. Rev Author Line
1 148 jeremybenn
/* This file is to be kept in sync (well, reasonably so, it's quite
2
   different) with newlib/libc/include/sys/signal.h on which it is
3
   based, except values used or returned by syscalls must be those of
4
   the Linux/CRIS kernel.  */
5
 
6
/* sys/signal.h */
7
 
8
#ifndef _SYS_SIGNAL_H
9
#define _SYS_SIGNAL_H
10
#ifdef __cplusplus
11
extern "C" {
12
#endif
13
 
14
#include "_ansi.h"
15
 
16
typedef unsigned long sigset_t;
17
 
18
/* Adjusted to linux, has unused sa_restorer field and unsigned long
19
   sa_flags; relatively unimportant though.  */
20
/* Type of a signal handler.  */
21
typedef void (*__sighandler_t)(int);
22
 
23
/* The type used in newlib sources.  */
24
typedef __sighandler_t _sig_func_ptr;
25
 
26
struct sigaction {
27
        __sighandler_t sa_handler;
28
        sigset_t sa_mask;
29
        unsigned long sa_flags;
30
        void (*sa_restorer)(void);
31
};
32
 
33
/* Adjusted to glibc; other values.  */
34
#define SA_NOCLDSTOP 1  /* only value supported now for sa_flags */
35
#define SIG_SETMASK 2   /* set mask with sigprocmask() */
36
#define SIG_BLOCK 0     /* set of signals to block */
37
#define SIG_UNBLOCK 1   /* set of signals to, well, unblock */
38
 
39
/* These depend upon the type of sigset_t, which right now
40
   is always a long.. They're in the POSIX namespace, but
41
   are not ANSI. */
42
#define sigaddset(what,sig) (*(what) |= (1<<(sig)))
43
#define sigemptyset(what)   (*(what) = 0)
44
 
45
int sigprocmask (int __how, const sigset_t *__a, sigset_t *__b);
46
 
47
#define SIGHUP           1
48
#define SIGINT           2
49
#define SIGQUIT          3
50
#define SIGILL           4
51
#define SIGTRAP          5
52
#define SIGABRT          6
53
#define SIGIOT           6
54
#define SIGBUS           7
55
#define SIGFPE           8
56
#define SIGKILL          9
57
#define SIGUSR1         10
58
#define SIGSEGV         11
59
#define SIGUSR2         12
60
#define SIGPIPE         13
61
#define SIGALRM         14
62
#define SIGTERM         15
63
#define SIGSTKFLT       16
64
#define SIGCHLD         17
65
#define SIGCONT         18
66
#define SIGSTOP         19
67
#define SIGTSTP         20
68
#define SIGTTIN         21
69
#define SIGTTOU         22
70
#define SIGURG          23
71
#define SIGXCPU         24
72
#define SIGXFSZ         25
73
#define SIGVTALRM       26
74
#define SIGPROF         27
75
#define SIGWINCH        28
76
#define SIGIO           29
77
#define SIGPOLL         SIGIO
78
#define SIGPWR          30
79
#define NSIG 31
80
 
81
#ifdef __cplusplus
82
}
83
#endif
84
#ifndef _SIGNAL_H_
85
/* Some applications take advantage of the fact that <sys/signal.h>
86
 * and <signal.h> are equivalent in glibc.  Allow for that here.  */
87
#include <signal.h>
88
#endif
89
#endif /* _SYS_SIGNAL_H */

powered by: WebSVN 2.1.0

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