summaryrefslogtreecommitdiffstats
path: root/sys/libkern/index.c
Commit message (Collapse)AuthorAgeFilesLines
* strchr() and strrchr() are already present in the kernel, but with lesswkoszek2007-04-101-0/+4
| | | | | | | | | | | | | 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)
* Remove advertising clause from University of California Regent'simp2004-04-071-4/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Bring these files closer to style(9) conformance by comparing arobert2004-03-291-1/+1
| | | | dereferenced character pointer to '\0' instead of using the ! operator.
* Use __FBSDID().obrien2003-06-111-2/+3
|
* Zap c_index() and c_rindex(). Bruce prefers these to implicitly convertpeter1999-12-101-18/+10
| | | | | a const into a non-const as they do in libc. I feel that defeating the type checking like that quite evil, but that's the way it is.
* Tempt fate and stop index from converting a const char * into a char *.peter1999-11-211-8/+20
| | | | | | | I've made a seperate version (c_index() etc) that use const/const, but I'm not sure it's worth it considering there is one file in the tree that uses index on const strings (kern_linker.c) and it's easily adjusted to scan the strings directly (and is perhaps more efficient that way).
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Added index() which will be used shortly in some fixes to the ibcs2nate1996-06-071-0/+53
emulation code.
OpenPOWER on IntegriCloud