source: trunk/src/emx/include/sys/signal.h@ 1087

Last change on this file since 1087 was 1087, checked in by bird, 22 years ago

USE_EMX and _POSIX_[C_]SOURCE problems with new features.h.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.1 KB
RevLine 
[18]1/* sys/signal.h (emx+gcc) */
2
3#ifndef _SYS_SIGNAL_H
4#define _SYS_SIGNAL_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10typedef int sig_atomic_t;
11
12#define SIGHUP 1 /* Hangup */
13#define SIGINT 2 /* Interrupt (Ctrl-C) */
14#define SIGQUIT 3 /* Quit */
15#define SIGILL 4 /* Illegal instruction */
16#define SIGTRAP 5 /* Single step (debugging) */
17#define SIGABRT 6 /* abort () */
18#define SIGEMT 7 /* EMT instruction */
19#define SIGFPE 8 /* Floating point */
20#define SIGKILL 9 /* Kill process */
21#define SIGBUS 10 /* Bus error */
22#define SIGSEGV 11 /* Segmentation fault */
23#define SIGSYS 12 /* Invalid argument to system call */
24#define SIGPIPE 13 /* Broken pipe */
25#define SIGALRM 14 /* Alarm */
26#define SIGTERM 15 /* Termination, process killed */
27#define SIGUSR1 16 /* User-defined signal #1 */
28#define SIGUSR2 17 /* User-defined signal #2 */
29#define SIGCHLD 18 /* Death of a child process */
30#define SIGBREAK 21 /* Break (Ctrl-Break) */
31#define SIGWINCH 28 /* Window size change (not implemented) */
32
33#define SIGPTRACENOTIFY 128 /* Notification from ptrace() */
34
35#define SIGCLD SIGCHLD
36
37#define SIG_DFL ((void (*)(int))0)
38#define SIG_IGN ((void (*)(int))1)
39#define SIG_ERR ((void (*)(int))-1)
40
41void (*signal (int, void (*)(int)))(int);
42int raise (int);
43
44
45#if !defined (__STRICT_ANSI__)
46
47#define NSIG 29
48
49#define SA_NOCLDSTOP 0x0001
50
51#define SIG_BLOCK 1
52#define SIG_UNBLOCK 2
53#define SIG_SETMASK 3
54
55#if !defined (_SIGSET_T)
56#define _SIGSET_T
57typedef unsigned long sigset_t;
58#endif
59
60struct sigaction
61{
62 void (*sa_handler)(int);
63 sigset_t sa_mask;
64 int sa_flags;
65};
66
67
68int kill (int, int);
69int pause (void);
70
71int sigaction (int, __const__ struct sigaction *, struct sigaction *);
72int sigpending (sigset_t *);
73int sigprocmask (int, __const__ sigset_t *, sigset_t *);
74int sigsuspend (__const__ sigset_t *);
75