7a161b583607385ca6849db2d7b0137d6d98ba35
1 MODULE C99signal
['signal
.h'
];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM
, C99types
, C99sys_types
, C99time
;
9 signed_char
* = C99types
.signed_char
;
10 unsigned_char
* = C99types
.unsigned_char
;
11 short
* = C99types
.short
;
12 short_int
* = C99types
.short_int
;
13 signed_short
* = C99types
.signed_short
;
14 signed_short_int
* = C99types
.signed_short_int
;
15 unsigned_short
* = C99types
.unsigned_short
;
16 unsigned_short_int
* = C99types
.unsigned_short_int
;
18 signed
* = C99types
.signed
;
19 signed_int
* = C99types
.signed_int
;
20 unsigned
* = C99types
.unsigned
;
21 unsigned_int
* = C99types
.unsigned_int
;
22 long
* = C99types
.long
;
23 long_int
* = C99types
.long_int
;
24 signed_long
* = C99types
.signed_long
;
25 signed_long_int
* = C99types
.signed_long_int
;
26 unsigned_long
* = C99types
.unsigned_long
;
27 unsigned_long_int
* = C99types
.unsigned_long_int
;
28 long_long
* = C99types
.long_long
;
29 long_long_int
* = C99types
.long_long_int
;
30 signed_long_long
* = C99types
.signed_long_long
;
31 signed_long_long_int
* = C99types
.signed_long_long_int
;
32 unsigned_long_long
* = C99types
.unsigned_long_long
;
33 unsigned_long_long_int
* = C99types
.unsigned_long_long_int
;
34 float
* = C99types
.float
;
35 double
* = C99types
.double
;
36 long_double
* = C99types
.long_double
;
44 pthread_t
* = C99sys_types
.pthread_t
;
45 pthread_attr_t
* = C99sys_types
.pthread_attr_t
;
46 size_t
* = C99sys_types
.size_t
;
47 uid_t
* = C99sys_types
.uid_t
;
48 pid_t
* = C99sys_types
.pid_t
;
51 struct_timespec
* = C99time
.struct_timespec
;
54 sig_atomic_t
* = INTEGER;
55 sigset_t
* = RECORD [noalign
] _
: ARRAY [untagged
] 128 OF BYTE END;
58 Pstruct_sigevent
* = POINTER TO struct_sigevent
;
59 struct_sigevent
* ['struct sigevent'
] = RECORD [noalign
] (* 64 *)
60 sigev_value
*: union_sigval
; (* 0+4 *)
61 sigev_signo
*: int
; (* 4+4 *)
62 sigev_notify
*: int
; (* 8+4 *)
63 sigev_notify_function
*: PROCEDURE [ccall
] (x
: union_sigval
); (* 12+4 *)
72 Punion_sigval
* = POINTER TO union_sigval
;
73 union_sigval
* ['union sigval'
] = RECORD [union
] (* 4 *)
74 sival_int
*: int
; (* 0+4 *)
75 sival_ptr
*: C99types
.Pvoid
; (* 0+4 *)
114 P_struct_sigaction
* = POINTER TO _struct_sigaction
;
115 _struct_sigaction
* ['struct sigaction'
] = RECORD [noalign
] (* 140 *)
116 sa_handler
*: PROCEDURE [ccall
] (sig
: int
); (* 0+4 *)
117 sa_sigaction
*: PROCEDURE [ccall
] (sig
: int
; IN siginfo
: siginfo_t
; context
: C99types
.Pvoid
); (* 0+4 *)
118 sa_mask
*: sigset_t
; (* 4+128 *)
119 sa_flags
*: int
; (* 132+4 *)
123 Pstruct_sigaction
* = POINTER TO struct_sigaction
;
124 struct_sigaction
* ['struct sigaction'
] = RECORD [noalign
] (* 140 *)
125 handler
*: RECORD [union
] (* 4 *)
126 sa_handler
*: PROCEDURE [ccall
] (sig
: int
); (* 0+4 *)
127 sa_sigaction
*: PROCEDURE [ccall
] (sig
: int
; IN siginfo
: siginfo_t
; context
: C99types
.Pvoid
); (* 0+4 *)
129 sa_mask
*: sigset_t
; (* 4+128 *)
130 sa_flags
*: int
; (* 132+4 *)
140 SA_ONSTACK
* = 134217728;
141 SA_RESETHAND
* = -2147483648;
142 SA_RESTART
* = 268435456;
145 SA_NODEFER
* = 1073741824;
152 mcontext_t
* = RECORD [noalign
] _
: ARRAY [untagged
] 88 OF BYTE END;
155 Pucontext_t
* = POINTER TO ucontext_t
;
156 ucontext_t
* ['ucontext_t'
] = RECORD [noalign
] (* 348 *)
157 uc_link
*: Pucontext_t
; (* 4+4 *)
158 uc_stack
*: stack_t
; (* 8+12 *)
159 uc_mcontext
*: mcontext_t
; (* 20+88 *)
160 uc_sigmask
*: sigset_t
; (* 108+128 *)
164 Pstack_t
* = POINTER TO stack_t
;
165 stack_t
* ['stack_t'
] = RECORD [noalign
] (* 12 *)
166 ss_sp
*: C99types
.Pvoid
; (* 0+4 *)
167 ss_flags
*: int
; (* 4+4 *)
168 ss_size
*: size_t
; (* 8+4 *)
172 P_siginfo_t
* = POINTER TO _siginfo_t
;
173 _siginfo_t
* ['siginfo_t'
] = RECORD [noalign
] (* 128 *)
174 si_signo
*: int
; (* 0+4 *)
175 si_errno
*: int
; (* 4+4 *)
176 si_code
*: int
; (* 8+4 *)
177 si_pid
*: pid_t
; (* 12+4 *)
178 si_addr
*: C99types
.Pvoid
; (* 12+4 *)
179 si_band
*: long
; (* 12+4 *)
180 si_uid
*: uid_t
; (* 16+4 *)
181 si_status
*: int
; (* 20+4 *)
182 si_value
*: union_sigval
; (* 20+4 *)
186 Psiginfo_t
* = POINTER TO siginfo_t
;
187 siginfo_t
* ['siginfo_t'
] = RECORD [noalign
] (* 128 *)
188 si_signo
*: int
; (* 0+4 *)
189 si_errno
*: int
; (* 4+4 *)
190 si_code
*: int
; (* 8+4 *)
191 info
*: RECORD [union
] (* 24 *)
192 sigill
*: RECORD [noalign
] (* 16 *)
193 si_addr
*: C99types
.Pvoid
; (* 12+4 *)
195 sigfpe
*: RECORD [noalign
] (* 16 *)
196 si_addr
*: C99types
.Pvoid
; (* 12+4 *)
198 sigsegv
*: RECORD [noalign
] (* 16 *)
199 si_addr
*: C99types
.Pvoid
; (* 12+4 *)
201 sigbus
*: RECORD [noalign
] (* 16 *)
202 si_addr
*: C99types
.Pvoid
; (* 12+4 *)
204 sigchld
*: RECORD [noalign
] (* 24 *)
205 si_pid
*: pid_t
; (* 12+4 *)
206 si_uid
*: uid_t
; (* 16+4 *)
207 si_status
*: int
; (* 20+4 *)
209 sigpoll
*: RECORD [noalign
] (* 16 *)
210 si_band
*: long
; (* 12+4 *)
212 other
*: RECORD [noalign
] (* 24 *)
213 si_value
*: union_sigval
; (* 20+4 *)
270 PROCEDURE [ccall
] kill
* (pid
: pid_t
; sig
: int
): int
;
271 PROCEDURE [ccall
] killpg
* (pgrp
, sig
: int
): int
;
272 PROCEDURE [ccall
] psiginfo
* (IN pinfo
: siginfo_t
; IN [nil
] s
: ARRAY [untagged
] OF SHORTCHAR
);
273 PROCEDURE [ccall
] psignal
* (sig
: int
; IN [nil
] s
: ARRAY [untagged
] OF SHORTCHAR
);
274 PROCEDURE [ccall
] pthread_kill
* (thread
: pthread_t
; sig
: int
): int
;
275 PROCEDURE [ccall
] pthread_sigmask
* (how
: int
; IN [nil
] set
: sigset_t
; VAR [nil
] oldset
: sigset_t
): int
;
276 PROCEDURE [ccall
] raise
* (sig
: int
): int
;
277 PROCEDURE [ccall
] sigaction
* (sig
: int
; IN [nil
] act
: struct_sigaction
; VAR [nil
] oact
: struct_sigaction
): int
;
278 PROCEDURE [ccall
] sigaddset
* (VAR set
: sigset_t
; signum
: int
): int
;
279 PROCEDURE [ccall
] sigaltstack
* (IN [nil
] ss
: stack_t
; VAR [nil
] oss
: stack_t
): int
;
280 PROCEDURE [ccall
] sigdelset
* (VAR set
: sigset_t
; signum
: int
): int
;
281 PROCEDURE [ccall
] sigemptyset
* (VAR set
: sigset_t
): int
;
282 PROCEDURE [ccall
] sigfillset
* (VAR set
: sigset_t
): int
;
283 PROCEDURE [ccall
] sighold
* (sig
: int
): int
;
284 PROCEDURE [ccall
] sigignore
* (sig
: int
): int
;
285 PROCEDURE [ccall
] siginterrupt
* (sig
, flag
: int
): int
;
286 PROCEDURE [ccall
] sigismember
* (IN set
: sigset_t
; signum
: int
): int
;
287 PROCEDURE [ccall
] sigpause
* (sig
: int
): int
;
288 PROCEDURE [ccall
] sigpending
* (VAR set
: sigset_t
): int
;
289 PROCEDURE [ccall
] sigprocmask
* (how
: int
; IN [nil
] set
: sigset_t
; VAR [nil
] oset
: sigset_t
): int
;
290 PROCEDURE [ccall
] sigqueue
* (pid
: pid_t
; sig
: int
; IN value
: union_sigval
): int
;
291 PROCEDURE [ccall
] sigrelse
* (sig
: int
): int
;
292 PROCEDURE [ccall
] sigsuspend
* (IN sigmask
: sigset_t
): int
;
293 PROCEDURE [ccall
] sigtimedwait
* (IN set
: sigset_t
; VAR [nil
] info
: siginfo_t
; IN timeout
: struct_timespec
): int
;
294 PROCEDURE [ccall
] sigwait
* (IN set
: sigset_t
; VAR sig
: int
): int
;
295 PROCEDURE [ccall
] sigwaitinfo
* (IN set
: sigset_t
; VAR [nil
] info
: siginfo_t
): int
;