<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/string/strrchr.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2018-10-01T06:37:37+00:00</updated>
<entry>
<title>As per POSIX, when str{,r}chr is comparing it should convert c to a char.</title>
<updated>2018-10-01T06:37:37+00:00</updated>
<author>
<name>martijn</name>
<email></email>
</author>
<published>2018-10-01T06:37:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=14762f7fed750ccdd7b8473696771f67b80a6639'/>
<id>urn:sha1:14762f7fed750ccdd7b8473696771f67b80a6639</id>
<content type='text'>
The C implementation of str{,r}chr are not linked to the build, because
assembly implementations are used, but change to code for easier reference.
At least the i386 and amd64 are checked and seem to do the correct thing.

Found thanks to the csh any/strchr change.

minor pointers and OK millert@
</content>
</entry>
<entry>
<title>Add framework for resolving (pun intended) libc namespace issues, using</title>
<updated>2015-08-31T02:53:57+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-08-31T02:53:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c1ccbe216c72b17e063c4c16fa4904d87d295c99'/>
<id>urn:sha1:c1ccbe216c72b17e063c4c16fa4904d87d295c99</id>
<content type='text'>
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT.  Then, apply that framework to most of
the functions in stdio.h, string.h, err.h, and wchar.h.  Delete the
should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

tests clean on i386, amd64, sparc64, powerpc, and mips64

naming feedback from kettenis@ and millert@
ok kettenis@
</content>
</entry>
<entry>
<title>Make index/rindex weak aliases of strchr/strrchr since they are not</title>
<updated>2015-05-15T22:29:37+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2015-05-15T22:29:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8542b4252e10ee9efd45f44099d0c2f5b6ca5d53'/>
<id>urn:sha1:8542b4252e10ee9efd45f44099d0c2f5b6ca5d53</id>
<content type='text'>
part of the ISO C standard and have also been dropped from POSIX.
OK guenther@ kettenis@
</content>
</entry>
<entry>
<title>restructure libc/string + libc/arch/*/string coperation regarding</title>
<updated>2014-11-30T19:43:57+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-11-30T19:43:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d8f66904ee035f3e8b0d2d91fedb956995e16678'/>
<id>urn:sha1:d8f66904ee035f3e8b0d2d91fedb956995e16678</id>
<content type='text'>
(potentially) MD versions (function dependent, not filename dependent)
split out memcpy/memmove/bcopy and strchr/index/strrchr/rindex
Bring back amd64 .S versions

And the final touch: switch all architectures temporarily to MI
memcpy.c, which contains syslog + abort for overlapping copies.  A nice
harsh undefined behaviour.  We will clean the entire userland of the
remaining issues in this catagory, then switch to the optimised memcpy
which skips the memmove check.

I tried to cut this change into pieces, but testing each sub-step on
every architecture is too time consuming and mindnumbing.
ok miod
</content>
</entry>
</feed>
