<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/string/rindex.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2012-01-03T07:14:01Z</updated>
<entry>
<title>Merge index() and strchr() together.</title>
<updated>2012-01-03T07:14:01Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2012-01-03T07:14:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=46632c18bda3890a493e0a3f43907c5c75bf93eb'/>
<id>urn:sha1:46632c18bda3890a493e0a3f43907c5c75bf93eb</id>
<content type='text'>
As I looked through the C library, I noticed the FreeBSD MIPS port has a
hand-written version of index(). This is nice, if it weren't for the
fact that most applications call strchr() instead.

Also, on the other architectures index() and strchr() are identical,
meaning we have two identical pieces of code in the C library and
statically linked applications.

Solve this by naming the actual file strchr.[cS] and let it use
__strong_reference()/STRONG_ALIAS() to provide the index() routine. Do
the same for rindex()/strrchr().

This seems to make the C libraries and static binaries slightly smaller,
but this reduction in size seems negligible.
</content>
</entry>
<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>Brucification: Don't initialize in declaration, make sure extra lines</title>
<updated>2003-12-18T07:44:53Z</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>2003-12-18T07:44:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fee66713adfa80bcbcfca34f37cb455a2129fd8b'/>
<id>urn:sha1:fee66713adfa80bcbcfca34f37cb455a2129fd8b</id>
<content type='text'>
follow declaration section.
</content>
</entry>
<entry>
<title>Do comparison using appropriate casting first, as per SUSv3 (search for first</title>
<updated>2003-12-17T02:46:48Z</updated>
<author>
<name>Jordan K. Hubbard</name>
<email>jkh@FreeBSD.org</email>
</author>
<published>2003-12-17T02:46:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dee551158f72e1e1768ca3e076e0b625903d41ba'/>
<id>urn:sha1:dee551158f72e1e1768ca3e076e0b625903d41ba</id>
<content type='text'>
[last] character, not int).
</content>
</entry>
<entry>
<title> - Update the manual pages of index() and rindex() to show</title>
<updated>2002-08-30T19:42:07Z</updated>
<author>
<name>Robert Drehmel</name>
<email>robert@FreeBSD.org</email>
</author>
<published>2002-08-30T19:42:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=425289a9db71798c280b36e39f1a29d79dfd8ed3'/>
<id>urn:sha1:425289a9db71798c280b36e39f1a29d79dfd8ed3</id>
<content type='text'>
   &lt;strings.h&gt; as the associated header file.
   The prototypes have been moved there from &lt;string.h&gt; because
   POSIX.1-2001 said so.
 - Conditionally include either &lt;strings.h&gt; or &lt;string.h&gt; based
   on whether the [r]index() or str[r]chr() functions are
   compiled, respectively.
 - Style(9) tells us to
    - put a space after the return keyword
    - to check for a NUL character without using the ! operator.
    - use NULL instead of (type *)NULL where the compiler knows
      the type.
   Apply these rules.
 - Rather use ANSI-C function definitions than K&amp;R ones.
 - For index(3), correct second function argument's type; it was
   declared to be a `const char' before and is now an `int'.
</content>
</entry>
<entry>
<title>Remove 'register' keyword.</title>
<updated>2002-03-21T18:49:23Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-03-21T18:49:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8fb3f3f68288ae2b1b53dd65e3dd673d83c80f4c'/>
<id>urn:sha1:8fb3f3f68288ae2b1b53dd65e3dd673d83c80f4c</id>
<content type='text'>
</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>
<entry>
<title>Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.</title>
<updated>2001-05-24T08:47:42Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2001-05-24T08:47:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5864b79cd2852339f3025ee81769233071d60934'/>
<id>urn:sha1:5864b79cd2852339f3025ee81769233071d60934</id>
<content type='text'>
Do the same for the non-wcs*/wmem* files while I'm here.
</content>
</entry>
<entry>
<title>BSD 4.4 Lite Lib Sources</title>
<updated>1994-05-27T05:00:24Z</updated>
<author>
<name>Rodney W. Grimes</name>
<email>rgrimes@FreeBSD.org</email>
</author>
<published>1994-05-27T05:00:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=58f0484fa251c266ede97b591b499fe3dd4f578e'/>
<id>urn:sha1:58f0484fa251c266ede97b591b499fe3dd4f578e</id>
<content type='text'>
</content>
</entry>
</feed>
