Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | extra evil spaces snuck in over the last while | deraadt | 2014-06-27 | 1 | -20/+20 |
| | |||||
* | Move to a smaller rbytes buffer and skip a random part. Not to | otto | 2014-06-27 | 1 | -3/+4 |
| | | | | | | improve the random stream itself (it doesn't), but to introduce noise in the arc4random calling pattern. Thanks to matthew@ who pointed out bias in a previous diff, ok deraadt@ matthew@ | ||||
* | Always call atexit handlers as if they were registered with __cxa_atexit. | kettenis | 2014-06-18 | 2 | -14/+8 |
| | | | | | | | | | | | The extra argument doesn't hurt genuine atexit handlers and this fixes a bug where we didn't provide the argument (effectively passing garbage) for functions registered with __cxa_atexit in the main executable. Pointed out by Dmitriy Ivanov <dimitry@google.com> and Elliott Hughes <enh@google.com>. ok matthew@ | ||||
* | oops, typo. James Hartley is fast at trying -current | deraadt | 2014-06-15 | 1 | -2/+2 |
| | |||||
* | In srandomdev(), use arc4random_buf() instead of from the kernel. | deraadt | 2014-06-15 | 1 | -4/+3 |
| | | | | discussion with matthew | ||||
* | use getentropy; from matthew | deraadt | 2014-06-13 | 1 | -5/+2 |
| | |||||
* | Disable the "switch to insertion sort" optimization to avoid quadratic | millert | 2014-06-12 | 1 | -13/+2 |
| | | | | behavior for certain inputs. From NetBSD. OK tedu@ | ||||
* | move random bytes buffer to be part of mmaped pages; ok tedu@ | otto | 2014-06-02 | 1 | -21/+18 |
| | |||||
* | move all stats collecting under MALLOC_STATS; ok krw@ | otto | 2014-05-26 | 1 | -28/+33 |
| | |||||
* | fix MALLOC_STATS (not compiled in by default); ok tedu@ | otto | 2014-05-21 | 1 | -18/+19 |
| | |||||
* | factor out a bit of the chunk index code and use it to make sure that a | tedu | 2014-05-18 | 1 | -14/+33 |
| | | | | | freed chunk is actually freeable immediately. catch more errors. hints/ok otto | ||||
* | stop flushing streams in abort(). it's hackish and unsafe, and no longer | tedu | 2014-05-14 | 2 | -21/+13 |
| | | | | | required. try to document this fact and some of the history. with feedback from deraadt guenther millert | ||||
* | change to having four freelists per size, to reduce another source of | tedu | 2014-05-12 | 1 | -16/+20 |
| | | | | | deterministic behavior. four selected because it's more than three, less than five. i.e., no particular reason. | ||||
* | fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by default | otto | 2014-05-10 | 1 | -2/+2 |
| | |||||
* | move reallocarray() to a seperate file so that -portable applications | deraadt | 2014-05-08 | 3 | -18/+46 |
| | | | | | can avoid reinventing the wheel ok guenther schwarze | ||||
* | comment style fix | halex | 2014-05-07 | 1 | -2/+3 |
| | | | | ok crickets@ | ||||
* | tweak previous; ok sthen | jmc | 2014-05-01 | 1 | -3/+3 |
| | |||||
* | nibbles aren't enough random, use bytes. does a better job of picking | tedu | 2014-05-01 | 1 | -14/+14 |
| | | | | | a free chunk at random and may allow to increase delayed chunk array. ok otto | ||||
* | first cut at documenting the change to malloc doing a partial 'junk' by | sthen | 2014-04-30 | 1 | -2/+7 |
| | | | | default and the new 'j' option to disable this; ok jmc@ | ||||
* | remove Z option and default to something halfway to J. | tedu | 2014-04-23 | 1 | -32/+22 |
| | | | | | | | we always junk small chunks now, and the first part of pages, but only after free. J still does the old thing. j disables everything. Consider experimental as we evaluate performance in the real world. ok otto | ||||
* | explain a bit more what's going on for stupid me. | espie | 2014-04-23 | 1 | -1/+4 |
| | | | | okay otto@ | ||||
* | Better, cleaner hash function that computes the same on be and le archs. | otto | 2014-04-23 | 1 | -10/+8 |
| | | | | Should improve sparc64 and other be archs. ok matthew@ miod@ | ||||
* | - one more mallocarray -> reallocarray | jmc | 2014-04-22 | 1 | -3/+3 |
| | | | | - use <> | ||||
* | change mallocarray to reallocarray. useful in a few more situations. | tedu | 2014-04-22 | 3 | -17/+14 |
| | | | | | malloc can, as always, be emulated via realloc(NULL). ok deraadt | ||||
* | correct man page section | deraadt | 2014-04-21 | 1 | -2/+2 |
| | |||||
* | Introducing: void *mallocarray(size_t nmemb, size_t size); | deraadt | 2014-04-21 | 3 | -10/+36 |
| | | | | | Like calloc(), except without the cleared-memory gaurantee ok beck guenther, discussed for more than a year... | ||||
* | Correctly document the return value of getenv(3) | guenther | 2014-04-21 | 1 | -6/+8 |
| | | | | From Ben Cornett (ben (at) lantern.is) | ||||
* | print pid in error messages; ok reyk@ | otto | 2014-04-14 | 1 | -14/+18 |
| | |||||
* | Add some missing names to the NAME sections. | schwarze | 2014-04-07 | 1 | -2/+3 |
| | | | | | | For inet(3), go the other way, remove some bogus symlinks. Found while testing the new makewhatis(8). ok jmc@ | ||||
* | Update Copyright notice; ok otto@ beck@ deraadt@. | schwarze | 2014-04-03 | 1 | -2/+4 |
| | | | | | This is merely a by-product of figuring out the amount of phk@ code contained herein; i'm not planning to hack on this file. | ||||
* | Poul-Henning Kamp informed me he is allright with this licensing change. | beck | 2014-03-25 | 1 | -11/+4 |
| | |||||
* | Retire hp300, mvme68k and mvme88k ports. These ports have no users, keeping | miod | 2014-03-18 | 1 | -5/+3 |
| | | | | | | | this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish. | ||||
* | lint is dead (long live the lint!), so stop using it as a cpp conditional | guenther | 2014-03-16 | 2 | -4/+4 |
| | | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@ | ||||
* | Ouch... recommend arc4random, not random. | deraadt | 2014-01-21 | 1 | -3/+3 |
| | | | | spotted by tedu | ||||
* | obvious .Pa fixes; found with mandocdb(8) | schwarze | 2014-01-21 | 2 | -6/+6 |
| | |||||
* | Fix an obvious .Fn/.Fa typo, found while testing mandocdb(8). | schwarze | 2014-01-20 | 1 | -3/+3 |
| | |||||
* | Usually, you don't want macros in the .Nd line, so remove instances of .Tn | schwarze | 2014-01-19 | 1 | -5/+3 |
| | | | | | | marking up words that are not trademarks (ASCII, I/O, NFS, TCP, TELNET). While here, remove .Tn markup from the same words in the body of these pages, too. | ||||
* | Punctuation after macro arguments needs to be in a separate argument. | schwarze | 2014-01-19 | 1 | -3/+4 |
| | | | | Found while testing mandocdb(8). | ||||
* | Move atexit(3) into crtbegin.c and certbeginS.c such that we can pass the | kettenis | 2013-12-28 | 1 | -10/+1 |
| | | | | | | | | | | right __dso_handle and have dlopen'ed shared objects run their atexit handlers when they get unloaded. This is what Linux does, and several ports depend on this behaviour (and will crash upon exit without this chang). Based on an earlier diff from matthew@ Tested by ajacoutot@ ok deraadt@ | ||||
* | avoid arithetic on void * | deraadt | 2013-11-12 | 1 | -4/+4 |
| | | | | ok guenther otto | ||||
* | Pull in gdtoa.h instead of declaring __dtoa() and __freedtoa() directly | guenther | 2013-11-01 | 2 | -7/+4 |
| | | | | ok deraadt@ | ||||
* | no longer any need to quote macro lines with >9 args; | jmc | 2013-08-14 | 3 | -9/+9 |
| | | | | From: Jan Stary | ||||
* | Add linker warnings for rand() and random() and various related functions. | kettenis | 2013-08-01 | 2 | -1/+31 |
| | | | | ok deraadt@ | ||||
* | HISTORY; tweaks and ok sobrado@ jmc@ | schwarze | 2013-07-18 | 3 | -9/+38 |
| | |||||
* | more library history | schwarze | 2013-07-17 | 7 | -14/+49 |
| | | | | | facts checked by sobrado@ style tweaks and ok jmc@ | ||||
* | Fix parsing of ambiguous options, the whole loop must be processed. | millert | 2013-06-08 | 1 | -15/+22 |
| | | | | From FreeBSD. OK miod@ | ||||
* | Move _Exit() from the exit() manpage to the _exit() manpage, as it's | guenther | 2013-06-05 | 2 | -36/+10 |
| | | | | | | just an alias of the latter. ok matthew@ tedu@ | ||||
* | Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze | tedu | 2013-06-05 | 39 | -129/+129 |
| | |||||
* | Two small cleanups to atexit: remove unneeded __atexit_invalid, and | matthew | 2013-06-02 | 2 | -12/+5 |
| | | | | | | | move the call_depth decrement so it happens unconditionally and can still return to 0 when called with dso!=NULL. ok millert | ||||
* | surround the error strings with quotes to clarify exactly which strings | tedu | 2013-04-17 | 1 | -5/+5 |
| | | | | the function is going to return. |