aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string
Commit message (Collapse)AuthorAgeFilesLines
...
* Document that ffsll(3) and flsll(3) functions first appeared inKonstantin Belousov2009-01-131-1/+1
| | | | | | | | | | FreeBSD 7.1 Submitted by: Jan Henrik Sylvester <me janh de> MFC after: 3 days Notes: svn path=/head/; revision=187147
* o Language improvements from OpenBSD;Xin LI2009-01-121-17/+17
| | | | | | | | | o Use an ISC-style license as did by the author. Obtained from: OpenBSD Notes: svn path=/head/; revision=187091
* o ANSIfy.Xin LI2009-01-121-29/+12
| | | | | | | | | o Use ISC style copyright as did by the author. Obtained from: OpenBSD Notes: svn path=/head/; revision=187090
* Sort MLINKS.Ruslan Ermilov2009-01-091-21/+32
| | | | Notes: svn path=/head/; revision=186957
* o Use full month name in .Dd macro.Maxim Konovalov2008-12-091-1/+1
| | | | Notes: svn path=/head/; revision=185789
* Import the strndup(3) function.Konstantin Belousov2008-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 Notes: svn path=/head/; revision=185690
* Order the str*.c files mostly alphabetical.Konstantin Belousov2008-12-061-3/+3
| | | | | | | | Submitted by: Florian Smeets <flo kasimir com> MFC after: 2 weeks Notes: svn path=/head/; revision=185689
* Add an easier example.Pawel Jakub Dawidek2008-12-051-1/+16
| | | | | | | Reviewed by: trasz Notes: svn path=/head/; revision=185641
* Add the ffsll and flsll functions. These are ffs and fls operatingKonstantin Belousov2008-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 Notes: svn path=/head/; revision=184587
* Fix style.Konstantin Belousov2008-11-031-1/+1
| | | | Notes: svn path=/head/; revision=184586
* - License change to a less restrictive one;Xin LI2008-10-191-33/+16
| | | | | | | | | | | - ANSIfy; - Convert do {} while loop -> while {} for clarity; - Sync RCS ID with OpenBSD; Obtained from: OpenBSD Notes: svn path=/head/; revision=184059
* Further simplify the code.Xin LI2008-10-191-11/+2
| | | | | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de> Notes: svn path=/head/; revision=184055
* Use strlcpy() in !localized case to avoid the -1's.Xin LI2008-10-171-2/+1
| | | | Notes: svn path=/head/; revision=183990
* Add memrchr(3).Xin LI2008-04-104-4/+74
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=178051
* Remove license clause 3 to agree with the now-standard BSD license.Wes Peters2007-12-123-14/+0
| | | | | | | Prompted by: Glenn Halperin, Symbian Software Notes: svn path=/head/; revision=174553
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-2/+4
| | | | Notes: svn path=/head/; revision=169092
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-0968-272/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Don't say "rightmost" when referring to the least significant bit.Ruslan Ermilov2006-10-121-4/+5
| | | | | | | | PR: docs/94803 MFC after: 3 days Notes: svn path=/head/; revision=163274
* Improve the wording. Remove the appositive about strcmp, putting theDima Dorfman2006-08-141-2/+5
| | | | | | | | first sentence back to the way it was. Add a second sentence that explains the case when strcmp is called. Notes: svn path=/head/; revision=161274
* o Make grep ^strlcpy work: put a return value type on separate line.Maxim Konovalov2006-06-151-1/+2
| | | | Notes: svn path=/head/; revision=159644
* Add each directory's symbol map file to SYM_MAPS.Daniel Eischen2006-03-131-0/+2
| | | | Notes: svn path=/head/; revision=156613
* Add symbol maps and initial symbol version definitions to libc.Daniel Eischen2006-03-131-0/+80
| | | | | | | Reviewed by: davidxu Notes: svn path=/head/; revision=156608
* Fix prototype.Ruslan Ermilov2005-11-241-2/+2
| | | | Notes: svn path=/head/; revision=152746
* Fix up markup.Ruslan Ermilov2005-11-181-7/+9
| | | | Notes: svn path=/head/; revision=152571
* Remove references to nonexistent "FreeBSD Security Architecture" document.Tim J. Robbins2005-09-052-10/+0
| | | | Notes: svn path=/head/; revision=149792
* Added a sentence to explain what "span" means.Gary W. Swearingen2005-08-292-1/+15
| | | | | | | | | | PR: docs/84850 Submitted by: garys MFC after: 3 days Approved by: keramida Notes: svn path=/head/; revision=149603
* Add the function memmem(3) as found in glibc and others.Andre Oppermann2005-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 Notes: svn path=/head/; revision=149466
* Add an implementation of the semi-standard wcsdup() function, as foundTim J. Robbins2005-08-133-4/+53
| | | | | | | on Microsoft and GNU systems. Notes: svn path=/head/; revision=149011
* Replace the current strspn() and strcspn() with significantly fasterDavid Schultz2005-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. Notes: svn path=/head/; revision=144545
* Unbreak strsignal(). This is an MFC candidate.Maxime Henrion2005-03-061-2/+3
| | | | | | | Reported by: Sean McNeil <sean@mcneil.com> Notes: svn path=/head/; revision=143166
* Unbreak !NLS caseAlexey Zelkin2005-02-272-2/+2
| | | | Notes: svn path=/head/; revision=142693
* Add NLS catalogs support to strerror(), strerror_r() and strsignal().Alexey Zelkin2005-02-272-29/+97
| | | | | | | | | Controlled by NLS define, currently disabled by default. Idea obtained from: NetBSD Notes: svn path=/head/; revision=142667
* Don't read more than the given 'len' bytes from the 'big' string.Pawel Jakub Dawidek2005-02-111-1/+1
| | | | | | | | | PR: misc/77369 Submitted by: Ed Maste <emaste@phaedrus.sandvine.ca> MFC after: 1 week Notes: svn path=/head/; revision=141701
* Sort sections.Ruslan Ermilov2005-01-201-8/+8
| | | | Notes: svn path=/head/; revision=140505
* Date business, update.Tom Rhodes2004-12-101-1/+1
| | | | Notes: svn path=/head/; revision=138660
* According to the information on:Tom Rhodes2004-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 Notes: svn path=/head/; revision=138659
* Enable building with LIBC_SCCS defined.David E. O'Brien2004-10-161-1/+1
| | | | | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it> Notes: svn path=/head/; revision=136582
* Remove extra closing parenthesis added in revision 1.4.Stefan Farfeleder2004-10-141-1/+1
| | | | | | | Noticed by: Andrea Campi Notes: svn path=/head/; revision=136519
* Correctly document the return value of strerror() and strerror_r() andGiorgos Keramidas2004-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 Notes: svn path=/head/; revision=136432
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-022-3/+5
| | | | Notes: svn path=/head/; revision=131504
* Markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-301-1/+1
| | | | Notes: svn path=/head/; revision=131365
* Prepare to handle state-dependent encodings. This mainly involves notTim J. Robbins2004-04-072-4/+12
| | | | | | | | taking shortcuts when it comes to storing and passing around conversion states. Notes: svn path=/head/; revision=127998
* Translate from GNU C to ISO C.Dag-Erling Smørgrav2004-01-144-4/+4
| | | | Notes: svn path=/head/; revision=124514
* Add and document ffsl(), fls() and flsl().Dag-Erling Smørgrav2004-01-136-10/+199
| | | | Notes: svn path=/head/; revision=124483
* Brucification: Don't initialize in declaration, make sure extra linesJordan K. Hubbard2003-12-182-2/+5
| | | | | | | follow declaration section. Notes: svn path=/head/; revision=123631
* Do comparison using appropriate casting first, as per SUSv3 (search for firstJordan K. Hubbard2003-12-172-2/+4
| | | | | | | [last] character, not int). Notes: svn path=/head/; revision=123584
* Pass NULL instead of a pointer to a zeroed mbstate_t object.Tim J. Robbins2003-11-052-10/+4
| | | | Notes: svn path=/head/; revision=122104
* Pacify gcc about casting pointers to integers (for the lowest few bits).Peter Wemm2003-10-261-6/+8
| | | | Notes: svn path=/head/; revision=121531
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-086-12/+12
| | | | Notes: svn path=/head/; revision=119893
* Move a sentence about the terminating \0 from the RETURN VALUES sectionSimon L. B. Nielsen2003-09-042-14/+14
| | | | | | | | | | | (where it didn't really belong), to the DESCRIPTION section. English advice: ceri Requested by: das MFC after: 4 weeks Notes: svn path=/head/; revision=119748