Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make sure the comparison is done with an unsigned char. | imp | 2009-02-07 | 1 | -1/+1 |
| | |||||
* | Fix the functions to match prototypes. The K&R definitions differ | imp | 2009-02-03 | 3 | -3/+3 |
| | | | | from the ANSI-C prototype due to the 'int promotion' rule. | ||||
* | - ANSIfy function definitions | danger | 2009-02-03 | 33 | -110/+41 |
| | | | | | | - use nul when we are looking for a terminating character where appropriate Approved by: imp | ||||
* | - Fix grammar. [1] | delphij | 2009-01-26 | 1 | -3/+3 |
| | | | | | | | | - Use the correct term 'long mode'. [2] - style(9) for return value. [3] Submitted by: Ben Kaduk <minimarmot gmail com> [1], obrien [2], scf [3] | ||||
* | Rewrite of MI strlen(3) in a way that can better utilize modern hardware by | delphij | 2009-01-25 | 1 | -15/+78 |
| | | | | | | | | | reducing branches and doing word-sized operation. The idea is taken from J.T. Conklin's x86_64 optimized version of strlen(3) for NetBSD, and reimplemented in C by me. Discussed on: -arch@ | ||||
* | Document that ffsll(3) and flsll(3) functions first appeared in | kib | 2009-01-13 | 1 | -1/+1 |
| | | | | | | | FreeBSD 7.1 Submitted by: Jan Henrik Sylvester <me janh de> MFC after: 3 days | ||||
* | o Language improvements from OpenBSD; | delphij | 2009-01-12 | 1 | -17/+17 |
| | | | | | | o Use an ISC-style license as did by the author. Obtained from: OpenBSD | ||||
* | o ANSIfy. | delphij | 2009-01-12 | 1 | -29/+12 |
| | | | | | | o Use ISC style copyright as did by the author. Obtained from: OpenBSD | ||||
* | Sort MLINKS. | ru | 2009-01-09 | 1 | -21/+32 |
| | |||||
* | o Use full month name in .Dd macro. | maxim | 2008-12-09 | 1 | -1/+1 |
| | |||||
* | Import the strndup(3) function. | kib | 2008-12-06 | 4 | -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 | ||||
* | Order the str*.c files mostly alphabetical. | kib | 2008-12-06 | 1 | -3/+3 |
| | | | | | Submitted by: Florian Smeets <flo kasimir com> MFC after: 2 weeks | ||||
* | Add an easier example. | pjd | 2008-12-05 | 1 | -1/+16 |
| | | | | Reviewed by: trasz | ||||
* | Add the ffsll and flsll functions. These are ffs and fls operating | kib | 2008-11-03 | 5 | -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 | ||||
* | Fix style. | kib | 2008-11-03 | 1 | -1/+1 |
| | |||||
* | - License change to a less restrictive one; | delphij | 2008-10-19 | 1 | -33/+16 |
| | | | | | | | | - ANSIfy; - Convert do {} while loop -> while {} for clarity; - Sync RCS ID with OpenBSD; Obtained from: OpenBSD | ||||
* | Further simplify the code. | delphij | 2008-10-19 | 1 | -11/+2 |
| | | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de> | ||||
* | Use strlcpy() in !localized case to avoid the -1's. | delphij | 2008-10-17 | 1 | -2/+1 |
| | |||||
* | Add memrchr(3). | delphij | 2008-04-10 | 4 | -4/+74 |
| | | | | Obtained from: OpenBSD | ||||
* | Remove license clause 3 to agree with the now-standard BSD license. | wes | 2007-12-12 | 3 | -14/+0 |
| | | | | Prompted by: Glenn Halperin, Symbian Software | ||||
* | Use C comments since we now preprocess these files with CPP. | deischen | 2007-04-29 | 1 | -2/+4 |
| | |||||
* | Per Regents of the University of Calfornia letter, remove advertising | imp | 2007-01-09 | 68 | -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. | ru | 2006-10-12 | 1 | -4/+5 |
| | | | | | PR: docs/94803 MFC after: 3 days | ||||
* | Improve the wording. Remove the appositive about strcmp, putting the | dd | 2006-08-14 | 1 | -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. | maxim | 2006-06-15 | 1 | -1/+2 |
| | |||||
* | Add each directory's symbol map file to SYM_MAPS. | deischen | 2006-03-13 | 1 | -0/+2 |
| | |||||
* | Add symbol maps and initial symbol version definitions to libc. | deischen | 2006-03-13 | 1 | -0/+80 |
| | | | | Reviewed by: davidxu | ||||
* | Fix prototype. | ru | 2005-11-24 | 1 | -2/+2 |
| | |||||
* | Fix up markup. | ru | 2005-11-18 | 1 | -7/+9 |
| | |||||
* | Remove references to nonexistent "FreeBSD Security Architecture" document. | tjr | 2005-09-05 | 2 | -10/+0 |
| | |||||
* | Added a sentence to explain what "span" means. | garys | 2005-08-29 | 2 | -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. | andre | 2005-08-25 | 6 | -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 found | tjr | 2005-08-13 | 3 | -4/+53 |
| | | | | on Microsoft and GNU systems. | ||||
* | Replace the current strspn() and strcspn() with significantly faster | das | 2005-04-02 | 2 | -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. | 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. |