summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Crank minor because of addition of wcsto* functions.kettenis2009-01-131-1/+1
|
* Add wcstof(3) and wcstold(3).kettenis2009-01-135-120/+162
| | | | ok miod@
* Add wcstoimax(3) and wcstoumax(3).kettenis2009-01-133-3/+40
| | | | ok miod@
* The process number is longer used to replace trailing 'Xs'.tobias2009-01-101-4/+3
| | | | ok jmc, millert
* reintroduce extra malloc protections, but avoiding the use ofdjm2009-01-031-164/+229
| | | | | | PAGE_(SIZE|SHIFT|MASK) defines that evaluate to variables on the sparc architecture; ok otto@ tested on my reanimated ss20
* PAGE_SIZE is not a valid symbol to use in that way. In particular,deraadt2008-12-311-235/+164
| | | | | | | on sparc, it expands to something that just plain does not work, because the page size can be variable. Sorry we didn't spot this before. Backing it all out to allow sparc to build; please find a different way to fix it.
* Remove mprotecting of struct dir_info introduced in previous commitdjm2008-12-302-46/+4
| | | | | | | (MALLOC_OPTIONS=L). It was too slow to turn on by default, and we don't do optional security. requested by deraadt@ grumbling ok otto@
* extra paranoia for malloc(3):djm2008-12-292-165/+278
| | | | | | | | | | | | | | | | Move all runtime options into a structure that is made read-only (via mprotect) after initialisation to protect against attacks that overwrite options to turn off malloc protections (e.g. use-after-free) Allocate the main bookkeeping data (struct dir_info) using mmap(), thereby giving it an unpredictable address. Place a PROT_NONE guard page on either side to further frustrate attacks on it. Add a new 'L' option that maps struct dir_info PROT_NONE except when in the allocator code itself. Makes attacks on it basically impossible. feedback tedu deraadt otto canacar ok otto
* Fix file descriptor leak in fts_children(); okay dhill@, millert@,pedro2008-12-271-2/+4
| | | | tedu@, thib@.
* repair the ARC4 story; ok jmc djm millertderaadt2008-12-231-5/+7
|
* ddb.console does not override machdep.kbdreset, so don't say it does;jmc2008-12-231-7/+2
|
* document yp_maplist(); from Ingo Schwarzejmc2008-12-222-7/+23
| | | | ok deraadt
* The example for detecting malicious PTR records could be easily misinterpreted.jacekm2008-12-221-5/+4
| | | | Make it less ambiguous; ok gilles@ claudio@
* Add man page for wcstol and friends.kettenis2008-12-202-4/+97
| | | | ok jmc@
* Document ENOBUFS for writev(2).ray2008-12-171-2/+4
| | | | Okay claudio, deraadt.
* shave off more bytes than you expect by declaring a few const local arraysotto2008-12-151-4/+4
| | | | as static const
* __isinff and __isnanfmartynas2008-12-122-4/+4
|
* do the same as was done in mi version: do not include math.h, since isinf,martynas2008-12-122-4/+2
| | | | and isnan would expand to macros and compatibility aliases won't work
* strcpy -> strlcpy; ok mbalmer@ martynas@otto2008-12-124-8/+14
|
* - document and mlink frexpf, ldexpf, modff added 13 years agomartynas2008-12-124-15/+61
| | | | | - document frexpl, ldexpl added recently a tweak and ok jmc@
* no spaces allowed in the macro arguments. completely insanity!deraadt2008-12-102-4/+4
|
* use sys/cdefs.h; pointed out by theomartynas2008-12-1021-42/+42
|
* use sys/cdefs.hderaadt2008-12-102-4/+3
|
* these were not neededmartynas2008-12-096-12/+6
|
* ditto frexpl and ldexplmartynas2008-12-0915-16/+54
|
* alias fabsl to fabs on these archsmartynas2008-12-097-7/+23
|
* remove unusedmartynas2008-12-096-201/+0
|
* - add long double signbitmartynas2008-12-0959-73/+431
| | | | | | | | | | | | | - make long double versions weak aliases to double versions, on archs where long doubles are 64 bits - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - bump major ok millert@
* bugfix update to gdtoa 2008-10-10. ok millert@, tested by manymartynas2008-12-0923-152/+500
|
* Commit requested by marco:otto2008-12-093-26/+206
| | | | | Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon.
* fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soonotto2008-12-092-7/+7
|
* Document that ethers_aton returns NULL for invalid addresses.weerd2008-12-071-2/+4
| | | | Suggested by and ok claudio@, ok jmc@
* Add unix(4) to SEE ALSO.mk2008-11-261-3/+4
| | | | ok deraadt
* Fix typo, okay jmc@.pedro2008-11-261-3/+3
|
* Correctly jump over routing headers and calculate the size of the if_dataclaudio2008-11-241-7/+14
| | | | | | struct in the if_msghdr instead of using sizeof() blindly. This allows us to grow if_data without causing issues for the getifaddrs() users. OK deraadt@ (who needs this for some cool upcomming stuff)
* - make the .Nd of link(2) and symlink(2) a bit more consistentjasper2008-11-211-3/+3
| | | | | | (train trips are soo boring...) ok jmc@
* move allocations between half a page and a page as close to the end ofotto2008-11-202-4/+5
| | | | | the page as possible (i.e. make malloc option P a default). ok art@ millert@ krw@
* Reduce the leeway malloc allows when moving allocations to the end ofotto2008-11-201-2/+2
| | | | | a page to 0. P default will be changed in a separate commit. ok millert@ art@ krw@
* To allow for easier playing with more strict settings introduceotto2008-11-131-5/+14
| | | | | a separate symbolic constant for the leeway we allow when moving allocations towards the end of a page. No functional change.
* avoid a few strlen calls for constant strings; prompted by tg; ok djm@otto2008-11-121-10/+10
|
* tweak previous;jmc2008-11-091-9/+14
|
* Document the ddb.trigger sysctl.ckuethe2008-11-081-2/+17
| | | | feedback and ok mpf@, deraadt@
* if the freeprot flag (F) is set, do not do delayed frees for chunksotto2008-11-061-6/+10
| | | | | | (might catch errors closer to the trouble spot) and junk fill pages just before reuse instead of immediate (we can't access the page anyway) since we set PROT_NONE in the F case. ok djm@
* fix markup of example line and description of G flag; partly from andotto2008-11-021-5/+4
| | | | ok jmc@
* remove distinction between warnings and errors, ok deraadt@ djm@otto2008-11-022-73/+38
|
* Pass a pointer to warn2 so the warn2 == IN_ALL would not be anmillert2008-10-311-2/+2
| | | | always-false condition. From FreeBSD (delphij).
* if MALLOC_STATS is defined, record how many "cheap reallocs" wereotto2008-10-291-1/+8
| | | | tried and how many actually succeeded.
* some SEE ALSO additions from Ingo Schwarze;jmc2008-10-248-16/+24
|
* Reword description of tm_zone and tm_gmtoff fieldsguenther2008-10-231-6/+10
| | | | Prompted by millert@; ok millert@ jmc@
* man page for Makefile.yp, and associated bits; from Ingo Schwarzejmc2008-10-221-3/+27
| | | | ok deraadt