summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
Commit message (Collapse)AuthorAgeFilesLines
...
* 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).
* Pass NULL instead of a pointer to a zeroed mbstate_t object.tjr2003-11-052-10/+4
|
* Pacify gcc about casting pointers to integers (for the lowest few bits).peter2003-10-261-6/+8
|
* mdoc(7): Use the new feature of the .In macro.ru2003-09-086-12/+12
|
* Move a sentence about the terminating \0 from the RETURN VALUES sectionsimon2003-09-042-14/+14
| | | | | | | | (where it didn't really belong), to the DESCRIPTION section. English advice: ceri Requested by: das MFC after: 4 weeks
* * Merge index(3) and rindex(3) to index(3) since the two functions aresimon2003-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)
* o strmode(3) returns void not 0.maxim2003-07-011-5/+0
| | | | | | PR: docs/53488 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
* Back out the `hiding' of strlcpy and strlcat. Several peoplenectar2003-05-013-13/+5
| | | | vocally objected to this safety belt.
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referencenectar2003-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
* MFp4: Make `spanp' const.tjr2003-03-121-3/+4
|
* Optimize errstr() by reducing the number of times it walks a string.mike2003-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>
* Stylistic changes:mike2002-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
* Add back the Standards section claiming conformance to 1003.1-2001 andtjr2002-12-191-10/+13
| | | | C99 now that all known standards-related bugs have been fixed.
* mdoc(7) police: "The .Fa argument.".ru2002-12-191-1/+1
|
* Rearrange strerror() so that its itoa procedure can be used withmike2002-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
* mdoc(7) police: Fixed abuses of the .Ar and .Em macros.ru2002-12-183-4/+4
|
OpenPOWER on IntegriCloud