summaryrefslogtreecommitdiff
path: root/src/lib/libc/string (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add timingsafe_memcmp().matthew2014-06-135-33/+152
| | | | ok deraadt, jmc, tedu
* mop up ifndef KERNEL goo; ok miodderaadt2014-06-1012-60/+12
|
* tweak previous;jmc2014-04-191-3/+2
|
* Use somewhat harsher language and better examples; demonstrate thatderaadt2014-04-194-109/+88
| | | | | non-dangerous use functions is difficult. ok guenther
* Add some missing names to the NAME sections.schwarze2014-04-072-6/+8
| | | | | | For inet(3), go the other way, remove some bogus symlinks. Found while testing the new makewhatis(8). ok jmc@
* remove the never used bm string functionstedu2014-03-233-329/+3
|
* in HISTORY, say where this actually came from;schwarze2014-02-231-5/+7
| | | | ok deraadt@ bentley@
* Remove unnecessary stdio.h include.stsp2014-02-051-2/+1
| | | | Patch by Jean-Philippe Ouellet ; ok krw@
* add explicit_bzero to NAME;jmc2014-01-221-2/+3
|
* add explicit_bzero to libc. implementation subject to change, but starttedu2014-01-223-4/+37
| | | | the ball rolling. ok deraadt.
* fix double word error;jmc2013-12-191-2/+2
|
* Split out strncpy and strncat from strcpy and strcat manuals.millert2013-12-195-168/+308
| | | | Requested by deraadt@
* no more regexp(3), so point to regex(3);jmc2013-12-051-3/+3
| | | | as advised by deraadt
* Missed the file renames for the string functions when committing theguenther2013-10-141-1/+25
| | | | DIST_LIB/DIST_OBJ/*.do changes
* Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,millert2013-09-301-4/+4
| | | | MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
* Add examples to show why this is a terrible API. OK jmc@ henning@millert2013-09-251-1/+60
|
* According to POSIX, if the src and dst strings overlap, the behaviormillert2013-09-256-12/+48
| | | | is undefined. Add a warning to that effect. OK deraadt@ jmc@
* more library historyschwarze2013-07-174-15/+22
| | | | | facts checked by sobrado@ style tweaks and ok jmc@
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-164-12/+12
|
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-0552-157/+157
|
* remove some incredible lies about overlapping buffersderaadt2013-06-042-22/+10
| | | | ok guenther
* Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.stsp2013-06-011-2/+2
| | | | | | | | | Catalogs had an arbitrary character set which was used regardless of locale. Add UTF-8-encoded catalogs for libc error messages, and rename existing ones to indicate their character sets. catopen(3) now chooses a catalog which matches the locale's encoding, if available. help & ok matthew, man page bits ok jmc, input from naddy and bluhm
* Remove useless include.ajacoutot2013-05-301-2/+1
| | | | ok millert@
* typo: compare len against null needle, not haystackajacoutot2013-05-151-2/+2
| | | | | | from Alf Schlichting ok millert@
* Add an implementation of memmem() -- from FreeBSD with some tweaks.ajacoutot2013-05-133-4/+145
| | | | | | | | | Requires a libc minor bump, committing now so that we have up-to-date snapshots for the upcoming hackathon. joint work with millert@ man page bits ok jmc@ input and ok millert@, guenther@, deraadt@
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-021-21/+1
| | | | ok guenther@
* fix an off-by-one error where the return value would point to thenaddy2012-07-111-2/+2
| | | | character after the '\0'; ok guenther@
* Add strnlen() to libkern.matthew2012-04-261-1/+5
| | | | ok deraadt
* tweak previous;jmc2012-04-031-3/+3
|
* simplify the strlcpy/strlcat manual page substantially. do lessderaadt2012-04-021-70/+58
| | | | | | | | | | | | explaining of "what a C string is", and make it more clear that these functiosn BEHAVE EXACTLY LIKE snprintf with "%s"! (anyone who wants to write a 'strlcpy considered harmful' paper should probably write a 'strlcpy and snprintf considered harmful' paper instead). note to those from other projects reading this commit message: It would be very good if this new manual was picked up in your project. ok jmc millert krw
* Bump standards years, as we conform to the new versions tooguenther2012-03-261-4/+4
| | | | ok jmc@
* strsignal() was standardized in POSIX-2008guenther2012-03-261-2/+7
| | | | ok millert@
* fix SEE ALSO;jmc2012-01-171-2/+2
|
* Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.guenther2012-01-174-3/+222
| | | | | | Includes friendly linker warning to wake up those dumb enough to use it. Committing for kettenis@, who ran away to the hills after writing it
* grammar;jmc2012-01-141-2/+2
|
* this is sparta^WPOSIX 2008espie2012-01-141-2/+7
| | | | okay millert@
* strdup and strndup both use malloc. Make this fact explicit.lum2011-12-081-3/+5
| | | | ok jmc@
* tweak previous;jmc2011-07-253-6/+6
|
* update HISTORY and SEE ALSO for all of string(3), together with variousschwarze2011-07-2553-237/+642
| | | | | smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree
* Sync wcslcpy and wcslcat with strlcpy and strlcat. OK deraadt@millert2011-07-242-50/+26
|
* Minor function name tweaks.nicm2011-07-093-8/+8
|
* Instead of documenting all the wide string functions in wmemchr(3), addnicm2011-07-0918-139/+1327
| | | | | | | individual pages (based on the existing string man pages). By Tim van der Molen (tbvdm at xs4all dot nl) after a suggestion by millert@. ok deraadt
* After a certain amount of fighting with the mbstowcs API, remove L fromnicm2011-07-081-4/+12
| | | | | | the wcsdup example. ok stsp
* Fix some awful code in the example, pointed out by millert@.nicm2011-07-051-3/+3
|
* Add wcsdup(), from NetBSD.nicm2011-07-043-3/+120
| | | | ok deraadt matthew
* fix wcscasecmp() parameters; <wchar.h> was correctnaddy2011-06-011-2/+2
|
* tweak previous (my fault);jmc2011-05-281-4/+4
|
* wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@espie2011-05-283-5/+82
|
* Add a wcswidth man page (based on FreeBSD), and fix the implementationstsp2011-04-043-5/+68
| | | | | to return -1 in case of an unprintable character. ok nicm jmc
* Add timingsafe_bcmp(3) to libc, mention that it's already in thematthew2010-09-243-5/+62
| | | | | | kernel in kern(9), and remove it from OpenSSH. ok deraadt@, djm@