Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Add a placeholder implementation of wcscoll() and wcsxfrm() which gives | tjr | 2002-10-04 | 5 | -4/+454 |
| | | | | | locale-sensitive collation only in single-byte locales, and just does binary comparison for the others with extended character sets. | ||||
* | Add stpcpy(3). | obrien | 2002-10-03 | 4 | -2/+73 |
| | |||||
* | Add an example showing how to use wcstok(). Fix ordering of See Also section. | tjr | 2002-10-02 | 1 | -2/+15 |
| | |||||
* | Simplify by removing unneeded local variables and explicit null termination. | tjr | 2002-09-26 | 1 | -12/+8 |
| | |||||
* | Simplify by removing useless local variables and explicit null termination. | tjr | 2002-09-26 | 1 | -9/+5 |
| | |||||
* | Remove unnecessary #include <assert.h>; it was used to bring in the | tjr | 2002-09-21 | 20 | -20/+0 |
| | | | | _DIAGASSERT macro on NetBSD, but we don't need it. | ||||
* | Replace a stray reference to strtok() with one to wcstok(). | tjr | 2002-09-08 | 1 | -1/+1 |
| | |||||
* | Add an implementation of wcstok(), based on strtok_r(). | tjr | 2002-09-07 | 3 | -3/+213 |
| | |||||
* | Sync prototypes with <wchar.h> with respect to the restrict qualifier. | tjr | 2002-09-07 | 1 | -6/+6 |
| | |||||
* | Add restrict qualifiers where C99 permits them. All of these already had | tjr | 2002-09-07 | 6 | -12/+12 |
| | | | | restrict qualifiers on their prototypes in <wchar.h>. |