freebsd-src/sys
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
..
amd64 Default to not performing the early-boot memory tests when we detect we 2011-12-31 13:24:53 +00:00
arm Fix header pollution, possibly unbreaking the build of cfi_bus_ixp4xx.c 2011-12-31 15:53:34 +00:00
boot Merge index() and strchr() together. 2012-01-03 07:14:01 +00:00
bsm
cam Remove unneeded checks for CAM_DEV_QFRZN after cam_periph_runccb() call. 2012-01-02 17:02:45 +00:00
cddl opensolaris compat: fix vcmn_err so that panic(9) produces a proper message 2011-12-19 14:55:14 +00:00
compat In sys/compat/ndis/subr_ntoskrnl.c, change the RtlFillMemory function 2011-12-30 17:18:09 +00:00
conf Implement extensions on top of standards instead of the other way around. 2012-01-03 07:05:30 +00:00
contrib Initial copy of xz-embedded to sys/contrib/. 2012-01-01 21:32:25 +00:00
crypto Update Copyright. 2011-10-27 14:15:26 +00:00
ddb Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
dev Make sure we probe and attach the root HUB after 2012-01-02 20:28:33 +00:00
fs Don't pass VM_ALLOC_ZERO to vm_page_grab() in tmpfs_mappedwrite() and 2012-01-03 03:29:01 +00:00
gdb kern cons: introduce infrastructure for console grabbing by kernel 2011-12-17 15:08:43 +00:00
geom replace uses of libkern gets with cngets 2011-12-17 15:26:34 +00:00
gnu Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
i386 Add support for strong aliasing of symbols in i386 assembly. 2012-01-03 07:06:35 +00:00
ia64 Add "options CAPABILITY_MODE" and "options CAPABILITIES" to GENERIC kernel 2011-12-29 22:48:36 +00:00
isa - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
kern Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
kgssapi Add missing break statement to make sure all 3DES etypes really are treated 2011-10-10 09:13:07 +00:00
libkern Implement extensions on top of standards instead of the other way around. 2012-01-03 07:05:30 +00:00
mips - Properly set IRQ handlers for all USB ports 2012-01-01 09:12:21 +00:00
modules Add header required by cfi_bus_fdt.c. 2011-12-30 21:22:10 +00:00
net Revert r228986 until it can be reworked to avoid panicing the kernel when the 2011-12-31 07:21:28 +00:00
net80211 MCS32 equals 32, not 8*ic_txstream. 2012-01-02 16:02:30 +00:00
netatalk
netgraph Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
netinet As I came by and noticed add a comment that inp locking is a bit optistic 2012-01-02 09:18:58 +00:00
netinet6 Remove an uneeded inpcb forward declaration and align the function 2012-01-02 13:03:13 +00:00
netipsec Remove unused 'plen' variable. 2011-11-26 23:57:03 +00:00
netipx Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00
netnatm
netncp Change ncp_scan_bindery_object() to pass a constant search string. 2011-10-16 08:44:03 +00:00
netsmb Add unicode support to msdosfs and smbfs; original pathes from imura, 2011-11-18 03:05:20 +00:00
nfs Some cleanup of BOOTP code. Initially I wanted to just change the ifioctl() 2011-12-13 07:02:48 +00:00
nfsclient jwd@ reported a problem via email where the old NFS client would 2011-12-21 02:45:51 +00:00
nfsserver Honor NFSv3 commit call (RFC 1813, Section 3.3.21) where when count is 0, 2011-12-15 02:26:53 +00:00
nlm Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00
ofed Replace __signed by signed. 2011-12-13 13:38:03 +00:00
opencrypto
pc98 Add "options CAPABILITY_MODE" and "options CAPABILITIES" to GENERIC kernel 2011-12-29 22:48:36 +00:00
pci To save more power, switch to 10/100Mbps link when controller is 2011-11-23 23:29:18 +00:00
powerpc Add "options CAPABILITY_MODE" and "options CAPABILITIES" to GENERIC kernel 2011-12-29 22:48:36 +00:00
rpc Both a crash reported on freebsd-current on Oct. 18 under the 2011-11-03 14:38:03 +00:00
security Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
sparc64 Add "options CAPABILITY_MODE" and "options CAPABILITIES" to GENERIC kernel 2011-12-29 22:48:36 +00:00
sys Implement extensions on top of standards instead of the other way around. 2012-01-03 07:05:30 +00:00
teken Link the demo application against ncursesw to make Unicode work. 2011-10-13 14:20:27 +00:00
tools Restore the comment that I removed by accident. 2011-11-09 13:26:59 +00:00
ufs Migrate ufs and ext2fs from skpc() to memcchr(). 2012-01-01 20:47:33 +00:00
vm Optimize vm_object_split()'s handling of reservations. 2011-12-28 20:27:18 +00:00
x86 Get rid of kludgy per-descriptor state handling in acpi_apm. 2011-12-05 16:08:18 +00:00
xdr
xen s/timout/timeout 2011-12-15 06:29:13 +00:00
Makefile