summaryrefslogtreecommitdiff
path: root/src/lib/libc/string (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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@
* observe the following spelling:jmc2010-09-102-9/+9
| | | | | | | | | - 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;
* 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@
* Add HISTORY section, mostly for strnlen() but include strlen() formillert2010-05-241-2/+11
| | | | completeness (verified).
* remove unused variable.chl2010-05-211-2/+1
| | | | ok millert@ tedu@
* tweak previous;jmc2010-05-192-13/+11
|
* add posix_madvise, posix_memalign, strndup, and strnlen. mostly fromtedu2010-05-185-9/+142
| | | | | brad and millert, with hints from guenther, jmc, and otto I think. ok previous.
* Modify example not to use an assignment in the if statement. We shouldn'tkettenis2010-03-241-3/+4
| | | | | | teach people bad habits! ok krw@, jmc@, dlg@, thib@
* Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod2010-02-031-3/+3
| | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
* missing word;jmc2009-12-051-3/+3
| | | | from trhodes@freebsd, r200095;
* unbreak wcschr(string, L'\0') which was incorrectly returning NULLdjm2008-08-231-3/+5
| | | | rather than a pointer to the terminating nul; ok deraadt@
* bcmp(3) tries to return length, which is a size_t, as an int.ray2008-03-191-4/+4
| | | | | | | | Instead, just return 1 if there is a difference. Found by lint. OK millert.
* - len is size_t, but n uses len and is an int. Matching those typesray2008-03-151-6/+12
| | | | | | | | | | | | | | | 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.
* Convert c to unsigned char, like it says in the manual. Also addray2008-03-151-4/+3
| | | | | | cast to make it explicit. Found by lint, OK millert.
* typos; ok jmc@martynas2007-11-271-2/+2
| | | | sys/dev/pci/pciide.c from naddy@
* Make sure to use unique target names so that make -j does not break;miod2007-10-251-25/+25
| | | | feedback and ok espie@
* add HISTORY; shortened version of diff from Ilya A. Kovalenkojmc2007-09-191-2/+7
| | | | ok millert
* remove trailing whitespace;jmc2007-09-031-2/+2
|
* add memrchr(3)millert2007-09-033-5/+63
|
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-2/+2
|
* Show how to use strcspn(3) to trim newlines.ray2007-08-081-2/+14
| | | | OK jmc and millert.
* convert to new .Dd format;jmc2007-05-3136-72/+72
|
* If NLS is disabled, strerror does not print the correct error string.bluhm2007-03-011-2/+2
| | | | | | No binary change with NLS enabled. ok otto millert espie
* wording fix from wiz@netbsd, -r1.11;jmc2007-02-191-2/+2
|
* from hubertf@netbsd:jmc2007-02-191-6/+18
| | | | | | | | | | 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
* Convert do {} while loop -> while {} for clarity. No binary changemillert2006-05-052-10/+10
| | | | on most architectures. From Oliver Smith. OK deraadt@ and henning@
* fix badly broken code. okay millert@, deraadt@espie2006-04-171-7/+7
|
* (char)to{upper,lower}()deraadt2006-03-311-2/+2
|
* Activate missing wcswidth, as noted by Alexander Bluhm.espie2005-10-291-2/+2
| | | | | okay deraadt@, otto@ Minor bump (nobody stepped forward with other changes, so let's do this one)
* uncomment setlocale(3) entry;jmc2005-08-121-2/+2
|
* zap remaining rcsid.espie2005-08-0858-287/+56
| | | | | | Kill old files that are no longer compiled. okay theo
* activate LC_CTYPE for 8 bits locale.espie2005-08-083-11/+11
| | | | | | | Make sure tolower/toupper use the whole 8 bits. okay deraadt@ thanks to everyone who tested
* move non-standard COMPATIBILITY section to HISTORY, which seems morejmc2005-08-071-10/+10
| | | | | | relevant anyway; ok jaredy@
* add HISTORY; ok jmcjaredy2005-08-061-1/+8
|
* - macro, punctuation, and rewording tweaksjaredy2005-08-064-18/+21
| | | | | | - avoid first person. ok jmc
* sync function prototypes to reality; ok jmcjaredy2005-08-061-4/+5
|
* K&R -> ANSIespie2005-06-1922-120/+79
| | | | | APIWARN okay millert@, otto@
* bye bye whiteoutsmillert2005-06-152-9/+2
|
* Merge common functionality of __strsignal and strerror_r.otto2005-05-263-129/+50
| | | | ok jaredy@ miod@
* Only append number when it fits to avoid truncation and returnotto2005-05-081-14/+11
| | | | | appropriate error number. ok miod@, millert@ on an earlier version; ok jaredey@
* Tidy up __strtosignal(): pass a buffer and length to its itoa() andtom2005-05-011-8/+12
| | | | | | | | | | | 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@
* correct strlcpy abusebeck2005-04-201-4/+8
| | | | ok millert@
* fix wmemchr.3 MLINKS;jmc2005-04-161-2/+3
| | | | ok espie@
* Remove redundant linetom2005-04-161-3/+2
| | | | ok espie@ otto@ millert@ deraadt@
* introduce some wchar functions (from citrus and an itojun@ diff)espie2005-04-141-3/+26
| | | | | okay deraadt@, cloder@, pvalchev@ thanks to everyone who commented on that.
* - our pages do not have a LIBRARY section;jmc2005-04-132-5/+5
| | | | | - attach rcs id - wording tweak
* Import w* functions so that I can send smaller diffs around.espie2005-04-1325-0/+1592
| | | | | | (Nothing activated yet, of course) okay deraadt@
* ansify + deregister. no binary change on i386. ok deraadt@ pat@ moritz@otto2005-03-308-64/+45
|