Date: Thu, 23 Dec 1999 08:30:00 -0800 (PST) From: Bruce Evans <bde@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen psignal.3 Message-ID: <199912231630.IAA91616@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 1999/12/23 08:30:00 PST Modified files: lib/libc/gen psignal.3 Log: 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>. Revision Changes Path 1.10 +4 -3 src/lib/libc/gen/psignal.3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912231630.IAA91616>