summaryrefslogtreecommitdiff
path: root/lib/libc/string
AgeCommit message (Collapse)Author
2014-04-19tweak previous;Jason McIntyre
2014-04-19Use somewhat harsher language and better examples; demonstrate thatTheo de Raadt
non-dangerous use functions is difficult. ok guenther
2014-04-07Add some missing names to the NAME sections.Ingo Schwarze
For inet(3), go the other way, remove some bogus symlinks. Found while testing the new makewhatis(8). ok jmc@
2014-03-23remove the never used bm string functionsTed Unangst
2014-02-23in HISTORY, say where this actually came from;Ingo Schwarze
ok deraadt@ bentley@
2014-02-05Remove unnecessary stdio.h include.Stefan Sperling
Patch by Jean-Philippe Ouellet ; ok krw@
2014-01-22add explicit_bzero to NAME;Jason McIntyre
2014-01-22add explicit_bzero to libc. implementation subject to change, but startTed Unangst
the ball rolling. ok deraadt.
2013-12-19fix double word error;Jason McIntyre
2013-12-19Split out strncpy and strncat from strcpy and strcat manuals.Todd C. Miller
Requested by deraadt@
2013-12-05no more regexp(3), so point to regex(3);Jason McIntyre
as advised by deraadt
2013-10-14Missed the file renames for the string functions when committing thePhilip Guenther
DIST_LIB/DIST_OBJ/*.do changes
2013-09-30Use PATH_MAX, NAME_MAX and LOGIN_NAME_MAX not MAXPATHNAMELEN,Todd C. Miller
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
2013-09-25Add examples to show why this is a terrible API. OK jmc@ henning@Todd C. Miller
2013-09-25According to POSIX, if the src and dst strings overlap, the behaviorTodd C. Miller
is undefined. Add a warning to that effect. OK deraadt@ jmc@
2013-07-17more library historyIngo Schwarze
facts checked by sobrado@ style tweaks and ok jmc@
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-06-05Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzeTed Unangst
2013-06-04remove some incredible lies about overlapping buffersTheo de Raadt
ok guenther
2013-06-01Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.Stefan Sperling
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
2013-05-30Remove useless include.Antoine Jacoutot
ok millert@
2013-05-15typo: compare len against null needle, not haystackAntoine Jacoutot
from Alf Schlichting ok millert@
2013-05-13Add an implementation of memmem() -- from FreeBSD with some tweaks.Antoine Jacoutot
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@
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.Okan Demirmen
ok guenther@
2012-07-11fix an off-by-one error where the return value would point to theChristian Weisgerber
character after the '\0'; ok guenther@
2012-04-26Add strnlen() to libkern.Matthew Dempsky
ok deraadt
2012-04-03tweak previous;Jason McIntyre
2012-04-02simplify the strlcpy/strlcat manual page substantially. do lessTheo de Raadt
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
2012-03-26Bump standards years, as we conform to the new versions tooPhilip Guenthe
ok jmc@
2012-03-26strsignal() was standardized in POSIX-2008Philip Guenthe
ok millert@
2012-01-17fix SEE ALSO;Jason McIntyre
2012-01-17Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.Philip Guenthe
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
2012-01-14grammar;Jason McIntyre
2012-01-14this is sparta^WPOSIX 2008Marc Espie
okay millert@
2011-12-08strdup and strndup both use malloc. Make this fact explicit.lum
ok jmc@
2011-07-25tweak previous;Jason McIntyre
2011-07-25update HISTORY and SEE ALSO for all of string(3), together with variousIngo Schwarze
smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree
2011-07-24Sync wcslcpy and wcslcat with strlcpy and strlcat. OK deraadt@Todd C. Miller
2011-07-09Minor function name tweaks.Nicholas Marriott
2011-07-09Instead of documenting all the wide string functions in wmemchr(3), addNicholas Marriott
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
2011-07-08After a certain amount of fighting with the mbstowcs API, remove L fromNicholas Marriott
the wcsdup example. ok stsp
2011-07-05Fix some awful code in the example, pointed out by millert@.Nicholas Marriott
2011-07-04Add wcsdup(), from NetBSD.Nicholas Marriott
ok deraadt matthew
2011-06-01fix wcscasecmp() parameters; <wchar.h> was correctChristian Weisgerber
2011-05-28tweak previous (my fault);Jason McIntyre
2011-05-28wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@Marc Espie
2011-04-04Add a wcswidth man page (based on FreeBSD), and fix the implementationStefan Sperling
to return -1 in case of an unprintable character. ok nicm jmc
2010-09-24Add timingsafe_bcmp(3) to libc, mention that it's already in theMatthew Dempsky
kernel in kern(9), and remove it from OpenSSH. ok deraadt@, djm@
2010-09-10observe the following spelling:Jason McIntyre
- wide character (noun) - wide-character (adjective) this is the "fix of least resistance", and appears to be in line with posix style; a tiny fix still needed for curses, but i'll mail that upstream;
2010-06-02Avoid using and end pointer since strnlen(string, -1) is legalTodd C. Miller
and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@