Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | %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 | ||
| | ||||||
* | Add %hhd to *printf and *scanf as well as %z to *scanf. This was | 2005-12-19 | 2 | -12/+39 | ||
| | | | | | sent out and approved about 6 months ago and has been rotting in my tree ever since. | |||||
* | clarify the description of append mode; | 2005-11-14 | 1 | -2/+7 | ||
| | | | | | this comes originally from a mail from mpech@; ok otto@, and no one else objected; | |||||
* | fix a few warnings, keep the crypt stuff for later. | 2005-10-10 | 2 | -3/+4 | ||
| | | | | okay otto@ | |||||
* | Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95. | 2005-10-10 | 7 | -7/+14 | ||
| | | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks. | |||||
* | support %jd from c99, although intmax_t may not be available. | 2005-09-23 | 2 | -2/+20 | ||
| | | | | ok deraadt espie kettenis | |||||
* | zap remaining rcsid. | 2005-08-08 | 69 | -285/+69 | ||
| | | | | | | Kill old files that are no longer compiled. okay theo | |||||
* | zap getdtablesize() external ref (removes a bit of compat from instbin). | 2005-08-02 | 1 | -1/+3 | ||
| | | | | okay millert@ | |||||
* | - typos, punctuation, spacing, macro, layout, etc. fixes | 2005-07-26 | 13 | -64/+81 | ||
| | | | | | | - avoid first person ok jmc | |||||
* | clarify description of 'c' conversion; ok millert, jmc | 2005-07-26 | 1 | -4/+3 | ||
| | ||||||
* | no need to typecast NULL; ok millert, jmc | 2005-07-26 | 1 | -4/+4 | ||
| | ||||||
* | remove note about long double not being supported by vax. | 2005-07-26 | 1 | -5/+2 | ||
| | | | | | | this should have been in CAVEATS anyway. ok millert, jmc | |||||
* | note error return of mkstemps; ok millert, jmc | 2005-07-26 | 1 | -3/+5 | ||
| | ||||||
* | - simplify descriptions of stream positioning in various open modes | 2005-07-26 | 1 | -8/+15 | ||
| | | | | | | | | | - mention that append mode always forces the stream position to EOF on writes from NetBSD -r 1.9 ok millert, jmc | |||||
* | - remove .Sh LIBRARY | 2005-06-17 | 6 | -17/+17 | ||
| | | | | | - add $OpenBSD$ tag - a couple minor tweaks | |||||
* | next citrus step. | 2005-06-17 | 34 | -26/+1389 | ||
| | | | | | reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump | |||||
* | Fix rearranging of parameters for quad types. | 2005-06-08 | 1 | -11/+24 | ||
| | | | | | | | Use stateful functions for mbtowc. Use the same loop for scanning and for rescanning the format. okay millert@ | |||||
* | Use '\0' not 0 when storing as a char, part from Andrey Matveev. | 2005-05-28 | 5 | -14/+14 | ||
| | ||||||
* | Move the va_start()/va_end() pair such that it directly backets the call | 2005-05-28 | 2 | -8/+7 | ||
| | | | | | to vfprintf() like the rest of the *printf functions. This is clearer and makes the error case in asprintf() simpler. From Andrey Matveev. |