Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unbreak strsignal(). This is an MFC candidate. | mux | 2005-03-06 | 1 | -2/+3 |
| | | | | Reported by: Sean McNeil <sean@mcneil.com> | ||||
* | Unbreak !NLS case | phantom | 2005-02-27 | 2 | -2/+2 |
| | |||||
* | Add NLS catalogs support to strerror(), strerror_r() and strsignal(). | phantom | 2005-02-27 | 2 | -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. | pjd | 2005-02-11 | 1 | -1/+1 |
| | | | | | | PR: misc/77369 Submitted by: Ed Maste <emaste@phaedrus.sandvine.ca> MFC after: 1 week | ||||
* | Sort sections. | ru | 2005-01-20 | 1 | -8/+8 |
| | |||||
* | Date business, update. | trhodes | 2004-12-10 | 1 | -1/+1 |
| | |||||
* | According to the information on: | trhodes | 2004-12-10 | 2 | -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. | obrien | 2004-10-16 | 1 | -1/+1 |
| | | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it> | ||||
* | Remove extra closing parenthesis added in revision 1.4. | stefanf | 2004-10-14 | 1 | -1/+1 |
| | | | | Noticed by: Andrea Campi | ||||
* | Correctly document the return value of strerror() and strerror_r() and | keramida | 2004-10-12 | 1 | -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. | ru | 2004-07-02 | 2 | -3/+5 |
| | |||||
* | Markup, grammar, and spelling fixes. | ru | 2004-06-30 | 1 | -1/+1 |
| | |||||
* | Prepare to handle state-dependent encodings. This mainly involves not | tjr | 2004-04-07 | 2 | -4/+12 |
| | | | | | taking shortcuts when it comes to storing and passing around conversion states. | ||||
* | Translate from GNU C to ISO C. | des | 2004-01-14 | 4 | -4/+4 |
| | |||||
* | Add and document ffsl(), fls() and flsl(). | des | 2004-01-13 | 6 | -10/+199 |
| | |||||
* | Brucification: Don't initialize in declaration, make sure extra lines | jkh | 2003-12-18 | 2 | -2/+5 |
| | | | | follow declaration section. | ||||
* | Do comparison using appropriate casting first, as per SUSv3 (search for first | jkh | 2003-12-17 | 2 | -2/+4 |
| | | | | [last] character, not int). | ||||
* | Pass NULL instead of a pointer to a zeroed mbstate_t object. | tjr | 2003-11-05 | 2 | -10/+4 |
| | |||||
* | Pacify gcc about casting pointers to integers (for the lowest few bits). | peter | 2003-10-26 | 1 | -6/+8 |
| | |||||
* | mdoc(7): Use the new feature of the .In macro. | ru | 2003-09-08 | 6 | -12/+12 |
| | |||||
* | Move a sentence about the terminating \0 from the RETURN VALUES section | simon | 2003-09-04 | 2 | -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 are | simon | 2003-07-28 | 5 | -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. | maxim | 2003-07-01 | 1 | -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 people | nectar | 2003-05-01 | 3 | -13/+5 |
| | | | | vocally objected to this safety belt. | ||||
* | `Hide' strlcpy and strlcat (using the namespace.h / __weak_reference | nectar | 2003-04-29 | 3 | -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. | tjr | 2003-03-12 | 1 | -3/+4 |
| | |||||
* | Optimize errstr() by reducing the number of times it walks a string. | mike | 2003-01-03 | 1 | -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: | mike | 2002-12-20 | 1 | -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 and | tjr | 2002-12-19 | 1 | -10/+13 |
| | | | | C99 now that all known standards-related bugs have been fixed. | ||||
* | mdoc(7) police: "The .Fa argument.". | ru | 2002-12-19 | 1 | -1/+1 |
| | |||||
* | Rearrange strerror() so that its itoa procedure can be used with | mike | 2002-12-18 | 2 | -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. | ru | 2002-12-18 | 3 | -4/+4 |
| | |||||
* | mdoc(7) police: "The .Fn function". | ru | 2002-12-18 | 3 | -0/+5 |
| | |||||
* | mdoc(7) police: tiny nits. | ru | 2002-12-09 | 3 | -8/+11 |
| | | | | Approved by: re | ||||
* | mdoc(7) police: formatting nits. | ru | 2002-11-29 | 2 | -2/+4 |
| | | | | Approved by: re | ||||
* | libc_r wasn't so tied to libc for 22 months. | ru | 2002-11-18 | 1 | -6/+4 |
| | |||||
* | Replace wcsstr() with an implementation based on strstr(), which is far | tjr | 2002-10-24 | 1 | -38/+32 |
| | | | | | | more efficient. The problem with the previous implementation was that it calculated the length of the first argument ("big") with wcslen() when it was not necessary. | ||||
* | Restore Berkeley SCCS id. | tjr | 2002-10-24 | 1 | -1/+5 |
| | |||||
* | Remove the Standards section again until we get these functions sorted | tjr | 2002-10-24 | 1 | -8/+0 |
| | | | | out. This will probably have to wait until after 5.0-R. | ||||
* | Fix the NetBSD RCS id's on these files; somehow they were initially | tjr | 2002-10-23 | 2 | -2/+2 |
| | | | | committed with the tags unexpanded. | ||||
* | Reimplement more efficiently, using a single forward scan (like strrchr(3)) | tjr | 2002-10-23 | 1 | -22/+12 |
| | | | | | instead of scanning forwards to find the end of the string then scanning backwards to find the character. | ||||
* | Reimplement, handling the case where c == L'\0' correctly and fixing | tjr | 2002-10-23 | 1 | -21/+7 |
| | | | | some style(9) bugs. | ||||
* | Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001. | tjr | 2002-10-23 | 1 | -1/+17 |
| | | | | | Also add a note to the Bugs section pointing out that strerror() and perror() share the same static buffer. | ||||
* | Translate to English. | des | 2002-10-23 | 1 | -13/+18 |
| | |||||
* | Replace this wcsncpy() implementation with one based on strncpy.c to fix | tjr | 2002-10-23 | 1 | -26/+32 |
| | | | | | | | two major bugs: - off-by-one overflow when the length of the source string exceeds or equals the destination buffer size. - old version was not padding the destination buffer with null wide chars | ||||
* | C89 does not specifiy strsep(), so our strsep() implementation cannot | tjr | 2002-10-19 | 1 | -1/+0 |
| | | | | | | conform to it. Obtained from: OpenBSD | ||||
* | Add cross-references to the wide character counterparts of these functions. | tjr | 2002-10-15 | 3 | -3/+6 |
| | |||||
* | Remove stray comma at the end of the See Also list. | tjr | 2002-10-15 | 1 | -1/+1 |
| | |||||
* | Fix another spelling mistake. | robert | 2002-10-10 | 1 | -1/+1 |
| | |||||
* | Correct a spelling mistake. | robert | 2002-10-10 | 1 | -1/+1 |
| |