summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix the functions to match prototypes. The K&R definitions differimp2009-02-033-3/+3
| | | | from the ANSI-C prototype due to the 'int promotion' rule.
* - ANSIfy function definitionsdanger2009-02-0333-110/+41
| | | | | | - use nul when we are looking for a terminating character where appropriate Approved by: imp
* - Fix grammar. [1]delphij2009-01-261-3/+3
| | | | | | | | - Use the correct term 'long mode'. [2] - style(9) for return value. [3] Submitted by: Ben Kaduk <minimarmot gmail com> [1], obrien [2], scf [3]
* Rewrite of MI strlen(3) in a way that can better utilize modern hardware bydelphij2009-01-251-15/+78
| | | | | | | | | reducing branches and doing word-sized operation. The idea is taken from J.T. Conklin's x86_64 optimized version of strlen(3) for NetBSD, and reimplemented in C by me. Discussed on: -arch@
* Document that ffsll(3) and flsll(3) functions first appeared inkib2009-01-131-1/+1
| | | | | | | FreeBSD 7.1 Submitted by: Jan Henrik Sylvester <me janh de> MFC after: 3 days
* o Language improvements from OpenBSD;delphij2009-01-121-17/+17
| | | | | | o Use an ISC-style license as did by the author. Obtained from: OpenBSD
* o ANSIfy.delphij2009-01-121-29/+12
| | | | | | o Use ISC style copyright as did by the author. Obtained from: OpenBSD
* Sort MLINKS.ru2009-01-091-21/+32
|
* o Use full month name in .Dd macro.maxim2008-12-091-1/+1
|
* Import the strndup(3) function.kib2008-12-064-3/+75
| | | | | | | | Copyright attribution is kept the same as in original NetBSD source. Submitted by: Florian Smeets <flo kasimir com> Obtained from: NetBSD MFC after: 2 weeks
* Order the str*.c files mostly alphabetical.kib2008-12-061-3/+3
| | | | | Submitted by: Florian Smeets <flo kasimir com> MFC after: 2 weeks
* Add an easier example.pjd2008-12-051-1/+16
| | | | Reviewed by: trasz
* Add the ffsll and flsll functions. These are ffs and fls operatingkib2008-11-035-8/+122
| | | | | | | | on long long arguments. Reviewed by: bde (previous version, that included asm implementation for all ffs and fls functions on i386 and amd64) MFC after: 2 weeks
* Fix style.kib2008-11-031-1/+1
|
* - License change to a less restrictive one;delphij2008-10-191-33/+16
| | | | | | | | - ANSIfy; - Convert do {} while loop -> while {} for clarity; - Sync RCS ID with OpenBSD; Obtained from: OpenBSD
* Further simplify the code.delphij2008-10-191-11/+2
| | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de>
* Use strlcpy() in !localized case to avoid the -1's.delphij2008-10-171-2/+1
|
* Add memrchr(3).delphij2008-04-104-4/+74
| | | | Obtained from: OpenBSD
* Remove license clause 3 to agree with the now-standard BSD license.wes2007-12-123-14/+0
| | | | Prompted by: Glenn Halperin, Symbian Software
* Use C comments since we now preprocess these files with CPP.deischen2007-04-291-2/+4
|
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-0968-272/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Don't say "rightmost" when referring to the least significant bit.ru2006-10-121-4/+5
| | | | | PR: docs/94803 MFC after: 3 days
* Improve the wording. Remove the appositive about strcmp, putting thedd2006-08-141-2/+5
| | | | | first sentence back to the way it was. Add a second sentence that explains the case when strcmp is called.
* o Make grep ^strlcpy work: put a return value type on separate line.maxim2006-06-151-1/+2
|
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+2
|
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-131-0/+80
| | | | Reviewed by: davidxu
* Fix prototype.ru2005-11-241-2/+2
|
* Fix up markup.ru2005-11-181-7/+9
|
* Remove references to nonexistent "FreeBSD Security Architecture" document.tjr2005-09-052-10/+0
|
* Added a sentence to explain what "span" means.garys2005-08-292-1/+15
| | | | | | | PR: docs/84850 Submitted by: garys MFC after: 3 days Approved by: keramida
* Add the function memmem(3) as found in glibc and others.andre2005-08-256-5/+159
| | | | | | | | | | It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days
* Add an implementation of the semi-standard wcsdup() function, as foundtjr2005-08-133-4/+53
| | | | on Microsoft and GNU systems.
* Replace the current strspn() and strcspn() with significantly fasterdas2005-04-022-67/+79
| | | | | | | | | implementations inspired by the ones in DragonFly. Unlike the DragonFly versions, these have a small data cache footprint, and my tests show that they're never slower than the old code except when the charset or the span is 0 or 1 characters. This implementation is generally faster than DragonFly until either the charset or the span gets in the ballpark of 32 to 64 characters.
* Unbreak strsignal(). This is an MFC candidate.mux2005-03-061-2/+3
| | | | Reported by: Sean McNeil <sean@mcneil.com>
* Unbreak !NLS casephantom2005-02-272-2/+2
|
* Add NLS catalogs support to strerror(), strerror_r() and strsignal().phantom2005-02-272-29/+97
| | | | | | Controlled by NLS define, currently disabled by default. Idea obtained from: NetBSD
* Don't read more than the given 'len' bytes from the 'big' string.pjd2005-02-111-1/+1
| | | | | | PR: misc/77369 Submitted by: Ed Maste <emaste@phaedrus.sandvine.ca> MFC after: 1 week
* Sort sections.ru2005-01-201-8/+8
|
* Date business, update.trhodes2004-12-101-1/+1
|
* According to the information on:trhodes2004-12-102-4/+4
| | | | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/functions/swab.html the prototype for swab() should be in <unistd.h> and not in <string.h>. Move it, and update to match SUS. Leave the prototype in string.h for now, for backwards compat. PR: 74751 Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> Discussed with: das
* Enable building with LIBC_SCCS defined.obrien2004-10-161-1/+1
| | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it>
* Remove extra closing parenthesis added in revision 1.4.stefanf2004-10-141-1/+1
| | | | Noticed by: Andrea Campi
* Correctly document the return value of strerror() and strerror_r() andkeramida2004-10-121-11/+10
| | | | | | | | the contents of the returned buffer for unknown error codes. PR: docs/72578 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 3 days
* Mechanically kill hard sentence breaks.ru2004-07-022-3/+5
|
* Markup, grammar, and spelling fixes.ru2004-06-301-1/+1
|
* Prepare to handle state-dependent encodings. This mainly involves nottjr2004-04-072-4/+12
| | | | | taking shortcuts when it comes to storing and passing around conversion states.
* Translate from GNU C to ISO C.des2004-01-144-4/+4
|
* Add and document ffsl(), fls() and flsl().des2004-01-136-10/+199
|
* Brucification: Don't initialize in declaration, make sure extra linesjkh2003-12-182-2/+5
| | | | follow declaration section.
* Do comparison using appropriate casting first, as per SUSv3 (search for firstjkh2003-12-172-2/+4
| | | | [last] character, not int).
OpenPOWER on IntegriCloud