Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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. | |||||
* | the tiniest of style tweaks | tedu | 2013-04-17 | 1 | -7/+7 | |
| | ||||||
* | add some prototypes, casts, includes, parenthesis, and whatnot to | tedu | 2013-04-17 | 2 | -6/+6 | |
| | | | | silence some warnings. | |||||
* | - Add comments regarding copies of these files also in libexec/ld.so | kurt | 2013-04-05 | 1 | -1/+3 | |
| | | | | okay guenther@ | |||||
* | Update a comment about standards requirements | guenther | 2013-04-03 | 1 | -4/+4 | |
| | ||||||
* | Switch libc and libm to use strong aliases rather than weak aliases | martynas | 2013-03-28 | 2 | -22/+4 | |
| | | | | | | | | | | | where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@. | |||||
* | threadsafe random(). | tedu | 2013-03-15 | 1 | -8/+43 | |
| | | | | reported by ajacoutot and (much earlier, sorry) by Alexey Suslikov | |||||
* | Don't pull <math.h> just because it can return HUGE_VAL in the | martynas | 2013-01-15 | 1 | -3/+2 | |
| | | | | corner cases. OK millert@. | |||||
* | Fix bug in random offset introduced in rev 1.143; random range was | otto | 2012-12-22 | 1 | -3/+3 | |
| | | | | expanded, but not enough due to precedence error. Spotted by Thorsten Glaser. | |||||
* | Remove excessive sys/cdefs.h inclusion | deraadt | 2012-12-05 | 1 | -2/+1 | |
| | | | | ok guenther millert kettenis | |||||
* | no need for .Pp before lists; | jmc | 2012-12-05 | 1 | -3/+2 | |
| | ||||||
* | Rewritten posix_openpt manual that doesn't include any of the POSIX | millert | 2012-12-04 | 1 | -74/+49 | |
| | | | | text. OK deraadt@ | |||||
* | Use "path name" not "pathname". | millert | 2012-12-04 | 1 | -3/+3 | |
| | ||||||
* | Simple emulation of POSIX pty APIs posix_openpt(), ptsname(), | millert | 2012-12-03 | 4 | -6/+414 | |
| | | | | | grantpt() and unlockpt() using /dev/ptm. Man pages from FreeBSD. OK kettenis@ deraadt@ beck@ ajacoutot@ naddy@ | |||||
* | Ensure that the base provided to strtol(3) is between 2 and 36 inclusive, | jsing | 2012-11-18 | 1 | -1/+12 | |
| | | | | | | or the special value of 0. ok deraadt@ otto@ | |||||
* | Per POSIX, fix raise() and abort() to send the signal to the current thread. | guenther | 2012-11-10 | 1 | -3/+5 | |
| | | | | | | Should make coredumps from abort() easier to debug too. ok kurt@ | |||||
* | Add a new malloc option 'U' => "Free unmap" that does the guarding/ | djm | 2012-11-02 | 2 | -18/+36 | |
| | | | | | | | | | | | | unmapping of freed allocations without disabling chunk randomisation like the "Freeguard" ('F') option does. Make security 'S' option use 'U' and not 'F'. Rationale: guarding with no chunk randomisation is great for debugging use-after-free, but chunk randomisation offers better defence against "heap feng shui" style attacks that depend on carefully constructing a particular heap layout so we should leave this enabled when requesting security options. | |||||
* | Make setenv(3) consistent with unsetenv(3), giving EINVAL if passed | jeremy | 2012-09-23 | 2 | -20/+10 | |
| | | | | | | an empty name, NULL pointer, or a name containing an '=' character. OK millert@, guenther@ | |||||
* | remove some wacky Xo/Xc; | jmc | 2012-09-16 | 1 | -3/+3 | |
| | ||||||
* | remove tahoe-specific makefile machinery, no such hardware is known to be | miod | 2012-09-15 | 1 | -5/+1 | |
| | | | | | in working condition anymore (assuming there would be interest in running on it). | |||||
* | Document that strtod functions accept INF, NAN, NAN(). From Michal Mazurek. | martynas | 2012-09-15 | 1 | -3/+28 | |
| | ||||||
* | specify the bounds of the dst to strlcat (both values were static and | deraadt | 2012-09-13 | 1 | -2/+2 | |
| | | | | | equal, but it is more correct) from Michal Mazurek | |||||
* | Fix precedence bug (& has lower precedence than !=). | pirofti | 2012-09-13 | 1 | -2/+2 | |
| | | | | | | Okay otto@. Found by Michal Mazurek <akfaew at jasminek dot net>, thanks! | |||||
* | remove lint leftovers; ok guenther@ | okan | 2012-09-04 | 1 | -5/+1 | |
| | ||||||
* | use PAGE_SHIFT instead of PGSHIFT, in preperation for future | deraadt | 2012-07-09 | 1 | -2/+2 | |
| | | | | | param.h symbol reduction. ok guenther | |||||
* | Zap extra spaces from function pointer arguments | guenther | 2012-07-08 | 2 | -8/+8 | |
| | | | | Pointed out by Joachim Schipper (joachim at joachimschipper.nl) | |||||
* | Describe tdelete()'s return value correctly and update the related CAVEAT | guenther | 2012-07-08 | 1 | -12/+15 | |
| | | | | | Based on a note from Steffen Daode Nurpmeso (sdaoden at googlemail.com) ok jmc@ | |||||
* | after a talk with ariane, use MAP_FIXED for mquery to avoid the cost of | tedu | 2012-06-26 | 1 | -2/+2 | |
| | | | | | | scanning for free space if the hint isn't available. also, on further inspection, this will prevent pmap_prefer from "improving" our hint. | |||||
* | two changes which should improve realloc. first, fix zapcacheregion to | tedu | 2012-06-22 | 1 | -10/+19 | |
| | | | | | | clear out the entire requested area, not just a perfect fit. second, use mquery to check for room to avoid getting an address we don't like and having to send it back. | |||||
* | two small fixes to free page cache. first, we need two nibbles of random | tedu | 2012-06-20 | 1 | -4/+4 | |
| | | | | | | in order to span the the entire cache. second, on free use the same offset to put things in the cache instead of always starting at zero. ok otto | |||||
* | Support larger-than-page-alignment requests in posix_memalign() by | matthew | 2012-06-18 | 2 | -23/+130 | |
| | | | | | | overallocating and then releasing unneeded memory pages. ok otto | |||||
* | Update STANDARDS section for a few <stdlib.h> functions | guenther | 2012-06-02 | 3 | -9/+29 | |
| | | | | | | Update SYNOPSIS for setkey() to show it's in <stdlib.h> ok jmc@, millert@ | |||||
* | Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(), | guenther | 2012-06-01 | 3 | -8/+11 | |
| | | | | | | | and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@ | |||||
* | alloca is NOT machine dependent; it has exactly the same | deraadt | 2012-04-12 | 1 | -7/+3 | |
| | | | | | effective result. its use is NOT discouraged -- it is not common, but when you need it, there is nothing else that will do. | |||||
* | 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@ | |||||
* | - 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@ | |||||
* | 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 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 | |
| |