summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* %hhd was being printed as if %hd was specifiedderaadt2007-11-281-11/+16
| | | | ok millert tedu
* Comment fix about time consumption of _gettemp.tobias2007-10-211-5/+2
| | | | | | FreeBSD did this in revision 1.20. OK deraadt@, krw@
* Add some more truncation checks for path construction in tmpnam(3).moritz2007-09-211-8/+24
| | | | ok ray@
* Prevent out-of-bounds memory access in tempnam(3), if the environmentmoritz2007-09-171-3/+4
| | | | | | variable TMPDIR or the argument `dir' is an empty string. With and ok millert@ ray@
* Say NUL when referring to \0cloder2007-09-071-3/+3
|
* Show how to use strcspn(3) to trim newlines.ray2007-08-081-7/+5
| | | | OK jmc and millert.
* The `len' argument is guaranteed to be > 0 upon successful completion.moritz2007-06-211-3/+3
| | | | ok jmc@ ray@ millert@
* convert to new .Dd format;jmc2007-05-3127-54/+54
|
* Document errno usage. From Tobias Stoeckmann.ray2007-05-121-2/+16
| | | | Earlier diff OK jmc@, with nit by otto@.
* grammar,espie2007-05-101-2/+2
| | | | okay jmc@
* clarify return values, prompted by moritz; ok moritz jmcderaadt2007-04-011-4/+8
|
* Remove and simplify an impossible case (if *p = memchr(cp, 0, prec),ray2007-01-301-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;jmc2007-01-291-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 largemillert2007-01-161-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 powerderaadt2006-11-261-1/+4
| | | | of 2 from 16 to pagesize(); ok otto
* suceed -> succeed; from chad doughertyjmc2006-10-301-2/+2
|
* make __dtoa & strtod() thread-safe useing the same method as newer gdtoaderaadt2006-10-291-4/+11
| | | | | codebase. tested mostly by ckuethe and myself. __dtoa() use now requires a call to __freedtoa()
* mark up `>';jmc2006-10-151-3/+3
|
* Add a CAVEAT section that describes how to properly trim a newline fromcloder2006-10-141-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.cloder2006-10-141-7/+9
| | | | OK and input from deraadt, jmc, millert.
* check mmap for failure. the helper functions using it return -1, buttedu2006-04-291-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.ray2006-03-191-2/+2
| | | | OK otto@
* Pull in inttypes.h, not stdint.h so we get the prototypes formillert2006-01-131-4/+4
| | | | strtoimax/strtoumax.
* Use long long and intmax_t instead of quad_t throughout. Adapted inmillert2006-01-134-269/+268
| | | | part from FreeBSD.
* Fix the handling of negative hexadecimal numbers in integer formats.millert2006-01-081-10/+16
| | | | From NetBSD.
* improve the RETURN VALUES section;jmc2006-01-071-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_millert2006-01-068-16/+16
| | | | | Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
* fix the mkstemps .Fn;jmc2006-01-061-2/+2
|
* in code fragment:jmc2006-01-061-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.millert2006-01-031-7/+7
|
* Remove useless if() introduced by accident in rev 1.3. Checking themillert2005-12-281-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 commitmillert2005-12-191-1/+2
|
* Add %hhd to *printf and *scanf as well as %z to *scanf. This wasmillert2005-12-192-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;jmc2005-11-141-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.espie2005-10-102-3/+4
| | | | okay otto@
* Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.espie2005-10-107-7/+14
| | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
* support %jd from c99, although intmax_t may not be available.tedu2005-09-232-2/+20
| | | | ok deraadt espie kettenis
* zap remaining rcsid.espie2005-08-0869-285/+69
| | | | | | Kill old files that are no longer compiled. okay theo
* zap getdtablesize() external ref (removes a bit of compat from instbin).espie2005-08-021-1/+3
| | | | okay millert@
* - typos, punctuation, spacing, macro, layout, etc. fixesjaredy2005-07-2613-64/+81
| | | | | | - avoid first person ok jmc
* clarify description of 'c' conversion; ok millert, jmcjaredy2005-07-261-4/+3
|
* no need to typecast NULL; ok millert, jmcjaredy2005-07-261-4/+4
|
* remove note about long double not being supported by vax.jaredy2005-07-261-5/+2
| | | | | | this should have been in CAVEATS anyway. ok millert, jmc
* note error return of mkstemps; ok millert, jmcjaredy2005-07-261-3/+5
|
* - simplify descriptions of stream positioning in various open modesjaredy2005-07-261-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 LIBRARYjmc2005-06-176-17/+17
| | | | | - add $OpenBSD$ tag - a couple minor tweaks
* next citrus step.espie2005-06-1734-26/+1389
| | | | | reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump
* Fix rearranging of parameters for quad types.espie2005-06-081-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.millert2005-05-285-14/+14
|
* Move the va_start()/va_end() pair such that it directly backets the callmillert2005-05-282-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.