<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/string/strerror.c, branch release/8.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2007-01-09T00:28:16Z</updated>
<entry>
<title>Per Regents of the University of Calfornia letter, remove advertising</title>
<updated>2007-01-09T00:28:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-09T00:28:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c879ae3536e6d92b8d96c8965c5b05fcb9541520'/>
<id>urn:sha1:c879ae3536e6d92b8d96c8965c5b05fcb9541520</id>
<content type='text'>
clause.

# If I've done so improperly on a file, please let me know.
</content>
</entry>
<entry>
<title>Unbreak !NLS case</title>
<updated>2005-02-27T21:17:22Z</updated>
<author>
<name>Alexey Zelkin</name>
<email>phantom@FreeBSD.org</email>
</author>
<published>2005-02-27T21:17:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fc7c35283172dbed0e31df879b3586088c73403f'/>
<id>urn:sha1:fc7c35283172dbed0e31df879b3586088c73403f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add NLS catalogs support to strerror(), strerror_r() and strsignal().</title>
<updated>2005-02-27T16:58:28Z</updated>
<author>
<name>Alexey Zelkin</name>
<email>phantom@FreeBSD.org</email>
</author>
<published>2005-02-27T16:58:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fba5c5fa090c65e6dc3c736f5507a63892bab7bf'/>
<id>urn:sha1:fba5c5fa090c65e6dc3c736f5507a63892bab7bf</id>
<content type='text'>
Controlled by NLS define, currently disabled by default.

Idea obtained from:	NetBSD
</content>
</entry>
<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>
</feed>
