opnsense-src/sys/boot/userboot
Ed Schouten 46632c18bd Merge index() and strchr() together.
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.
2012-01-03 07:14:01 +00:00
..
ficl Add a version of the FreeBSD bootloader which can run in userland, packaged 2011-06-30 16:08:56 +00:00
libstand Merge index() and strchr() together. 2012-01-03 07:14:01 +00:00
test Add a version of the FreeBSD bootloader which can run in userland, packaged 2011-06-30 16:08:56 +00:00
userboot Fix r223695 to compile on architectures which don't use the MBR scheme; wrap 2011-07-01 18:31:59 +00:00
Makefile Add a version of the FreeBSD bootloader which can run in userland, packaged 2011-06-30 16:08:56 +00:00
userboot.h Add a version of the FreeBSD bootloader which can run in userland, packaged 2011-06-30 16:08:56 +00:00