summaryrefslogtreecommitdiff
path: root/lib/libc/stdio
AgeCommit message (Collapse)Author
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.
2005-05-27mktemp(3) et al. go in stdlib.h, not unistd.h. While there be moreTodd C. Miller
explicit about mktemp(3) in the man page.
2005-05-11let vfscanf be a real function. Use a weak_alias on systems where thisMarc Espie
is feasible. Okay millert@ There's a major libc bump coming that is going to cover this as well...
2005-04-30Change internals of FILE: reuse the unget buffer field to access anMarc Espie
extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@... This is the least disruptive way to extend FILE, since its size can't really change without this being a flag day. So the size doesn't change. Actual additions to the structure will come in separate steps, since this change is nasty enough on its own. Tests by otto@ and others, careful reading of code by otto@ and millert@. This is definitely a major bump, and has been checked to not impact a full ports build.
2005-04-14move return values to a seperate section, and split them out so that itTheo de Raadt
is more clear which variants return which values; ok jmc otto
2005-04-14Explain what happens when len equals 0 for snprintf().Otto Moerbeek
ok jmc@ millert@
2005-03-31make sure the implementation matches the prototype..Patrick Latifi
char const * -> const char * ok otto@ deraadt@
2005-03-30ansiPatrick Latifi
ok otto moritz deraadt
2005-03-30ansi + de-registerPatrick Latifi
ok otto deraadt
2005-03-24Document that perror() treats an empty string like NULL.Todd C. Miller
2005-03-08fix typo in comment.Moritz Jodeit
2005-02-25Be correct in our man pages when talking about NUL termination (that is,Chad Loder
termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
2004-09-28deregister + ansify, no change in object code. ok deraadt@ millert@Otto Moerbeek
2004-09-25typo fix, from the original diff in PR 3932Brad Smith
2004-09-25oopsTheo de Raadt