cvs commit: src/sys/compat/opensolaris/kern opensolaris_string.c
src/sys/compat/opensolaris/sys
string.h src/sys/libkern index.c rindex.c src/sys/sys libkern.h
Wojciech A. Koszek
wkoszek at FreeBSD.org
Tue Apr 10 21:42:13 UTC 2007
wkoszek 2007-04-10 21:42:12 UTC
FreeBSD src repository
Modified files:
sys/compat/opensolaris/kern opensolaris_string.c
sys/compat/opensolaris/sys string.h
sys/libkern index.c rindex.c
sys/sys libkern.h
Log:
strchr() and strrchr() are already present in the kernel, but with less
popular names. Hence:
- comment current index() and rindex() functions, as these serve the same
functionality as, respectively, strchr() and strrchr() from userland;
- add inlined version of strchr() and strrchr(), as we tend to use them more
often;
- remove str[r]chr() definitions from ZFS code;
Reviewed by: pjd
Approved by: cognet (mentor)
Revision Changes Path
1.2 +0 -31 src/sys/compat/opensolaris/kern/opensolaris_string.c
1.2 +3 -3 src/sys/compat/opensolaris/sys/string.h
1.10 +4 -0 src/sys/libkern/index.c
1.12 +4 -0 src/sys/libkern/rindex.c
1.56 +12 -0 src/sys/sys/libkern.h
More information about the cvs-src
mailing list