Date: Wed, 18 Dec 2002 08:53:32 -0800 (PST) From: Mike Barcroft <mike@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/string strerror.3 strerror.c Message-ID: <200212181653.gBIGrWD8023539@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mike 2002/12/18 08:53:32 PST Modified files: lib/libc/string strerror.3 strerror.c Log: Rearrange strerror() so that its itoa procedure can be used with strerror_r(). Doing this allows us to ensure that strerror_r() always fills the supplied buffer regardless of EINVAL or ERANGE errors. strerror()'s semantics have changed slightly such that an argument of 0 is now considered invalid and errno is set to EINVAL. Remove internal regression test for strerror() and strerror_r(). This will be reincarnated in src/tools/regression/lib/libc/string. In strerror(3), add a comment about strerror()'s bogus return type. PR: 44356 Revision Changes Path 1.21 +6 -1 src/lib/libc/string/strerror.3 1.9 +39 -85 src/lib/libc/string/strerror.c 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?200212181653.gBIGrWD8023539>