summaryrefslogtreecommitdiff
path: root/lib/libc/string
AgeCommit message (Collapse)Author
2004-05-03Missed this in the __strerror() removal.Todd C. Miller
2004-05-03No longer need __strerror(3) now that we use strerror_r() inside libc.Todd C. Miller
2004-05-03Do a better job of documenting strerror_r() and add an ERRORS section.Todd C. Miller
2004-05-03build the error message in strerror_r.c directly, avoiding one copy there.Marc Espie
handle a few subtle details caught by the regression tests: correct termination, non copying if buffer length == 0, errno setting. let all former users of __strerror go through strerror_r. Work by Todd Miller and I. Okay millert@.
2004-05-01let __strerror fill precisely the part of the buffer it can.Marc Espie
okay millert@
2004-04-30Let __strerror work by fixing a number of problems. Work by tholo and I,Marc Espie
okay millert@. - atoi was bogus. - atoi was not reentrant. - there's no reason to cast stuff to unsigned int.
2004-02-10make Nm match Dt;Jason McIntyre
2004-02-09make Nm match Dt; found by pb@Jason McIntyre
some of this ok espie@, all of it ok deraadt@
2004-01-20Fix the example code. The loop invariant 'i' was not bound by MAXTOKENSTodd C. Miller
which could result in writing a NUL byte outside of tokens[]. A fix, from Patrick Latifi, is to move the increment into the "i < MAXTOKENS - 1" block.
2003-09-06standards compliant strxfrm. much simpler too. fixes sorting in glib2.Ted Unangst
ok deraadt@ espie@ marcm@
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-07-24warn about unsafe APIs at link time. Conditional on libc/Makefile definingTheo de Raadt
APIWARN; disabled by default. In use by many developers for quite some time, now they have a common knob to enable/disable this
2003-06-21clarify these functions by changing references from strings to buffersAnil Madhavapeddy
ok deraadt@, millert@, jmc@, suggested by espie@
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-11ansification, pval okTheo de Raadt
2003-06-11ansification; pval okTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-10typos;Jason McIntyre
2003-04-12Change copyright to a less restrictive ISC-style license to encourageTodd C. Miller
people to bundle this code.
2003-04-07Xr to strlcpy and strlcat more; ok millertTheo de Raadt
2003-04-02fifo -> FIFOJason McIntyre
ok millert@
2003-03-14ANSI function headersTodd C. Miller
2003-03-13a few more strlcy; ok from beck & hoTheo de Raadt
2003-02-20fix a variety of missing or wrong MLINKSTheo de Raadt
2002-11-21Add strerror_r and functions versions of getchar_unlocked andMarco S Hyman
putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
2002-07-24Convert to ANSI function headers and make 'ch' argument int, not char.Todd C. Miller
Noticed by deraadt@
2002-05-13For strncpy(), dst is not NUL terminated if strlen(src) >= len.Todd C. Miller
Also fix a typo; adapted from a patch by Moritz Jodeit
2002-04-30Initial cleanup:Mike Pechkin
o) remove extra space in the end of line; o) remove extra blank lines in the end of file; o) remove .Pp before .Ss; o) CAVEAT -> CAVEATS; o) fix usage of .Fa; o) <blank-line> -> .Pp; o) wrap long lines; millert@ ok
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-12-08when strerror() has an Unknown error, also set EINVALTheo de Raadt
2001-11-212nd param is constTheo de Raadt
2001-09-07K&R promotion is not the whole story. Make things explicit.Marc Espie
2001-09-05make debug libs build againMichael Shalayeff
2001-08-06o) We always close .Bl and .Bd tags;Mike Pechkin
o) .Sh AUTHOR -> .Sh AUTHORS; o) We don't like .Pp before/after .Sh; o) We don't like .Pp before/after .Rs/.Re; o) NetBSD -> .Nx; o) OpenBSD -> .Ox; millert@ ok
2001-07-29Minor style pedentry from ben@arbor.net plus some of my own and syncTodd C. Miller
libkern and libc versions.
2001-06-27use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel
2001-06-23more .%A handling; bk@rt.fmTheo de Raadt
2001-06-18Clarify that if strlcat() does not find a NUL within siz byte itTodd C. Miller
will not NUL terminate either.
2001-06-14Fix a buf oflow in EXAMPLES code; millert@ okAaron Campbell
2001-05-13type of function on seperate lineTheo de Raadt
2001-05-07Document boundary condition when size < strlen(dst).Todd C. Miller
2001-05-07Back out last change, it is intended behavior and update the blockTodd C. Miller
comment to reflect this fact. Too early in the morning for me I guess.
2001-05-07strlcat() should return strlen(dst) + strlen(src) when size parameterTodd C. Miller
<= strlen(dst). Bug report by mark.murnane@ireland.sun.com via the GNOME folks.
2001-01-13Sync function comment with man page; fanf@covalent.netTodd C. Miller
2001-01-12Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'Todd C. Miller
not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
2000-11-24comment fix; strlcat returns strlen(initial dst) + strlen(src).Jun-ichiro itojun Hagino
2000-11-16"of", not "on" (from Henric Jungheim)Angelos D. Keromytis
2000-11-06The constant's name is MAXPATHLEN, not MAXPATHNAMELEN; closes PR/1491.Aaron Campbell
From ianm@kashmir.cit.nepean.uws.edu.au.
2000-10-23Document that the string returned by strerror(3) contains a maximum ofAaron Campbell
NL_TEXTMAX characters.
2000-10-18Another round of man page cleanup, this time to remove more hard sentenceAaron Campbell
breaks and getting rid of short lines, making these files easier to work with.