diff options
-rw-r--r-- | include/signal.h | 3 | ||||
-rw-r--r-- | src/signal/psiginfo.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/signal.h b/include/signal.h index 6625981f..5f39ddbd 100644 --- a/include/signal.h +++ b/include/signal.h @@ -87,6 +87,9 @@ int sigqueue(pid_t, int, const union sigval); int pthread_sigmask(int, const sigset_t *, sigset_t *); int pthread_kill(pthread_t, int); +void psiginfo(const siginfo_t *, const char *); +void psignal(int, const char *); + #endif #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) diff --git a/src/signal/psiginfo.c b/src/signal/psiginfo.c index fa46d2bf..57be34cd 100644 --- a/src/signal/psiginfo.c +++ b/src/signal/psiginfo.c @@ -2,7 +2,7 @@ #include <string.h> #include <signal.h> -void psiginfo(siginfo_t *si, const char *msg) +void psiginfo(const siginfo_t *si, const char *msg) { char *s = strsignal(si->si_signo); if (msg) fprintf(stderr, "%s: %s\n", msg, s); |