summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
AgeCommit message (Collapse)Author
2007-11-28%hhd was being printed as if %hd was specifiedTheo de Raadt
ok millert tedu
2007-10-21Comment fix about time consumption of _gettemp.Tobias Stoeckmann
FreeBSD did this in revision 1.20. OK deraadt@, krw@
2007-09-21Add some more truncation checks for path construction in tmpnam(3).Moritz Jodeit
ok ray@
2007-09-17Prevent out-of-bounds memory access in tempnam(3), if the environmentMoritz Jodeit
variable TMPDIR or the argument `dir' is an empty string. With and ok millert@ ray@
2007-09-07Say NUL when referring to \0Chad Loder
2007-08-08Show how to use strcspn(3) to trim newlines.Ray Lai
OK jmc and millert.
2007-06-21The `len' argument is guaranteed to be > 0 upon successful completion.Moritz Jodeit
ok jmc@ ray@ millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-12Document errno usage. From Tobias Stoeckmann.Ray Lai
Earlier diff OK jmc@, with nit by otto@.
2007-05-10grammar,Marc Espie
okay jmc@
2007-04-01clarify return values, prompted by moritz; ok moritz jmcTheo de Raadt
2007-01-30Remove and simplify an impossible case (if *p = memchr(cp, 0, prec),Ray Lai
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@.
2007-01-29add an ENVIRONMENT section for TMPDIR;Jason McIntyre
from freebsd pr# 108346, from Anton Yuzhaninov much tweaked by otto and myself;
2007-01-16Fix potential int overflow for printf(3) when passing in very largeTodd C. Miller
values for the field width. Adapted from a diff by Christian Biere.
2006-11-26try first mmap() allocation at pagesize, no need to re-mmap at every powerTheo de Raadt
of 2 from 16 to pagesize(); ok otto
2006-10-30suceed -> succeed; from chad doughertyJason McIntyre
2006-10-29make __dtoa & strtod() thread-safe useing the same method as newer gdtoaTheo de Raadt
codebase. tested mostly by ckuethe and myself. __dtoa() use now requires a call to __freedtoa()
2006-10-15mark up `>';Jason McIntyre
2006-10-14Add a CAVEAT section that describes how to properly trim a newline fromChad Loder
a string, being careful to deal with 0-length strings. Help and input from jmc, ok deraadt
2006-10-14Make fgets description much clearer with respect to its exact behavior.Chad Loder
OK and input from deraadt, jmc, millert.
2006-04-29check mmap for failure. the helper functions using it return -1, butTed Unangst
callers do not yet check since printf() for example is not documented to return an error. some formatting cleanups. mostly ok deraadt millert
2006-03-19Remove extraneous cast to malloc call in fgetln example.Ray Lai
OK otto@
2006-01-13Pull in inttypes.h, not stdint.h so we get the prototypes forTodd C. Miller
strtoimax/strtoumax.
2006-01-13Use long long and intmax_t instead of quad_t throughout. Adapted inTodd C. Miller
part from FreeBSD.
2006-01-08Fix the handling of negative hexadecimal numbers in integer formats.Todd C. Miller
From NetBSD.
2006-01-07improve the RETURN VALUES section;Jason McIntyre
for such a small diff, this one was hard work... based on a diff from ray lai; blood, sweat, and tears (and ok) kettenis
2006-01-06Adapt things to use __type_t instead of _BSD_TYPE_T_Todd C. Miller
Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
2006-01-06fix the mkstemps .Fn;Jason McIntyre
2006-01-06in code fragment:Jason McIntyre
- 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
2006-01-03Do not overlap flags; problem introduced when new escapes were added.Todd C. Miller
2005-12-28Remove useless if() introduced by accident in rev 1.3. Checking theTodd C. Miller
flag for sprintf-ness is not useful in a code path that is not called for sprintf and friends.
2005-12-19Missing piece from previous commitTodd C. Miller
2005-12-19Add %hhd to *printf and *scanf as well as %z to *scanf. This wasTodd C. Miller
sent out and approved about 6 months ago and has been rotting in my tree ever since.
2005-11-14clarify the description of append mode;Jason McIntyre
this comes originally from a mail from mpech@; ok otto@, and no one else objected;
2005-10-10fix a few warnings, keep the crypt stuff for later.Marc Espie
okay otto@
2005-10-10Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.Marc Espie
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
2005-09-23support %jd from c99, although intmax_t may not be available.Ted Unangst
ok deraadt espie kettenis
2005-08-08zap remaining rcsid.Marc Espie
Kill old files that are no longer compiled. okay theo
2005-08-02zap getdtablesize() external ref (removes a bit of compat from instbin).Marc Espie
okay millert@
2005-07-26- typos, punctuation, spacing, macro, layout, etc. fixesJared Yanovich
- avoid first person ok jmc
2005-07-26clarify description of 'c' conversion; ok millert, jmcJared Yanovich
2005-07-26no need to typecast NULL; ok millert, jmcJared Yanovich
2005-07-26remove note about long double not being supported by vax.Jared Yanovich
this should have been in CAVEATS anyway. ok millert, jmc
2005-07-26note error return of mkstemps; ok millert, jmcJared Yanovich
2005-07-26- simplify descriptions of stream positioning in various open modesJared Yanovich
- mention that append mode always forces the stream position to EOF on writes from NetBSD -r 1.9 ok millert, jmc
2005-06-17- remove .Sh LIBRARYJason McIntyre
- add $OpenBSD$ tag - a couple minor tweaks
2005-06-17next citrus step.Marc Espie
reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump
2005-06-08Fix rearranging of parameters for quad types.Marc Espie
Use stateful functions for mbtowc. Use the same loop for scanning and for rescanning the format. okay millert@
2005-05-28Use '\0' not 0 when storing as a char, part from Andrey Matveev.Todd C. Miller
2005-05-28Move the va_start()/va_end() pair such that it directly backets the callTodd C. Miller
to vfprintf() like the rest of the *printf functions. This is clearer and makes the error case in asprintf() simpler. From Andrey Matveev.