summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify the loop used for bp overflow detection to match what I'mmillert2008-10-011-8/+5
| | | | using on the list server.
* Fix for sequential retrieval failure when using large key/data pairs.millert2008-10-011-1/+16
| | | | | Closes PR 2764. Has been running on the list server for years. OK deraadt@
* Use large pic asm for access to errno (needed for pie). Originally fromkurt2008-09-291-2/+4
| | | | | drahn@ but tweaked to use same scratch reg as PIC_PROLOGUE. okay miod@ drahn@
* Add PIOD_READ_AUXV, a way to get the ELF auxilliary vector through ptrace(2).kettenis2008-09-161-2/+6
| | | | ok miod@
* add missing header needed by strlen().chl2008-09-151-1/+2
| | | | ok millert@
* - describe how printf(1) and printf(3) %e, %E, %g, %G, %a, %A behavemartynas2008-09-151-2/+38
| | | | | when the argument is infinity/not-a-number ok millert@, jmc@
* describe %a/%A. from freebsdmartynas2008-09-141-2/+58
| | | | tweaks/ok millert@, jmc@
* document strtold. ok millert@martynas2008-09-132-11/+25
|
* strtof has been introduced in c99martynas2008-09-131-4/+6
| | | | from Thomas Pfaff. ok millert@
* the last example doesn't need a ctx variable;djm2008-09-121-3/+2
| | | | from Loic Tortay via jmc@
* as we did for reboot(8), do not attempt to list architecturesjmc2008-09-121-5/+2
| | | | | which do or do not support certain options: it just goes horribly out of date;
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-07162-2732/+12385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
* Fix param list for xdrrec_eof. Found during coding some stuff that usesmarco2008-09-071-3/+3
| | | | xdr goo.
* crank for sha2 changesdjm2008-09-061-1/+1
|
* Rename SHA256/384/512 API to avoid namespace collisions withdjm2008-09-063-137/+143
| | | | | | | | | | forthcoming OpenSSL update. Function names lose their underscore (SHA256_Init => SHA256Init) and the various SHA256_CTX, SHA512_CTX are merged into a single SHA2_CTX that is used for all these hashes. ok millert@ manpage bits jmc@ "please commit" deraadt@
* remove now obsolete calloc implementation; prompted by miodotto2008-09-031-50/+0
|
* do not overflow for large prefix len (e.g. 2147483649)markus2008-09-011-3/+3
| | | | report Maksymilian Arciemowicz; ok djm, deraadt
* comment fixesmartynas2008-08-271-7/+7
|
* - add Fmartynas2008-08-262-11/+33
| | | | | | - make inf INF nan NAN comply to standards (eEfFgG) - extend man page bits ok millert@. w/ a man page tweak and ok jmc@
* don't zero-pad special values. ok millert@martynas2008-08-261-1/+3
|
* correct +name handling; schwarze@usta.dederaadt2008-08-251-6/+7
|
* Make all combinations of G, P, J and zero-fill work with as littleotto2008-08-251-5/+20
| | | | effort as possible in most cases; ok djm@
* add missing header needed by asprintf().chl2008-08-231-1/+2
| | | | ok otto@ deraadt@
* make mbstowcs(NULL, string, 0) correctly return the length of thedjm2008-08-231-2/+3
| | | | | wchar_t string needed to represent "string", which in our case is just strlen(string); feedback & "looks right" deraadt@
* unbreak MALLOC_OPTIONS=G that I broke in my last commit;djm2008-08-231-3/+3
| | | | slightly kludgey solution for until otto fixes it properly; ok otto@
* fix calloc() for MALLOC_OPTIONS=J case: SOME_JUNK was being filled intodjm2008-08-231-2/+2
| | | | | the freshly mmaped pages disrupting their pure zeroness; ok otto@ deraadt@
* unbreak wcschr(string, L'\0') which was incorrectly returning NULLdjm2008-08-231-3/+5
| | | | rather than a pointer to the terminating nul; ok deraadt@
* make sure we always map and unmap multiples of MALLOC_PAGESIZE;otto2008-08-221-5/+14
| | | | case spotted by beck, one by me; ok deraadt@ beck@
* Smarter implementation of calloc(3), which uses the fact that mmap(2)otto2008-08-222-8/+57
| | | | | returns zero filled pages; remember to replace this function as well if you provide your own malloc implementation; ok djm@ deraadt@
* mention machine/cpu.h for the CPU identifiers.brad2008-08-221-2/+4
|
* After spotting a + record, continue scanning and pick up later groupsderaadt2008-08-221-4/+10
| | | | | in the file. Problem spotted by drahn. ok millert
* Replace the old algorithm that included the process id as part of themillert2008-08-221-49/+20
| | | | temporary file name with one that only uses random data. OK deraadt@
* Remove useless code, the kernel will set errno appropriately if anmillert2008-08-211-21/+1
| | | | element in the path does not exist. OK deraadt@ pvalchev@
* Add resolv.conf(5) option to force lookups by TCP: "options tcp"djm2008-08-151-18/+20
| | | | | | | | | | | | | | Also Extend "nameserver" declaration syntax to support port numbers. To avoid ambiguity these are only parsed when the address is enclosed in square brackets, e.g. "nameserver [127.0.0.1]:5353" Together these changes make forwarding DNS over a SSH tunnel very easy, but unfortunately some programs in ports/ implement their own resolvers (e.g. firefox). These will need to be modified to support these options separately. fixes jsing@ reyk@ ok deraadt@ millert@ krw@ + "I like it" from lots
* small cleanup of error/warning stringsotto2008-08-072-7/+7
|
* improve SEE ALSO links; from Ingo Schwarzejmc2008-08-046-27/+27
| | | | ok otto millert
* clarify EMSGSIZEgilles2008-07-291-2/+9
| | | | rewording by jmc@, "lovely" deraadt@
* tweak previous;jmc2008-07-292-8/+7
|
* Split SHA1Transform() back into smaller pieces when compiling on landisk,miod2008-07-291-5/+66
| | | | | | to defeat gcc optimization bugs. Similar to what had been done on sparc64 in the past. ok millert@ deraadt@
* removemartynas2008-07-291-82/+0
|
* - man pages for fpclassify, isfinite, isinf, isnan, isnormal, signbit,martynas2008-07-293-15/+293
| | | | | | | | | | | | mostly from freebsd - also describe deprecated aliases for isinff, isnanf, finite, finitef - describe behavior on vax - add mlinks for finite, finitef, isfinite, isinf, isinff, isnan, isnanf, isnormal, signbit - add man pages for isgreater, isgreaterequal, isless, islessequal, islessgreater, isunordered; from freebsd looked over by jmc@, it's better for him to work on when they are in tree
* some SEE ALSO fixes;jmc2008-07-282-7/+7
|
* man page bits for new malloc; ok jmc@otto2008-07-281-43/+33
|
* Update to tzcode2008e from elsie.nci.nih.govmillert2008-07-281-4/+7
|
* document which functions use which YP maps; Ingo Schwarzederaadt2008-07-282-6/+27
|
* Almost complete rewrite of malloc, to have a more efficient dataotto2008-07-281-1443/+835
| | | | | | structure of tracking pages returned by mmap(). Lots of testing by lots of people, thanks to you all. ok djm@ (for a slighly earlier version) deraadt@
* fix apps that use isinff, isnanf; use ieee 754 mi code, as allmartynas2008-07-253-119/+2
| | | | other ieee fp archs do; pointed out by theo. tested by theo
* - move isinf, isnan dups to gen, since most is ieee 754martynas2008-07-2466-1177/+709
| | | | | | | | | | | | | | | | - is{inf,nan} should be macros for real-floating, so rename to __is{inf,nan}, per C99 - implement C99 __fpclassify(), __fpclassifyf(), __isfinite(), __isfinitef(), __isnormal(), __isnormalf(), __signbit(), __signbitf() - long functions added, but not yet enabled, till ieee.h is fixed - implement vax equivalents of the functions - reimplement isinff, isnanf in a better way, and move to libc - add qnan bytes for all archs - bump major man pages will follow ok millert@. arm bits looked over by drahn@ discussed w/ theo, who showed the right direction, to put these functions in libc
* Avoid an occasional double free in getpwent() which corrupted memory. Itderaadt2008-07-231-6/+2
| | | | | | happened only in the case of a + record indicating to use YP, but with ypbind not actually running. Problem found by pyr; solution found with millert ok millert pyr
* clear sign bit, instead of comparing to zero and setting x=-x.martynas2008-07-232-41/+34
| | | | | | | fixes special cases, such as neg. zero, and makes C99 conformant ok miod@, millert@ since there's nothing else in arm's fabs.c, replace 4-clause license w/ the one at /usr/share/misc/license.template