Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | move page junking tp unmap(), right before we stick the region in the cache; | otto | 2016-09-18 | 1 | -6/+6 | |
| | | | | ok tedu@ | |||||
* | fix Dt; | jmc | 2016-09-04 | 1 | -2/+2 | |
| | ||||||
* | Set errno more consistently, and fix a warning, ok tedu | nicm | 2016-09-04 | 1 | -21/+29 | |
| | ||||||
* | rm | tedu | 2016-09-04 | 1 | -68/+0 | |
| | ||||||
* | oops, name file after main function | tedu | 2016-09-04 | 1 | -0/+68 | |
| | ||||||
* | it doesn't say anything yet, but start adding a man page | tedu | 2016-09-04 | 1 | -0/+68 | |
| | ||||||
* | Make the key sizes and offsets arrays const, ok tedu | nicm | 2016-09-04 | 1 | -2/+2 | |
| | ||||||
* | Less lock contention by using more pools for mult-threaded programs. | otto | 2016-09-01 | 1 | -85/+178 | |
| | | | | tested by many (thanks!) ok tedu, guenther@ | |||||
* | black magic for sparc page size can go | tedu | 2016-09-01 | 1 | -4/+2 | |
| | ||||||
* | Don't call lstat() before readlink() just to see if it's a symlink, | guenther | 2016-08-28 | 1 | -14/+17 | |
| | | | | | | as readlink() will tell you that more cheaply. ok millert@ | |||||
* | wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@ | otto | 2016-08-17 | 1 | -61/+22 | |
| | ||||||
* | add a bit of spacing to previous, to keep the notes about deprecated | jmc | 2016-08-15 | 2 | -4/+6 | |
| | | | | | | functions out the way of the main body; ok guenther | |||||
* | Reduce qabs() and qdiv() to aliases of llabs() and lldiv(). | guenther | 2016-08-14 | 12 | -228/+36 | |
| | | | | | | Merge the manual pages and call them deprecated there. ok and manpage tweak jmc@, ok natano@ | |||||
* | J/j is a three valued option, document and fix code to actuall support that | otto | 2016-07-06 | 1 | -3/+5 | |
| | | | | | with a little help from jmc@ for the man page bits ok jca@ and a reluctant tedu@ | |||||
* | adapt S option: add C, rm F (not relevant with 0 cache and disables | otto | 2016-06-30 | 1 | -3/+3 | |
| | | | | chunk rnd), rm P: is default | |||||
* | Back out previous; otto saw a potential race that could lead to a | tb | 2016-06-28 | 1 | -32/+23 | |
| | | | | | | double unmap and I experienced a much more unstable firefox. discussed with otto on icb | |||||
* | defer munmap to after unlocking malloc. this can (unfortunately) be an | tedu | 2016-06-27 | 1 | -23/+32 | |
| | | | | | | | expensive syscall, and we don't want to tie up other threads. there's no need to hold the lock, so defer it to afterwards. from Michael McConville ok deraadt | |||||
* | Fix typo; the period should be outside the parens. From Michael McConville | millert | 2016-06-02 | 1 | -3/+3 | |
| | ||||||
* | The icdb magic number doesn't need to be visible to static links | guenther | 2016-05-30 | 1 | -2/+2 | |
| | | | | ok tedu@ | |||||
* | Remove dead support for changing BDB hash algorithm and cache of alternatives | guenther | 2016-05-29 | 1 | -5/+4 | |
| | | | | ok natano@ millert@ deraadt@ | |||||
* | Remove a vax remnant (that was really a no-op anyway). | millert | 2016-05-02 | 1 | -3/+1 | |
| | ||||||
* | Allow setenv(3) and putenv(3) to operate on a NULL environ pointer. | millert | 2016-04-25 | 1 | -11/+15 | |
| | | | | | | The getenv(3) and unsetenv(3) functions already support this. This will make it easier to emulate the glibc clearenv() function in ports. Based on a diff from and OK jca@ | |||||
* | two times a define to an inline function, from Michael McConville; ok djm@ | otto | 2016-04-12 | 1 | -10/+19 | |
| | ||||||
* | tweak MALLOC_STATS printing (switched off by default), prodded by | otto | 2016-04-09 | 1 | -14/+14 | |
| | | | | Michael McConville | |||||
* | redundant memset(3), from Michael McConville, ok armani@ | otto | 2016-04-09 | 1 | -2/+1 | |
| | ||||||
* | Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specific | guenther | 2016-04-05 | 1 | -4/+4 | |
| | | | | | | data isn't necessary. ok mpi@, ok&tweak natano@ | |||||
* | Document ``use after free'' error message | otto | 2016-04-03 | 1 | -2/+4 | |
| | ||||||
* | for some time now mandoc has not required MLINKS to function | jmc | 2016-03-30 | 1 | -29/+1 | |
| | | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | |||||
* | properly guard to macros | mmcc | 2016-03-17 | 1 | -5/+5 | |
| | | | | ok otto@ | |||||
* | small step towards multiple pools: move two globls into the struct dir_info | otto | 2016-03-14 | 1 | -112/+126 | |
| | | | | ok @stefan armani@ | |||||
* | environ and __progname are not declared in a public header; declare them | guenther | 2016-03-13 | 4 | -10/+4 | |
| | | | | | | in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@ | |||||
* | Remove sentences in RETURN VALUES sections saying that functions with | mmcc | 2016-03-12 | 4 | -25/+8 | |
| | | | | | | | | | | | | | void return types 'return no value'. This is obvious and therefore unneccessary to mention. We spare rewind(3)'s sentence because espie@ pointed out that it's a warning - the function masks a potential error. This commit also adds a sentence to X509_free clarifying that it's NULL-safe. This bit was discussed with doug@. ok martijn@, sentiment supported by schwarze@ | |||||
* | refactor option letter parsing into a subfunction, to increase clarity | deraadt | 2016-02-25 | 1 | -93/+102 | |
| | | | | | about which options are turned on/off by 's' and 'S' ok tedu | |||||
* | compare pointer to NULL in example code | mmcc | 2016-02-07 | 1 | -3/+3 | |
| | ||||||
* | be more forceful about not using these. | espie | 2016-02-05 | 1 | -2/+9 | |
| | | | | improvements sthen@, jmc@. okay millert@, jca@ jmc@ | |||||
* | Fix err(3) calls after allocation failures in examples. | schwarze | 2016-02-05 | 1 | -8/+8 | |
| | | | | | | There is long-standing consensus that err(1, NULL) is the best idiom after failure of malloc(3) and friends. Quirk in the manual noticed by tb@. | |||||
* | Don't crash dumping malloc stats if malloc_init hasn't been called, noted by | otto | 2016-01-26 | 1 | -1/+3 | |
| | | | | David CARLIER | |||||
* | Long ago, malloc internally had two kinds of failures, warnings and errors. | tedu | 2016-01-06 | 2 | -14/+7 | |
| | | | | | | | | The 'A' option elevated warnings to errors, and has been the default for some time. Then warnings were effectively eliminated in favor of everything being an error, but then the 'a' flag turned real errors into warnings! Remove the 'a' option entirely. You shouldn't have used it anyway. ok tb tdeval | |||||
* | Follow style(9) and drop lint /* NOTREACHED */ annotations from | tb | 2016-01-04 | 2 | -6/+4 | |
| | | | | | | | | the examples. Diff from Juuso Lapinlampi < wub () partyvan ! eu >, thanks! ok schwarze@ | |||||
* | another case where bad things would happen after wrterror | tedu | 2015-12-30 | 1 | -2/+4 | |
| | ||||||
* | if somebody makes the mistake of disabling abort, don't deref null in | tedu | 2015-12-30 | 1 | -2/+4 | |
| | | | | validate_junk. from Michal Mazurek | |||||
* | Remove NULL-checks before free() and a few related dead assignments. | mmcc | 2015-12-28 | 1 | -5/+3 | |
| | | | | ok and valuable input from millert@ | |||||
* | remove unused variable | chl | 2015-12-27 | 1 | -2/+1 | |
| | | | | ok tedu@ | |||||
* | Simplify return call of rand() and rand_r() to make it easier to read. | tb | 2015-12-18 | 1 | -2/+2 | |
| | | | | | | | | | This is slightly less robust, but RAND_MAX must be one below a power of two in both variants anyway. Based on a suggestion by Matthew Martin. ok tedu@ | |||||
* | tiny sanity check on file size | tedu | 2015-12-10 | 1 | -1/+3 | |
| | ||||||
* | Integrate two patches originally from Daniel Micay. | tedu | 2015-12-09 | 1 | -8/+76 | |
| | | | | | | | | | | | | 1. Optionally add random "canaries" to the end of an allocation. This requires increasing the internal size of the allocation slightly, which probably results in a large effective increase with current power of two sizing. Therefore, this option is only enabled via 'C'. 2. When writing junk (0xdf) to freed chunks (current default behavior), check that the junk is still intact when finally freeing the delayed chunk to catch some potential use after free. This should be pretty cheap so there's no option to control it separately. ok deraadt tb | |||||
* | change Xrs from now-defunct db(3) to dbopen(3); this wasn;t a | jmc | 2015-11-30 | 2 | -6/+6 | |
| | | | | | | | straight replace: thanks both to schwarze and maja for feedback on how to rewrite parts; i've snuck in an rcs id->openbsd id change in dev_mkdb too; | |||||
* | Wrap <icdb.h> so that calls go direct and the symbols are all weak | guenther | 2015-11-25 | 1 | -1/+12 | |
| | | | | ok tedu@ | |||||
* | Don't fake a bulleted list by prefixing items with 'o'. | bentley | 2015-11-24 | 1 | -8/+8 | |
| | | | | ok jmc@ | |||||
* | add a version field to prevent mayhem if different data gets stored | tedu | 2015-11-18 | 1 | -3/+7 | |
| |