summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strnlen.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add framework for resolving (pun intended) libc namespace issues, usingguenther2015-08-311-1/+2
| | | | | | | | | | | | wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
* mop up ifndef KERNEL goo; ok miodderaadt2014-06-101-5/+1
|
* Add strnlen() to libkern.matthew2012-04-261-1/+5
| | | | ok deraadt
* Avoid using and end pointer since strnlen(string, -1) is legalmillert2010-06-021-4/+3
| | | | | and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@
* remove unused variable.chl2010-05-211-2/+1
| | | | ok millert@ tedu@
* add posix_madvise, posix_memalign, strndup, and strnlen. mostly fromtedu2010-05-181-0/+34
brad and millert, with hints from guenther, jmc, and otto I think. ok previous.