Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 "xpg4", "signal.h" ;
29
+IMPLEMENT "unix95", "ucontext.h", "sig" ;
30
 
31
+CONST void ( *SIG_HOLD ) ( int ) ;
32
 
33
+CONST int SIGTRAP, SIGBUS, SIGSYS, SIGPOLL, SIGPROF, SIGXCPU ;
34
+CONST int SIGXFSZ, SIGURG, SIGVTALRM ;
35
 
36
+CONST int SA_ONSTACK, SA_RESETHAND, SA_RESTART, SA_SIGINFO, SA_NOCLDWAIT ;
37
+CONST int SA_NODEFER ;
38
 
39
+CONST int MINSIGSTKSZ, SIGSTKSZ ;
40
 
41
+CONST int SS_ONSTACK, SS_DISABLE ;
42
 
43
+FIELD struct sigstack | sigstack_struct {
44
    int ss_onstack ;
45
    void *ss_sp ;
46
} ;
47
 
48
+SUBSET "siginfo_t" := {
49
    +USE "posix", "sys/types.h" ;			# for uid_t
50
    +IMPLEMENT "posix", "sys/types.h", "pid_t" ;
51
 
52
    +FIELD ( struct ) siginfo_t {
53
	int si_signo ;
54
	int si_errno ;
55
	int si_code ;
56
	pid_t si_pid ;
57
	uid_t si_uid ;
58
	void *si_addr ;
59
	int si_status ;
60
	long si_band ;
61
    } ;
62
} ;
63
 
64
+FIELD struct sigaction | struct_sigaction {
65
    void ( *sa_sigaction ) ( int, siginfo_t *, void * ) ;
66
} ;
67
 
68
+CONST int ILL_ILLOPC, ILL_ILLOPN, ILL_ILLADR, ILL_ILLTRP ;
69
+CONST int ILL_PRVOPC, ILL_PRVREG, ILL_COPROC, ILL_BADSTK ;
70
 
71
+CONST int FPE_INTDIV, FPE_INTOVF, FPE_FLTDIV, FPE_FLTOVF ;
72
+CONST int FPE_FLTUND, FPE_FLTRES, FPE_FLTINV, FPE_FLTSUB ;
73
 
74
+CONST int SEGV_MAPERR, SEGV_ACCERR ;
75
 
76
+CONST int BUS_ADRALN, BUS_ADRERR, BUS_OBJERR ;
77
 
78
+CONST int TRAP_BRKPT, TRAP_TRACE ;
79
 
80
+CONST int CLD_EXITED, CLD_KILLED, CLD_DUMPED, CLD_TRAPPED ;
81
+CONST int CLD_STOPPED, CLD_CONTINUED ;
82
 
83
+CONST int POLL_IN, POLL_OUT, POLL_MSG ;
84
+CONST int POLL_ERR, POLL_PRI, POLL_HUP ;
85
 
86
+FUNC void ( * bsd_signal ( int, void ( * ) ( int ) ) ) ( int ) ;
87
+FUNC int killpg ( pid_t, int ) ;
88
+FUNC int sigaltstack ( const stack_t *, stack_t * ) ;
89
+FUNC int sigignore ( int ) ;
90
+FUNC int sighold ( int ) ;
91
+FUNC int siginterrupt ( int, int ) ;
92
+FUNC int sigpause ( int ) ;
93
+FUNC void ( *sigset ( int, void (*) ( int ) ) ) ( int ) ;
94
+FUNC int sigrelse ( int ) ;
95
+FUNC int sigstack ( struct sigstack *, struct sigstack * ) ;
96
 
97
/* +MACRO int sigmask ( int ) ;		Corrigenda U013 1170/37: remove */