summaryrefslogtreecommitdiff
path: root/src/lib/libc/string (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* strcasestr(3), a case-insensitive version of strstr(3). already in netbsdderaadt2005-03-303-17/+88
| | | | | | 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
* Be correct in our man pages when talking about NUL termination (that is,cloder2005-02-2514-34/+34
| | | | | termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
* typos, then -> than, from Michael Knudsenjaredy2004-12-101-2/+2
|
* repair libkern support (again) and add rcsidsmickey2004-11-287-13/+31
|
* Missed this in the __strerror() removal.millert2004-05-031-2/+2
|
* No longer need __strerror(3) now that we use strerror_r() inside libc.millert2004-05-031-46/+0
|
* Do a better job of documenting strerror_r() and add an ERRORS section.millert2004-05-031-15/+43
|
* build the error message in strerror_r.c directly, avoiding one copy there.espie2004-05-033-120/+109
| | | | | | | | 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@.
* let __strerror fill precisely the part of the buffer it can.espie2004-05-011-17/+18
| | | | okay millert@
* Let __strerror work by fixing a number of problems. Work by tholo and I,espie2004-04-301-22/+52
| | | | | | | | okay millert@. - atoi was bogus. - atoi was not reentrant. - there's no reason to cast stuff to unsigned int.
* make Nm match Dt;jmc2004-02-101-10/+2
|
* make Nm match Dt; found by pb@jmc2004-02-091-23/+2
| | | | some of this ok espie@, all of it ok deraadt@
* Fix the example code. The loop invariant 'i' was not bound by MAXTOKENSmillert2004-01-201-3/+3
| | | | | 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.
* standards compliant strxfrm. much simpler too. fixes sorting in glib2.tedu2003-09-061-16/+4
| | | | ok deraadt@ espie@ marcm@
* escape punctuation;jmc2003-09-021-2/+2
| | | | ok deraadt@
* warn about unsafe APIs at link time. Conditional on libc/Makefile definingderaadt2003-07-242-8/+14
| | | | | APIWARN; disabled by default. In use by many developers for quite some time, now they have a common knob to enable/disable this
* clarify these functions by changing references from strings to buffersavsm2003-06-213-16/+16
| | | | ok deraadt@, millert@, jmc@, suggested by espie@
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-173-26/+26
| | | | where applicable.
* ansification, pval okderaadt2003-06-112-9/+6
|
* ansification; pval okderaadt2003-06-1123-127/+84
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0266-401/+137
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* typos;jmc2003-05-103-6/+6
|
* Change copyright to a less restrictive ISC-style license to encouragemillert2003-04-123-68/+35
| | | | people to bundle this code.
* Xr to strlcpy and strlcat more; ok millertderaadt2003-04-075-8/+13
|
* fifo -> FIFOjmc2003-04-021-2/+2
| | | | ok millert@
* ANSI function headersmillert2003-03-142-12/+6
|
* a few more strlcy; ok from beck & hoderaadt2003-03-132-6/+6
|
* fix a variety of missing or wrong MLINKSderaadt2003-02-201-1/+2
|
* Add strerror_r and functions versions of getchar_unlocked andmarc2002-11-213-3/+53
| | | | putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
* Convert to ANSI function headers and make 'ch' argument int, not char.millert2002-07-242-8/+6
| | | | Noticed by deraadt@
* For strncpy(), dst is not NUL terminated if strlen(src) >= len.millert2002-05-131-6/+5
| | | | Also fix a typo; adapted from a patch by Moritz Jodeit
* Initial cleanup:mpech2002-04-301-2/+2
| | | | | | | | | | | | 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
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-162-4/+4
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* when strerror() has an Unknown error, also set EINVALderaadt2001-12-081-3/+8
|
* 2nd param is constderaadt2001-11-211-2/+2
|
* K&R promotion is not the whole story. Make things explicit.espie2001-09-071-2/+2
|
* make debug libs build againmickey2001-09-051-1/+21
|
* o) We always close .Bl and .Bd tags;mpech2001-08-061-2/+1
| | | | | | | | | | 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
* Minor style pedentry from ben@arbor.net plus some of my own and syncmillert2001-07-291-7/+10
| | | | libkern and libc versions.
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-272-12/+8
|
* more .%A handling; bk@rt.fmderaadt2001-06-231-2/+3
|
* Clarify that if strlcat() does not find a NUL within siz byte itmillert2001-06-181-2/+4
| | | | will not NUL terminate either.
* Fix a buf oflow in EXAMPLES code; millert@ okaaron2001-06-141-3/+6
|
* type of function on seperate linederaadt2001-05-132-6/+8
|
* Document boundary condition when size < strlen(dst).millert2001-05-071-1/+20
|
* Back out last change, it is intended behavior and update the blockmillert2001-05-071-5/+5
| | | | comment to reflect this fact. Too early in the morning for me I guess.
* strlcat() should return strlen(dst) + strlen(src) when size parametermillert2001-05-071-3/+3
| | | | | <= strlen(dst). Bug report by mark.murnane@ireland.sun.com via the GNOME folks.
* Sync function comment with man page; fanf@covalent.netmillert2001-01-131-3/+3
|
* Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'millert2001-01-121-3/+3
| | | | not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
* comment fix; strlcat returns strlen(initial dst) + strlen(src).itojun2000-11-241-3/+4
|