summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix some awful code in the example, pointed out by millert@.nicm2011-07-051-3/+3
|
* from Tim van der Molen:jmc2011-07-051-5/+12
| | | | | | | | | | | - State that ftell() and ftello() return -1 on error rather than just a non-zero value. The latter is not specific enough, because these functions can also return non-zero on success. - For clarity and search-friendliness, don't refer to fgetpos() and fsetpos() as "the others", but mention them by name. ok millert otto
* Move arm to the 'MI' softfloat code instead of the arm version.drahn2011-07-0530-7173/+7
| | | | YES!! miod@
* Add stubs for signals and forks.pirofti2011-07-0521-120/+26
| | | | While at it clean-up a bit by removing unused files and adding cvs tags.
* tweak previous;jmc2011-07-041-2/+3
|
* Add ia64 libc support.pirofti2011-07-0429-0/+645
|
* Add wcsdup(), from NetBSD.nicm2011-07-044-4/+121
| | | | ok deraadt matthew
* Implement an idle timeout for the socket splicing. A new `sp_idle'mikeb2011-07-041-6/+15
| | | | | | | field of the `splice' structure can be used to specify a period of inactivity after which splicing will be dissolved. ETIMEDOUT error retrieved with a SO_ERROR indicates the idle timeout expiration. With comments from and OK bluhm.
* "it's" -> "its" in a couple of comments.krw2011-07-031-3/+3
|
* Recognize %a, %A format specifiers, per C99.martynas2011-07-032-17/+12
|
* Swap bitmask values around so that STRTOG_Neg doesn't get affectedmartynas2011-07-031-6/+6
| | | | by the inexact values.
* Properly implement the long double (%Lf) scanf without the precisionmartynas2011-07-031-8/+10
| | | | loss.
* Trick lint into recording the right prototypes in the llib-lc.lnmartynas2011-07-028-31/+58
| | | | database on the vax, similarly like has been done in gen.
* Rebase on gdtoa-20110428; contains fixes for absurdly long inputsmartynas2011-07-0214-612/+696
| | | | | | | | | (among other things). Fixes mozilla crasher for the link i was provided with. With the massive local changes to teach that malloc can fail, fixes for the vax, strlcpy, moving things to library namespaces. Tested on all architectures.
* Enable the knob to dynamically allocate (large) state structures.millert2011-07-011-1/+2
|
* document HW_ALLOWPOWERDOWN; reminded by and ok jmc@naddy2011-06-271-2/+11
|
* as man page states, lower case undoes upper case. add support for little s,tedu2011-06-201-1/+5
| | | | | no security, for consistency. use of this option is discouraged. :) ok deraadt guenther millert
* - The 0x1p514 was wrong on VAX, but remove FP_SUBNORMAL, FP_INFINITE,martynas2011-06-082-20/+6
| | | | | | | | and FP_NAN cases altogether, since they are not supported, and fpclassify() will never return that. (Leftovers when this was cloned.) - Kill unused INFSTR, NANSTR, LDBL_ADJ. - Teach hdtoa() that rv_alloc can fail. - Move STRTOG_NoMemory above STRTOG_Infinite (fallthru).
* +.Xr hcreate 3 ,jmc2011-06-031-2/+3
| | | | | requested by Daniel Dickman ok espie
* fix wcscasecmp() parameters; <wchar.h> was correctnaddy2011-06-011-2/+2
|
* Make printf-like and scanf-like functions marked as such in llib-lc.lnmartynas2011-05-3015-15/+34
| | | | | | | and llib-lwrap.ln databases; so that the lint features doing format strings checks are enabled by default. Looks good to millert@.
* Trick lint into recording the right prototypes in the llib-lc.lnmartynas2011-05-308-49/+79
| | | | | | | database on platforms without extended-precision floating-point support. Seems like a reasonable approach to millert@.
* tweak previous (my fault);jmc2011-05-281-4/+4
|
* wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@espie2011-05-284-6/+83
|
* On PowerPC we cannot manipulate FPSCR[VX]--it's a summary of allmartynas2011-05-251-2/+6
| | | | | | | | the invalid exception bits, as described in Section 3.3.6.1.1 of PowerPC Architecture Programming Environments Manual. A proper way to cause an invalid operation exception is to set FPSCR[VXSOFT]. Similarly, we clear all the FPSCR[VX*] bits otherwise.
* save errno dance in wrterror() and malloc_dump(); prompted by and ok deraadt@otto2011-05-201-2/+6
|
* introduce symbolic constant for initial number of regionsotto2011-05-181-2/+3
|
* zap regions_bits and rework MALLOC_MAXSHIFT a bit; ok djm@otto2011-05-181-14/+8
|
* remove Xr for a page we don;t yet have; ok stspjmc2011-05-161-4/+3
|
* Avoid fp computations for stats, this make calling malloc_dump() safe in moreotto2011-05-121-10/+7
| | | | cases.
* fix comment, the bitmap is an array of u_short nowotto2011-05-121-2/+2
|
* Introduce leak detection code for MALLOC_STATSotto2011-05-121-25/+165
|
* When the max number of items for a directory has reached GLOB_LIMIT_READDIRpyr2011-05-121-2/+3
| | | | | | | | an error is returned but closedir() is not called. spotted and fix provided by Frank Denis obsd-tech@pureftpd.org ok otto@, millert@
* Add a wprintf(3) man page based on FreeBSD's page. Help and ok schwarze jmcstsp2011-05-092-2/+592
|
* Always free the multibyte->wchar conversion buffer allocated in __mbsconv().stsp2011-05-091-1/+3
| | | | ok matthew dcoppa miod
* Move MALLOC_STATS code to bottom of file, so the real stuff is more at the top.otto2011-05-081-137/+141
|
* Up until now, malloc scanned the bits of the chunk bitmap fromotto2011-05-051-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!
* forgotten in previous;jmc2011-05-021-2/+2
|
* document SO_RTABLE; with suggestions and ok jmc, claudiomikeb2011-05-021-2/+11
|
* no need to escape `|'; as discussed with schwartzejmc2011-05-022-20/+6
|
* Now that we use an array of u_short for the chunk bitmap change a fewotto2011-04-301-5/+5
| | | | 1UL to 1U.
* More efficient scanning for free chunks while not losing any randomization;otto2011-04-301-21/+25
| | | | thanks to all testers.
* Add BUGS section explaining that these functions do not cover the entirestsp2011-04-291-2/+5
| | | | Unicode character set in a UTF-8 locale and can therefore return wrong answers.
* remove dead Xrs to update.8;jmc2011-04-292-10/+7
|
* Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.stsp2011-04-289-4/+1807
| | | | "Yes, go ahead then" deraadt
* Tweak the description of the optional parts around =. Found this in myotto2011-04-271-5/+7
| | | | tree, no idea where it came from; ok millert@ jmc@
* spring cleanup:schwarze2011-04-261-17/+9
| | | | | | | * shorten and clarify some explanations * update the POSIX reference, this conforms to -2008 as well * use .In and .Rv where possible ok tedu@, feedback and ok jmc@
* Document amd64/i386 denormalization exception; after discusion w/ tedu@.martynas2011-04-251-2/+3
| | | | OK tedu@.
* Teach sysconf(_SC_GETGR_R_SIZE_MAX) the correct size of a buffer for thesthen2011-04-252-4/+5
| | | | | | reentrant getgrent functions (getgrgid_r, getgrnam_r). seems reasonable to millert@, ok deraadt@
* Update to tzcode2011g from elsie.nci.nih.gov.millert2011-04-255-69/+165
|