]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixed wrong prototype and missing include for strsignal(3). strsignal()
authorbde <bde@FreeBSD.org>
Thu, 23 Dec 1999 16:29:58 +0000 (16:29 +0000)
committerbde <bde@FreeBSD.org>
Thu, 23 Dec 1999 16:29:58 +0000 (16:29 +0000)
commit6c2d0e8c302f20e5b52acde44c3c0a4598742eaf
tree839f3fd0b113b03b0650401ad7ac82f348cc3e76
parenta7653abdc41362fb9148c7581862479cb19b89e2
Fixed wrong prototype and missing include for strsignal(3).  strsignal()
takes an int arg and is prototyped in <string.h>.  It has the opposite
interface botches to psignal(3) which takes a bogus unsigned arg but is
prototyped in the right place.

This is not the last of the interface problems for strsignal().  We
obtained it from NetBSD, but NetBSD has moved its prototype to
<unistd.h>.  strsignal() should return const char *, but it returns
char * for historical reasons.  NetBSD declares it as returning
__aconst char, where __aconst is normally empty but can be set to
`const' to give better error checking.  glibc-2.1.1 prototypes
strsignal() in <string.h>.
lib/libc/gen/psignal.3