Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use decimal point from locale. ok millert@ | 2008-10-21 | 1 | -3/+3 | |
| | |||||
* | add missing header needed by strlen(). | 2008-09-15 | 1 | -1/+2 | |
| | | | | ok millert@ | ||||
* | - describe how printf(1) and printf(3) %e, %E, %g, %G, %a, %A behave | 2008-09-15 | 1 | -2/+38 | |
| | | | | | when the argument is infinity/not-a-number ok millert@, jmc@ | ||||
* | describe %a/%A. from freebsd | 2008-09-14 | 1 | -2/+58 | |
| | | | | tweaks/ok millert@, jmc@ | ||||
* | - replace dtoa w/ David's gdtoa, version 2008-03-15 | 2008-09-07 | 2 | -162/+212 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 | ||||
* | comment fixes | 2008-08-27 | 1 | -7/+7 | |
| | |||||
* | - add F | 2008-08-26 | 2 | -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@ | 2008-08-26 | 1 | -1/+3 | |
| | |||||
* | Replace the old algorithm that included the process id as part of the | 2008-08-22 | 1 | -49/+20 | |
| | | | | temporary file name with one that only uses random data. OK deraadt@ | ||||
* | Remove useless code, the kernel will set errno appropriately if an | 2008-08-21 | 1 | -21/+1 | |
| | | | | element in the path does not exist. OK deraadt@ pvalchev@ | ||||
* | use arc4random_uniform(); ok djm millert | 2008-07-22 | 1 | -2/+2 | |
| | |||||
* | - handle sign of negative zero. use sign dtoa sets | 2008-07-10 | 1 | -11/+6 | |
| | | | | | | - remove 'value < 0' cruft, dtoa already clears sign bit for us discussed with, and tested by phessler@ ok millert@, who noticed to remove now-unused variable, and phessler@ | ||||
* | Fix ssize_t vs. size_t mismatch | 2008-05-16 | 1 | -2/+2 | |
| | |||||
* | C99 says that for each va_copy() there must be a matching va_end(). | 2008-05-16 | 1 | -30/+59 | |
| | | | | | Replace the non-portable hackery in __find_arguments() with a union. From FreeBSD. | ||||
* | Don't forget to va_end() the va_list we get from va_copy(). From FreeBSD. | 2008-05-13 | 1 | -1/+2 | |
| | |||||
* | add missing header for getpagesize | 2008-05-05 | 1 | -1/+2 | |
| | | | | ok espie@ | ||||
* | add missing header for close | 2008-05-03 | 1 | -1/+2 | |
| | | | | ok otto@ espie@ millert@ | ||||
* | _file is only a short, so prevent truncation if we happen to hit | 2008-04-21 | 3 | -3/+28 | |
| | | | | | upon a fd > SHRT_MAX. From freebsd via Jan Schaumann; ok deraadt@ millert@ espie@ | ||||
* | %hhd was being printed as if %hd was specified | 2007-11-28 | 1 | -11/+16 | |
| | | | | ok millert tedu | ||||
* | Comment fix about time consumption of _gettemp. | 2007-10-21 | 1 | -5/+2 | |
| | | | | | | FreeBSD did this in revision 1.20. OK deraadt@, krw@ | ||||
* | Add some more truncation checks for path construction in tmpnam(3). | 2007-09-21 | 1 | -8/+24 | |
| | | | | ok ray@ | ||||
* | Prevent out-of-bounds memory access in tempnam(3), if the environment | 2007-09-17 | 1 | -3/+4 | |
| | | | | | | variable TMPDIR or the argument `dir' is an empty string. With and ok millert@ ray@ | ||||
* | Say NUL when referring to \0 | 2007-09-07 | 1 | -3/+3 | |
| | |||||
* | Show how to use strcspn(3) to trim newlines. | 2007-08-08 | 1 | -7/+5 | |
| | | | | OK jmc and millert. | ||||
* | The `len' argument is guaranteed to be > 0 upon successful completion. | 2007-06-21 | 1 | -3/+3 | |
| | | | | ok jmc@ ray@ millert@ | ||||
* | convert to new .Dd format; | 2007-05-31 | 27 | -54/+54 | |
| | |||||
* | Document errno usage. From Tobias Stoeckmann. | 2007-05-12 | 1 | -2/+16 | |
| | | | | Earlier diff OK jmc@, with nit by otto@. | ||||
* | grammar, | 2007-05-10 | 1 | -2/+2 | |
| | | | | okay jmc@ | ||||
* | clarify return values, prompted by moritz; ok moritz jmc | 2007-04-01 | 1 | -4/+8 | |
| | |||||
* | Remove and simplify an impossible case (if *p = memchr(cp, 0, prec), | 2007-01-30 | 1 | -9/+7 | |
| | | | | | | | | | | | p - cp cannot be greater than prec). Prevent an integer overflow when printing a string with length greater than INT_MAX. Initial diff from millert@. OK millert@, beck@, and otto@. | ||||
* | add an ENVIRONMENT section for TMPDIR; | 2007-01-29 | 1 | -1/+15 | |
| | | | | | | from freebsd pr# 108346, from Anton Yuzhaninov much tweaked by otto and myself; | ||||
* | Fix potential int overflow for printf(3) when passing in very large | 2007-01-16 | 1 | -13/+50 | |
| | | | | values for the field width. Adapted from a diff by Christian Biere. | ||||
* | try first mmap() allocation at pagesize, no need to re-mmap at every power | 2006-11-26 | 1 | -1/+4 | |
| | | | | of 2 from 16 to pagesize(); ok otto | ||||
* | suceed -> succeed; from chad dougherty | 2006-10-30 | 1 | -2/+2 | |
| | |||||
* | make __dtoa & strtod() thread-safe useing the same method as newer gdtoa | 2006-10-29 | 1 | -4/+11 | |
| | | | | | codebase. tested mostly by ckuethe and myself. __dtoa() use now requires a call to __freedtoa() | ||||
* | mark up `>'; | 2006-10-15 | 1 | -3/+3 | |
| | |||||
* | Add a CAVEAT section that describes how to properly trim a newline from | 2006-10-14 | 1 | -10/+41 | |
| | | | | | a string, being careful to deal with 0-length strings. Help and input from jmc, ok deraadt | ||||
* | Make fgets description much clearer with respect to its exact behavior. | 2006-10-14 | 1 | -7/+9 | |
| | | | | OK and input from deraadt, jmc, millert. | ||||
* | check mmap for failure. the helper functions using it return -1, but | 2006-04-29 | 1 | -36/+43 | |
| | | | | | | | callers do not yet check since printf() for example is not documented to return an error. some formatting cleanups. mostly ok deraadt millert | ||||
* | Remove extraneous cast to malloc call in fgetln example. | 2006-03-19 | 1 | -2/+2 | |
| | | | | OK otto@ | ||||
* | Pull in inttypes.h, not stdint.h so we get the prototypes for | 2006-01-13 | 1 | -4/+4 | |
| | | | | strtoimax/strtoumax. | ||||
* | Use long long and intmax_t instead of quad_t throughout. Adapted in | 2006-01-13 | 4 | -269/+268 | |
| | | | | part from FreeBSD. | ||||
* | Fix the handling of negative hexadecimal numbers in integer formats. | 2006-01-08 | 1 | -10/+16 | |
| | | | | From NetBSD. | ||||
* | improve the RETURN VALUES section; | 2006-01-07 | 1 | -8/+12 | |
| | | | | | | | for such a small diff, this one was hard work... based on a diff from ray lai; blood, sweat, and tears (and ok) kettenis | ||||
* | Adapt things to use __type_t instead of _BSD_TYPE_T_ | 2006-01-06 | 8 | -16/+16 | |
| | | | | | Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable | ||||
* | fix the mkstemps .Fn; | 2006-01-06 | 1 | -2/+2 | |
| | |||||
* | in code fragment: | 2006-01-06 | 1 | -14/+14 | |
| | | | | | | | | | | | - allocate enough space for sfn. - remove variable initializations that get overwritten anyway. - change spaces to tabs. - change "sizeof sfn" to "sizeof(sfn)". - change fprintf(stderr) to warn(). from ray lai; ok millert | ||||
* | Do not overlap flags; problem introduced when new escapes were added. | 2006-01-03 | 1 | -7/+7 | |
| | |||||
* | Remove useless if() introduced by accident in rev 1.3. Checking the | 2005-12-28 | 1 | -5/+3 | |
| | | | | | flag for sprintf-ness is not useful in a code path that is not called for sprintf and friends. | ||||
* | Missing piece from previous commit | 2005-12-19 | 1 | -1/+2 | |
| |