diff options
| author | Ricardo Branco <rbranco@suse.de> | 2025-05-10 22:56:03 +0200 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-06-11 17:16:22 -0600 |
| commit | 3d12567133bfb4082a5115f16a71a865ff2af7fb (patch) | |
| tree | 6db25515cee18a0ffadf30901c320419967961eb /include | |
| parent | 6ff5a5bc1a7bc8f669d31ae1dedd779e839c1da1 (diff) | |
Add the POSIX sig2str(3) & str2sig(3) calls
Signed-off-by: Ricardo Branco <rbranco@suse.de>
Reviewed by: imp, kib, des, jilles
Pull Request: https://github.com/freebsd/freebsd-src/pull/1696
Diffstat (limited to 'include')
| -rw-r--r-- | include/signal.h | 9 |
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); |
