aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string
Commit message (Collapse)AuthorAgeFilesLines
* 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
* * Merge index(3) and rindex(3) to index(3) since the two functions areSimon L. B. Nielsen2003-07-285-216/+61
| | | | | | | | | | | | | | | | almost identical. * Merge strchr(3) and strrchr(3) to strchr(3) since the two functions are almost identical. * Make the wording of index(3) and strchr(3) more similar. * mdoc(7) cleanup. Submitted by: SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself PR: docs/32054 Reviewed by: ru Approved by: ceri (mentor) Notes: svn path=/head/; revision=118134
* o strmode(3) returns void not 0.Maxim Konovalov2003-07-011-5/+0
| | | | | | | | | PR: docs/53488 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week Notes: svn path=/head/; revision=117123
* Back out the `hiding' of strlcpy and strlcat. Several peopleJacques Vidrine2003-05-013-13/+5
| | | | | | | vocally objected to this safety belt. Notes: svn path=/head/; revision=114443
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-04-293-5/+13
| | | | | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy Notes: svn path=/head/; revision=114256
* MFp4: Make `spanp' const.Tim J. Robbins2003-03-121-3/+4
| | | | Notes: svn path=/head/; revision=112131
* Optimize errstr() by reducing the number of times it walks a string.Mike Barcroft2003-01-031-9/+7
| | | | | | | | | | | As a side effect, it makes the code easier to read and requires less pointer arithmetic. Test by: strerror regression test Submitted by: Tim Kientzle <kientzle@acm.org> Notes: svn path=/head/; revision=108603
* Stylistic changes:Mike Barcroft2002-12-201-11/+14
| | | | | | | | | | | | | | o Fix an English error (comma splice) and poorly worded sentence. o Fix KNF ordering of variables (pointers come before arithmetic types). o Restore hand-optimization of sizeof()-1, instead of strlen(). o Remove unneeded local variables in strerror_r(). Test by: strerror regression test Requested by: bde Reviewed by: bde Notes: svn path=/head/; revision=108118
* Add back the Standards section claiming conformance to 1003.1-2001 andTim J. Robbins2002-12-191-10/+13
| | | | | | | C99 now that all known standards-related bugs have been fixed. Notes: svn path=/head/; revision=108091
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+1
| | | | Notes: svn path=/head/; revision=108087
* Rearrange strerror() so that its itoa procedure can be used withMike Barcroft2002-12-182-86/+45
| | | | | | | | | | | | | | | | | | strerror_r(). Doing this allows us to ensure that strerror_r() always fills the supplied buffer regardless of EINVAL or ERANGE errors. strerror()'s semantics have changed slightly such that an argument of 0 is now considered invalid and errno is set to EINVAL. Remove internal regression test for strerror() and strerror_r(). This will be reincarnated in src/tools/regression/lib/libc/string. In strerror(3), add a comment about strerror()'s bogus return type. PR: 44356 Notes: svn path=/head/; revision=108044
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.Ruslan Ermilov2002-12-183-4/+4
| | | | Notes: svn path=/head/; revision=108040
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-183-0/+5
| | | | Notes: svn path=/head/; revision=108037
* mdoc(7) police: tiny nits.Ruslan Ermilov2002-12-093-8/+11
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107706
* mdoc(7) police: formatting nits.Ruslan Ermilov2002-11-292-2/+4
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107387
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-6/+4
| | | | Notes: svn path=/head/; revision=107052