2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
+IMPLEMENT "ansi", "signal.h" ;
|
|
|
29 |
+USE "posix", "sys/types.h" ;
|
|
|
30 |
|
|
|
31 |
+SUBSET "sigset_t" := { +TYPE sigset_t ; } ;
|
|
|
32 |
|
|
|
33 |
+FIELD struct sigaction | struct_sigaction {
|
|
|
34 |
void ( *sa_handler ) ( int ) ;
|
|
|
35 |
sigset_t sa_mask ;
|
|
|
36 |
int sa_flags ;
|
|
|
37 |
} ;
|
|
|
38 |
|
|
|
39 |
+CONST int SIGALRM, SIGCHLD, SIGCONT, SIGHUP, SIGKILL, SIGPIPE, SIGQUIT ;
|
|
|
40 |
+CONST int SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU, SIGUSR1, SIGUSR2 ;
|
|
|
41 |
+CONST int SIG_BLOCK, SIG_SETMASK, SIG_UNBLOCK ;
|
|
|
42 |
+CONST int SA_NOCLDSTOP ;
|
|
|
43 |
|
|
|
44 |
+FUNC int kill ( pid_t, int ) ;
|
|
|
45 |
+FUNC int sigaction ( int, const struct sigaction *, struct sigaction * ) ;
|
|
|
46 |
+FUNC int sigaddset ( sigset_t *, int ) ;
|
|
|
47 |
+FUNC int sigdelset ( sigset_t *, int ) ;
|
|
|
48 |
+FUNC int sigemptyset ( sigset_t * ) ;
|
|
|
49 |
+FUNC int sigfillset ( sigset_t * ) ;
|
|
|
50 |
+FUNC int sigismember ( const sigset_t *, int ) ;
|
|
|
51 |
+FUNC int sigpending ( sigset_t * ) ;
|
|
|
52 |
+FUNC int sigprocmask ( int, const sigset_t *, sigset_t * ) ;
|
|
|
53 |
+FUNC int sigsuspend ( const sigset_t * ) ;
|