summaryrefslogtreecommitdiff
path: root/lang/gcc34-ada/files/adasignal.c
blob: ce6cafc3b7c7b4144080520d21f779f6d19306b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <signal.h>

/* <signal.h> defines macros for a number of
   signal handling functions. Bindings are 
   provided here, that expand the macros,
   for use by the Ada RTS.   */

int adasigaddset(sigset_t *set, int signo) {
    return sigaddset(set, signo);
}

int adasigdelset(sigset_t *set, int signo) {
    return sigdelset(set, signo);
}

int adasigemptyset(sigset_t *set) {
    return sigemptyset(set);
}

int adasigfillset(sigset_t *set) {
    return sigfillset(set);
}

int adasigismember(sigset_t *set, int signo) {
    return sigismember(set, signo);
}

int adasigaction(int sig, const struct sigaction *act, struct sigaction *oact) {
    return sigaction(sig, act, oact);
}

int adasigwait(const sigset_t *set, int *sig) {
    return sigwait(set, sig);
}