Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove useless include. | ajacoutot | 2013-05-30 | 1 | -2/+1 |
| | | | | ok millert@ | ||||
* | typo: compare len against null needle, not haystack | ajacoutot | 2013-05-15 | 1 | -2/+2 |
| | | | | | | from Alf Schlichting ok millert@ | ||||
* | Add an implementation of memmem() -- from FreeBSD with some tweaks. | ajacoutot | 2013-05-13 | 3 | -4/+145 |
| | | | | | | | | | Requires a libc minor bump, committing now so that we have up-to-date snapshots for the upcoming hackathon. joint work with millert@ man page bits ok jmc@ input and ok millert@, guenther@, deraadt@ | ||||
* | remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets. | okan | 2012-08-02 | 1 | -21/+1 |
| | | | | ok guenther@ | ||||
* | fix an off-by-one error where the return value would point to the | naddy | 2012-07-11 | 1 | -2/+2 |
| | | | | character after the '\0'; ok guenther@ | ||||
* | Add strnlen() to libkern. | matthew | 2012-04-26 | 1 | -1/+5 |
| | | | | ok deraadt | ||||
* | tweak previous; | jmc | 2012-04-03 | 1 | -3/+3 |
| | |||||
* | simplify the strlcpy/strlcat manual page substantially. do less | deraadt | 2012-04-02 | 1 | -70/+58 |
| | | | | | | | | | | | | explaining of "what a C string is", and make it more clear that these functiosn BEHAVE EXACTLY LIKE snprintf with "%s"! (anyone who wants to write a 'strlcpy considered harmful' paper should probably write a 'strlcpy and snprintf considered harmful' paper instead). note to those from other projects reading this commit message: It would be very good if this new manual was picked up in your project. ok jmc millert krw | ||||
* | Bump standards years, as we conform to the new versions too | guenther | 2012-03-26 | 1 | -4/+4 |
| | | | | ok jmc@ | ||||
* | strsignal() was standardized in POSIX-2008 | guenther | 2012-03-26 | 1 | -2/+7 |
| | | | | ok millert@ | ||||
* | fix SEE ALSO; | jmc | 2012-01-17 | 1 | -2/+2 |
| | |||||
* | Add stpcpy() and stpncpy(), pointless crap that made it into POSIX. | guenther | 2012-01-17 | 4 | -3/+222 |
| | | | | | | Includes friendly linker warning to wake up those dumb enough to use it. Committing for kettenis@, who ran away to the hills after writing it | ||||
* | grammar; | jmc | 2012-01-14 | 1 | -2/+2 |
| | |||||
* | this is sparta^WPOSIX 2008 | espie | 2012-01-14 | 1 | -2/+7 |
| | | | | okay millert@ | ||||
* | strdup and strndup both use malloc. Make this fact explicit. | lum | 2011-12-08 | 1 | -3/+5 |
| | | | | ok jmc@ | ||||
* | tweak previous; | jmc | 2011-07-25 | 3 | -6/+6 |
| | |||||
* | update HISTORY and SEE ALSO for all of string(3), together with various | schwarze | 2011-07-25 | 53 | -237/+642 |
| | | | | | smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree | ||||
* | Sync wcslcpy and wcslcat with strlcpy and strlcat. OK deraadt@ | millert | 2011-07-24 | 2 | -50/+26 |
| | |||||
* | Minor function name tweaks. | nicm | 2011-07-09 | 3 | -8/+8 |
| | |||||
* | Instead of documenting all the wide string functions in wmemchr(3), add | nicm | 2011-07-09 | 18 | -139/+1327 |
| | | | | | | | individual pages (based on the existing string man pages). By Tim van der Molen (tbvdm at xs4all dot nl) after a suggestion by millert@. ok deraadt | ||||
* | After a certain amount of fighting with the mbstowcs API, remove L from | nicm | 2011-07-08 | 1 | -4/+12 |
| | | | | | | the wcsdup example. ok stsp | ||||
* | Fix some awful code in the example, pointed out by millert@. | nicm | 2011-07-05 | 1 | -3/+3 |
| | |||||
* | Add wcsdup(), from NetBSD. | nicm | 2011-07-04 | 3 | -3/+120 |
| | | | | ok deraadt matthew | ||||
* | fix wcscasecmp() parameters; <wchar.h> was correct | naddy | 2011-06-01 | 1 | -2/+2 |
| | |||||
* | tweak previous (my fault); | jmc | 2011-05-28 | 1 | -4/+4 |
| | |||||
* | wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@ | espie | 2011-05-28 | 3 | -5/+82 |
| | |||||
* | Add a wcswidth man page (based on FreeBSD), and fix the implementation | stsp | 2011-04-04 | 3 | -5/+68 |
| | | | | | to return -1 in case of an unprintable character. ok nicm jmc | ||||
* | Add timingsafe_bcmp(3) to libc, mention that it's already in the | matthew | 2010-09-24 | 3 | -5/+62 |
| | | | | | | kernel in kern(9), and remove it from OpenSSH. ok deraadt@, djm@ | ||||
* | observe the following spelling: | jmc | 2010-09-10 | 2 | -9/+9 |
| | | | | | | | | | - wide character (noun) - wide-character (adjective) this is the "fix of least resistance", and appears to be in line with posix style; a tiny fix still needed for curses, but i'll mail that upstream; | ||||
* | Avoid using and end pointer since strnlen(string, -1) is legal | millert | 2010-06-02 | 1 | -4/+3 |
| | | | | | and would otherwise result in overflowing the end pointer and cause strnlen() to return 0. OK sthen@ | ||||
* | Add HISTORY section, mostly for strnlen() but include strlen() for | millert | 2010-05-24 | 1 | -2/+11 |
| | | | | completeness (verified). | ||||
* | remove unused variable. | chl | 2010-05-21 | 1 | -2/+1 |
| | | | | ok millert@ tedu@ | ||||
* | tweak previous; | jmc | 2010-05-19 | 2 | -13/+11 |
| | |||||
* | add posix_madvise, posix_memalign, strndup, and strnlen. mostly from | tedu | 2010-05-18 | 5 | -9/+142 |
| | | | | | brad and millert, with hints from guenther, jmc, and otto I think. ok previous. | ||||
* | Modify example not to use an assignment in the if statement. We shouldn't | kettenis | 2010-03-24 | 1 | -3/+4 |
| | | | | | | teach people bad habits! ok krw@, jmc@, dlg@, thib@ | ||||
* | Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependent | miod | 2010-02-03 | 1 | -3/+3 |
| | | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@ | ||||
* | missing word; | jmc | 2009-12-05 | 1 | -3/+3 |
| | | | | from trhodes@freebsd, r200095; | ||||
* | unbreak wcschr(string, L'\0') which was incorrectly returning NULL | djm | 2008-08-23 | 1 | -3/+5 |
| | | | | rather than a pointer to the terminating nul; ok deraadt@ | ||||
* | bcmp(3) tries to return length, which is a size_t, as an int. | ray | 2008-03-19 | 1 | -4/+4 |
| | | | | | | | | Instead, just return 1 if there is a difference. Found by lint. OK millert. | ||||
* | - len is size_t, but n uses len and is an int. Matching those types | ray | 2008-03-15 | 1 | -6/+12 |
| | | | | | | | | | | | | | | | should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert. | ||||
* | Convert c to unsigned char, like it says in the manual. Also add | ray | 2008-03-15 | 1 | -4/+3 |
| | | | | | | cast to make it explicit. Found by lint, OK millert. | ||||
* | typos; ok jmc@ | martynas | 2007-11-27 | 1 | -2/+2 |
| | | | | sys/dev/pci/pciide.c from naddy@ | ||||
* | Make sure to use unique target names so that make -j does not break; | miod | 2007-10-25 | 1 | -25/+25 |
| | | | | feedback and ok espie@ | ||||
* | add HISTORY; shortened version of diff from Ilya A. Kovalenko | jmc | 2007-09-19 | 1 | -2/+7 |
| | | | | ok millert | ||||
* | remove trailing whitespace; | jmc | 2007-09-03 | 1 | -2/+2 |
| | |||||
* | add memrchr(3) | millert | 2007-09-03 | 3 | -5/+63 |
| | |||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | deraadt | 2007-09-02 | 1 | -2/+2 |
| | |||||
* | Show how to use strcspn(3) to trim newlines. | ray | 2007-08-08 | 1 | -2/+14 |
| | | | | OK jmc and millert. | ||||
* | convert to new .Dd format; | jmc | 2007-05-31 | 36 | -72/+72 |
| | |||||
* | If NLS is disabled, strerror does not print the correct error string. | bluhm | 2007-03-01 | 1 | -2/+2 |
| | | | | | | No binary change with NLS enabled. ok otto millert espie |