Todd C. Miller
019f1f6b93
Use sigabbrev_np(3) to access signal abbreviations if supported.
...
glibc-2.32 has removed sys_sigabbrev[], we can use sigabbrev_np(3) instead.
2020-08-25 16:48:13 -06:00
Todd C. Miller
446ae3f507
Include string.h unconditionally and only use strings.h for strn?casecmp()
...
In the pre-POSIX days BSD had strings.h, not string.h.
Now strings.h is only used for non-ANSI string functions.
2020-05-18 07:59:24 -06:00
Todd C. Miller
dd88460800
We no longer need to include headers we don't use for sudo*.h files.
...
Previously we needed to include headers required by the various
sudo*h files. Now those files are more self-sufficient and we
should only include headers needed by code in the various .c files.
2020-05-18 06:47:04 -06:00
Todd C. Miller
4347ed90d4
Fix compilation on systems with SIGRTMIN/SIGRTMAX but not _SC_RTSIG_MAX.
2019-12-25 11:19:58 -07:00
Todd C. Miller
43e44a9982
Inclue sudo_util.h to get sudo_strtonum() prototype.
2019-10-16 11:12:11 -06:00
Todd C. Miller
f5a7585a4f
strtonum -> sudo_strtonum
2019-10-16 11:04:09 -06:00
Todd C. Miller
b98b82e4a2
sys_signame on macOS contains lower-cases names
2019-08-19 14:25:05 -06:00
Todd C. Miller
48066e0dbd
SIGIOT and SIGABRT are aliases on BSD systems.
2019-08-19 08:36:53 -06:00
Todd C. Miller
29534ad96a
Fix handling of real-time signals.
2019-08-19 08:36:30 -06:00
Todd C. Miller
3e56be3564
Store signal name, not number in I/O log timing file.
...
The "SIG" prefix is not used so, e.g. SIGTERM -> "TERM".
This makes the I/O log files portable from one system to another.
Older I/O log files with signal numbers can still be replayed.
2019-08-05 16:30:58 -06:00