pkgsrc-wip/gcc42/files/adasignal.c
Blair Sadewitz e2413e229d This is a first shot at getting gcc 4.2.0 into pkgsrc. As of now, only
C/C++/objc are supported.  Others are welcome to add the rest, and there're
probably other things to be fixed/done as well that I didn't notice.

Only tested by me on NetBSD/i386 4.99.19, where it works well.
2007-05-08 03:35:16 +00:00

34 lines
771 B
C

#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);
}