Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Do not pick the network number as alias on entries with no alias | eric | 2012-04-10 | 1 | -3/+2 | |
| | | | | | | defined. 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 a bug where random() always returns 0 when srandom() is seeded | millert | 2012-03-21 | 1 | -2/+3 | |
| | | | | | with 0. Use 1 and not 0 as the first element of the state array, similar to what glibc does. OK nicm@ | |||||
* | the disease is spreading | dlg | 2012-03-20 | 1 | -3/+3 | |
| | ||||||
* | - Test for the retrieved page address not being NULL. This turns free((void*)1) | otto | 2012-02-29 | 1 | -2/+7 | |
| | | | | | | into an bogus pointer error instead of a segfault. - Document that we use the assumption that a non-MAP_FIXED mmap() with hint 0 never returns NULL. | |||||
* | Revert previous diff as it resulted in the wrong return code when | guenther | 2012-02-06 | 1 | -5/+3 | |
| | | | | | | | the last node is deleted. Instead, resolve the Coverity warning by returning (node *)1 when you delete the root node. based an idea from millert@. ok otto@ | |||||
* | 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 | |||||
* | net_addrcmp() dies. found out to be a horrific function by eric | deraadt | 2012-01-17 | 3 | -158/+3 | |
| | | | | ok guenther | |||||
* | grammar; | jmc | 2012-01-14 | 1 | -2/+2 | |
| | ||||||
* | this is sparta^WPOSIX 2008 | espie | 2012-01-14 | 1 | -2/+7 | |
| | | | | okay millert@ | |||||
* | draft-ietf-ipv6-scoping-arch-02 has become RFC 4007, as noted by | jmc | 2012-01-03 | 2 | -12/+10 | |
| | | | | | | Poul-Henning Kamp, freebsd pr docs/163771; ok sthen | |||||
* | strdup and strndup both use malloc. Make this fact explicit. | lum | 2011-12-08 | 1 | -3/+5 | |
| | | | | ok jmc@ | |||||
* | Complete the HISTORY of all syscalls that exist since Version 1 AT&T UNIX. | schwarze | 2011-11-17 | 1 | -2/+11 | |
| | | | | | All facts from http://minnie.tuhs.org/cgi-bin/utree.pl, checked by sobrado@. Feedback and ok jmc@ jmc@ (sic, Jason checked and ok'ed this twice). | |||||
* | Make consistent the syscall stubs for the syscalls that got special | guenther | 2011-10-16 | 1 | -1/+16 | |
| | | | | | | | | handling to fix up the alignment of 64bit arguments so that they do the same dance where _thread_sys_FOO is the real stub and FOO is a weak alias. For some of them, this is needed for cancellation handling. From discussions with fgsch@, ok millert@ | |||||
* | Make struct chunk_info a variable sized struct, wasting less | otto | 2011-10-06 | 1 | -28/+55 | |
| | | | | | space for meta data by only allocating space actually needed for the bitmap (modulo alignment requirements). ok deraadt@ | |||||
* | some minor tweaks; | jmc | 2011-09-03 | 1 | -2/+2 | |
| | ||||||
* | make -column lists pretty again; | jmc | 2011-09-03 | 1 | -3/+3 | |
| | | | | | | | | | | specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense. | |||||
* | in column lists, enforce the following ordering: | jmc | 2011-08-30 | 1 | -3/+3 | |
| | | | | | | | | | .Bl -column header1 header2 ... <Bl flags> mixing things up confuses mandoc, and adding flags in can screw up the list. this hopefully just makes things a bit safer (and more consistent). (one more bit of work left and all column lists should format how we want) | |||||
* | 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 | |||||
* | occured -> occurred; | jmc | 2011-07-24 | 1 | -2/+2 | |
| | ||||||
* | Recent Single Unix will malloc memory if the second argument of realpath() | miod | 2011-07-24 | 2 | -17/+52 | |
| | | | | | | is NULL, and third-party software is starting to rely upon this. Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor tweaks from nicm@ and yours truly. | |||||
* | Sync wcslcpy and wcslcat with strlcpy and strlcat. OK deraadt@ | millert | 2011-07-24 | 2 | -50/+26 | |
| | ||||||
* | Show (in the example) that < and > can be used multiple times; ok jmc@ | otto | 2011-07-22 | 1 | -4/+5 | |
| | | | | jasper@ | |||||
* | - add a MALLOC_OPTIONS section header. the content is already there, but having | jasper | 2011-07-21 | 1 | -3/+3 | |
| | | | | | | a section will help people looking for just the MALLOC_OPTIONS. ok otto@ jmc@ | |||||
* | on malloc flag S, set cache size to 0; will catch even more | otto | 2011-07-12 | 1 | -2/+6 | |
| | | | | use-after-free bugs; ok krw@ dlg@ pirofti@ | |||||
* | 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 | |||||
* | no more math(3); | jmc | 2011-07-07 | 9 | -32/+23 | |
| | ||||||
* | 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 | |||||
* | as man page states, lower case undoes upper case. add support for little s, | tedu | 2011-06-20 | 1 | -1/+5 | |
| | | | | | no security, for consistency. use of this option is discouraged. :) ok deraadt guenther millert | |||||
* | 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 | |
| | ||||||
* | save errno dance in wrterror() and malloc_dump(); prompted by and ok deraadt@ | otto | 2011-05-20 | 1 | -2/+6 | |
| | ||||||
* | introduce symbolic constant for initial number of regions | otto | 2011-05-18 | 1 | -2/+3 | |
| | ||||||
* | zap regions_bits and rework MALLOC_MAXSHIFT a bit; ok djm@ | otto | 2011-05-18 | 1 | -14/+8 | |
| | ||||||
* | Avoid fp computations for stats, this make calling malloc_dump() safe in more | otto | 2011-05-12 | 1 | -10/+7 | |
| | | | | cases. | |||||
* | fix comment, the bitmap is an array of u_short now | otto | 2011-05-12 | 1 | -2/+2 | |
| | ||||||
* | Introduce leak detection code for MALLOC_STATS | otto | 2011-05-12 | 1 | -25/+165 | |
| | ||||||
* | Move MALLOC_STATS code to bottom of file, so the real stuff is more at the top. | otto | 2011-05-08 | 1 | -137/+141 | |
| | ||||||
* | Up until now, malloc scanned the bits of the chunk bitmap from | otto | 2011-05-05 | 1 | -32/+24 | |
| | | | | | | | | | | | | | | | | | | position zero, skipping a random number of free slots and then picking the next free one. This slowed things down, especially if the number of full slots increases. This changes the scannning to start at a random position in the bitmap and then taking the first available free slot, wrapping if the end of the bitmap is reached. Of course we'll still scan more if the bitmap becomes more full, but the extra iterations skipping free slots and then some full slots are avoided. The random number is derived from a global, which is incremented by a few random bits every time a chunk is needed (with a small optimization if only one free slot is left). Thanks to the testers! | |||||
* | Now that we use an array of u_short for the chunk bitmap change a few | otto | 2011-04-30 | 1 | -5/+5 | |
| | | | | 1UL to 1U. | |||||
* | More efficient scanning for free chunks while not losing any randomization; | otto | 2011-04-30 | 1 | -21/+25 | |
| | | | | thanks to all testers. |