diff options
author | peter <peter@FreeBSD.org> | 1999-05-18 04:48:58 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-18 04:48:58 +0000 |
commit | 91cb63bd8223191ce6a215de17a443593f687017 (patch) | |
tree | ca6b84ed415b795714421da075acf2dec7728934 /lib/libc/gen/siglist.c | |
parent | 1d5521a97728c89e833a1b1790e8d9f257cf6206 (diff) | |
download | FreeBSD-src-91cb63bd8223191ce6a215de17a443593f687017.zip FreeBSD-src-91cb63bd8223191ce6a215de17a443593f687017.tar.gz |
Add a strsignal(3) (like strerror(3)) for libc compatability with other
systems. NetBSD, Linux, SVR4 etc all have it.
Diffstat (limited to 'lib/libc/gen/siglist.c')
-rw-r--r-- | lib/libc/gen/siglist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/siglist.c b/lib/libc/gen/siglist.c index be6334d..e6987d5 100644 --- a/lib/libc/gen/siglist.c +++ b/lib/libc/gen/siglist.c @@ -107,3 +107,4 @@ const char *const sys_siglist[NSIG] = { "User defined signal 1", /* SIGUSR1 */ "User defined signal 2" /* SIGUSR2 */ }; +const int sys_nsig = sizeof(sys_siglist) / sizeof(sys_siglist[0]); |