<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/string/strerror.c, branch release/5.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F5.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F5.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2003-05-01T19:03:14Z</updated>
<entry>
<title>Back out the `hiding' of strlcpy and strlcat.  Several people</title>
<updated>2003-05-01T19:03:14Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2003-05-01T19:03:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d05090827f0e5b95cc7d2bcdde8b3b4e0f986241'/>
<id>urn:sha1:d05090827f0e5b95cc7d2bcdde8b3b4e0f986241</id>
<content type='text'>
vocally objected to this safety belt.
</content>
</entry>
<entry>
<title>`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference</title>
<updated>2003-04-29T21:13:50Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2003-04-29T21:13:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5723e501abb675701352eb3e9fd58bb3cc2c649d'/>
<id>urn:sha1:5723e501abb675701352eb3e9fd58bb3cc2c649d</id>
<content type='text'>
technique) so that we don't wind up calling into an application's
version if the application defines them.

Inspired by:	qpopper's interfering and buggy version of strlcpy
</content>
</entry>
<entry>
<title>Optimize errstr() by reducing the number of times it walks a string.</title>
<updated>2003-01-03T16:44:42Z</updated>
<author>
<name>Mike Barcroft</name>
<email>mike@FreeBSD.org</email>
</author>
<published>2003-01-03T16:44:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e37f8b53130555dfa87abcb3d1acfc9676b44410'/>
<id>urn:sha1:e37f8b53130555dfa87abcb3d1acfc9676b44410</id>
<content type='text'>
As a side effect, it makes the code easier to read and requires less
pointer arithmetic.

Test by:	strerror regression test
Submitted by:	Tim Kientzle &lt;kientzle@acm.org&gt;
</content>
</entry>
<entry>
<title>Stylistic changes:</title>
<updated>2002-12-20T05:26:10Z</updated>
<author>
<name>Mike Barcroft</name>
<email>mike@FreeBSD.org</email>
</author>
<published>2002-12-20T05:26:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=68cd9bedfb2ef8bbe678b73edee691aa4fe59564'/>
<id>urn:sha1:68cd9bedfb2ef8bbe678b73edee691aa4fe59564</id>
<content type='text'>
o Fix an English error (comma splice) and poorly worded sentence.
o Fix KNF ordering of variables (pointers come before arithmetic types).
o Restore hand-optimization of sizeof()-1, instead of strlen().
o Remove unneeded local variables in strerror_r().

Test by:	strerror regression test
Requested by:	bde
Reviewed by:	bde
</content>
</entry>
<entry>
<title>Rearrange strerror() so that its itoa procedure can be used with</title>
<updated>2002-12-18T16:53:31Z</updated>
<author>
<name>Mike Barcroft</name>
<email>mike@FreeBSD.org</email>
</author>
<published>2002-12-18T16:53:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5a98f074e6b1c2d0ab1bbad4cd23e7ac99a1ff2e'/>
<id>urn:sha1:5a98f074e6b1c2d0ab1bbad4cd23e7ac99a1ff2e</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Fix off-by-one error.</title>
<updated>2002-07-03T06:28:04Z</updated>
<author>
<name>Jonathan Mini</name>
<email>mini@FreeBSD.org</email>
</author>
<published>2002-07-03T06:28:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=16f33a4885b66316c9b58afd72fd9bddda29e82e'/>
<id>urn:sha1:16f33a4885b66316c9b58afd72fd9bddda29e82e</id>
<content type='text'>
PR:		misc/40104
Submitted by:	Neal Fachan &lt;neal@isilon.com&gt;
MFC after:	3 days
</content>
</entry>
<entry>
<title>Make strerror and strerror_r use sys_errlist[0] for errnum = 0.  Be</title>
<updated>2001-12-07T06:28:58Z</updated>
<author>
<name>Wes Peters</name>
<email>wes@FreeBSD.org</email>
</author>
<published>2001-12-07T06:28:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=556f162ac01ccf2a3f501c0090aa6011fd723fdd'/>
<id>urn:sha1:556f162ac01ccf2a3f501c0090aa6011fd723fdd</id>
<content type='text'>
more careful about reporting truncation with ERANGE in strerror_r.
Set errno to EINVAL for "unknown" errnum in strerror as required
by P1003.1-200x Draft June 14, 2001.

More carefully document the handling of strerrbuf when errors
(ERANGE, EINVAL) are encountered in strerror_r.

Reviewed by:	bde (ongoing discussion)
</content>
</entry>
<entry>
<title>New, improved, more Posix-compliant strerror_r implementation,</title>
<updated>2001-12-06T04:53:31Z</updated>
<author>
<name>Wes Peters</name>
<email>wes@FreeBSD.org</email>
</author>
<published>2001-12-06T04:53:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f61a2ede84c391c2bc6212d37885d68cf07d4fe6'/>
<id>urn:sha1:f61a2ede84c391c2bc6212d37885d68cf07d4fe6</id>
<content type='text'>
complete with documentation.

Reviewed by:	mike@ gad@
MFC after:	1 week
</content>
</entry>
<entry>
<title>Add strerror_r function per Posix prototype.</title>
<updated>2001-11-27T07:39:46Z</updated>
<author>
<name>Wes Peters</name>
<email>wes@FreeBSD.org</email>
</author>
<published>2001-11-27T07:39:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9c324dc0c075cc7e28d39516f0f6213cc4550cd7'/>
<id>urn:sha1:9c324dc0c075cc7e28d39516f0f6213cc4550cd7</id>
<content type='text'>
Reviewed by:	Mike Barcroft &lt;mike@FreeBSD.org&gt;
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>rcsid[]-&gt;__FBSDID</title>
<updated>2001-11-07T19:55:16Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2001-11-07T19:55:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=de5fe5d53b634e506f94a6df3a9261aa20fa152f'/>
<id>urn:sha1:de5fe5d53b634e506f94a6df3a9261aa20fa152f</id>
<content type='text'>
</content>
</entry>
</feed>
