summaryrefslogtreecommitdiff
path: root/lib/libc/string
AgeCommit message (Collapse)Author
2008-08-23unbreak wcschr(string, L'\0') which was incorrectly returning NULLDamien Miller
rather than a pointer to the terminating nul; ok deraadt@
2008-03-19bcmp(3) tries to return length, which is a size_t, as an int.Ray Lai
Instead, just return 1 if there is a difference. Found by lint. OK millert.
2008-03-15- len is size_t, but n uses len and is an int. Matching those typesRay Lai
should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert.
2008-03-15Convert c to unsigned char, like it says in the manual. Also addRay Lai
cast to make it explicit. Found by lint, OK millert.
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-10-25Make sure to use unique target names so that make -j does not break;Miod Vallat
feedback and ok espie@
2007-09-19add HISTORY; shortened version of diff from Ilya A. KovalenkoJason McIntyre
ok millert
2007-09-03remove trailing whitespace;Jason McIntyre
2007-09-03add memrchr(3)Todd C. Miller
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-08Show how to use strcspn(3) to trim newlines.Ray Lai
OK jmc and millert.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-01If NLS is disabled, strerror does not print the correct error string.Alexander Bluhm
No binary change with NLS enabled. ok otto millert espie
2007-02-19wording fix from wiz@netbsd, -r1.11;Jason McIntyre
2007-02-19from hubertf@netbsd:Jason McIntyre
Try to tell what this really does. Including a BUGS section on why it doesn't. *roff code by wiz@, with some input from Slava Semushin <slava.semushin@gmail.com> ok millert
2006-05-05Convert do {} while loop -> while {} for clarity. No binary changeTodd C. Miller
on most architectures. From Oliver Smith. OK deraadt@ and henning@
2006-04-17fix badly broken code. okay millert@, deraadt@Marc Espie
2006-03-31(char)to{upper,lower}()Theo de Raadt
2005-10-29Activate missing wcswidth, as noted by Alexander Bluhm.Marc Espie
okay deraadt@, otto@ Minor bump (nobody stepped forward with other changes, so let's do this one)
2005-08-12uncomment setlocale(3) entry;Jason McIntyre
2005-08-08zap remaining rcsid.Marc Espie
Kill old files that are no longer compiled. okay theo
2005-08-08activate LC_CTYPE for 8 bits locale.Marc Espie
Make sure tolower/toupper use the whole 8 bits. okay deraadt@ thanks to everyone who tested
2005-08-07move non-standard COMPATIBILITY section to HISTORY, which seems moreJason McIntyre
relevant anyway; ok jaredy@
2005-08-06add HISTORY; ok jmcJared Yanovich
2005-08-06- macro, punctuation, and rewording tweaksJared Yanovich
- avoid first person. ok jmc
2005-08-06sync function prototypes to reality; ok jmcJared Yanovich
2005-06-19K&R -> ANSIMarc Espie
APIWARN okay millert@, otto@
2005-06-15bye bye whiteoutsTodd C. Miller
2005-05-26Merge common functionality of __strsignal and strerror_r.Otto Moerbeek
ok jaredy@ miod@
2005-05-08Only append number when it fits to avoid truncation and returnOtto Moerbeek
appropriate error number. ok miod@, millert@ on an earlier version; ok jaredey@
2005-05-01Tidy up __strtosignal(): pass a buffer and length to its itoa() andTom Cosgrove
make sure we can't underrun this buffer. Also force NUL-termination of this buffer, and ensure that large unsigned integers are printed correctly. Started by a diff from Dave Hines, openbsd (at) dph (dot) fluff (dot) org; thanks. with and ok otto@
2005-04-20correct strlcpy abuseBob Beck
ok millert@
2005-04-16fix wmemchr.3 MLINKS;Jason McIntyre
ok espie@
2005-04-16Remove redundant lineTom Cosgrove
ok espie@ otto@ millert@ deraadt@
2005-04-14introduce some wchar functions (from citrus and an itojun@ diff)Marc Espie
okay deraadt@, cloder@, pvalchev@ thanks to everyone who commented on that.
2005-04-13- our pages do not have a LIBRARY section;Jason McIntyre
- attach rcs id - wording tweak
2005-04-13Import w* functions so that I can send smaller diffs around.Marc Espie
(Nothing activated yet, of course) okay deraadt@
2005-03-30ansify + deregister. no binary change on i386. ok deraadt@ pat@ moritz@Otto Moerbeek
2005-03-30strcasestr(3), a case-insensitive version of strstr(3). already in netbsdTheo de Raadt
and freebsd, apparently written by torek, the man we never see anymore; submitted by jcs, but he is not around right now for the libc major crank so i sneak it in for him
2005-02-25Be correct in our man pages when talking about NUL termination (that is,Chad Loder
termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
2004-12-10typos, then -> than, from Michael KnudsenJared Yanovich
2004-11-28repair libkern support (again) and add rcsidsMichael Shalayeff
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@