aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/signal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/signal.h b/include/signal.h
index c1d341f317f4..22fefb63568f 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -40,6 +40,10 @@
#include <sys/_ucontext.h>
#endif
+#if __POSIX_VISIBLE >= 202405 || __BSD_VISIBLE
+#define SIG2STR_MAX 32 /* size of buffer required for sig2str() */
+#endif
+
__NULLABILITY_PRAGMA_PUSH
#if __BSD_VISIBLE
@@ -119,6 +123,11 @@ void psiginfo(const siginfo_t *, const char *);
void psignal(int, const char *);
#endif
+#if __POSIX_VISIBLE >= 202405 || __BSD_VISIBLE
+int sig2str(int, char *);
+int str2sig(const char * __restrict, int * __restrict);
+#endif
+
#if __BSD_VISIBLE
int sigandset(sigset_t *dest, const sigset_t *left, const sigset_t *right);
int sigblock(int);