X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fposix%2Fsignal.m4;h=4d954b6e89bbe0888e7beaf9b4769a68768d5b4b;hb=7da18b37282b595cec60e6b77d6fc39d9b7f8c5a;hp=a9225ceb3fcc42297737985e6bb6bdeb7f9234af;hpb=c9b3436bd51a4dcf7d6cc6817d4c7a8ad99538d4;p=m6w6%2Fext-psi diff --git a/m4/posix/signal.m4 b/m4/posix/signal.m4 index a9225ce..4d954b6 100644 --- a/m4/posix/signal.m4 +++ b/m4/posix/signal.m4 @@ -1,5 +1,4 @@ PSI_CHECK_SIGNAL() { - PSI_CONFIG_POSIX(signal, signal.h) PSI_PTHREAD @@ -123,14 +122,14 @@ PSI_CHECK_SIGNAL() { int ss_flags] ) - PSI_FUNCTOR_TYPE(void sa_handler, [(int signo)]) - PSI_FUNCTOR_TYPE(void sa_sigaction, [(int signo, siginfo_t *info, ucontext_t *context)]) + PSI_FUNCTOR_TYPE(void sighandler_t, [(int signo)]) + PSI_FUNCTOR_TYPE(void sigaction_t, [(int signo, siginfo_t *info, ucontext_t *context)]) PSI_STRUCT(struct sigaction, [ - sa_handler sa_handler, + sighandler_t sa_handler, sigset_t sa_mask, int sa_flags, - sa_sigaction sa_sigaction] + sigaction_t sa_sigaction] ) PSI_STRUCT(ucontext_t, [ @@ -163,7 +162,7 @@ PSI_CHECK_SIGNAL() { ]) PSI_DECL(int raise, [(int sig)]) - PSI_DECL(int sigaction, [(int sig, const struct sigaction *act, struct sigaction *oact)]) + PSI_DECL(int sigaction, [(int sig, struct sigaction *act, struct sigaction *oact)]) PSI_DECL(int sigaddset, [(sigset_t * set, int signum)]) PSI_DECL(int sigaltstack, [(const stack_t *ss, stack_t *oss)]) PSI_DECL(int sigdelset, [(sigset_t *set, int signum)]) @@ -173,13 +172,13 @@ PSI_CHECK_SIGNAL() { PSI_DECL(int sigignore, [(int sig)]) PSI_DECL(int siginterrupt, [(int sig, int flag)]) PSI_DECL(int sigismember, [(const sigset_t *set, int signum)]) - PSI_DECL(void *signal, [(int sig, void *func)]) + PSI_DECL(sighandler_t signal, [(int sig, sighandler_t func)]) PSI_DECL(int sigpause, [(int sig)]) PSI_DECL(int sigpending, [(sigset_t *set)]) PSI_DECL(int sigprocmask, [(int how, const sigset_t *set, sigset_t *oset)]) PSI_DECL(int sigqueue, [(pid_t pid, int sig, const union sigval value)]) PSI_DECL(int sigrelse, [(int sig)]) - PSI_DECL(void *sigset, [(int sig, void *disp)]) + PSI_DECL(sighandler_t sigset, [(int sig, sighandler_t disp)]) PSI_DECL(int sigsuspend, [(const sigset_t *sigmask)]) PSI_DECL(int sigtimedwait, [(const sigset_t *set, siginfo_t *info, const struct timespec *timeout)]) PSI_DECL(int sigwait, [(const sigset_t *set, int *sig)])