summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* mktemp(3) et al. go in stdlib.h, not unistd.h. While there be moremillert2005-05-271-11/+27
| | | | explicit about mktemp(3) in the man page.
* let vfscanf be a real function. Use a weak_alias on systems where thisespie2005-05-117-12/+42
| | | | | | | | is feasible. Okay millert@ There's a major libc bump coming that is going to cover this as well...
* Change internals of FILE: reuse the unget buffer field to access anespie2005-04-3014-41/+128
| | | | | | | | | | | | | | | | 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.
* move return values to a seperate section, and split them out so that itderaadt2005-04-141-37/+49
| | | | is more clear which variants return which values; ok jmc otto
* Explain what happens when len equals 0 for snprintf().otto2005-04-141-1/+9
| | | | ok jmc@ millert@
* make sure the implementation matches the prototype..pat2005-03-3112-25/+25
| | | | | | char const * -> const char * ok otto@ deraadt@
* ansipat2005-03-302-6/+4
| | | | ok otto moritz deraadt
* ansi + de-registerpat2005-03-301-2/+2
| | | | ok otto deraadt
* Document that perror() treats an empty string like NULL.millert2005-03-241-8/+6
|
* fix typo in comment.moritz2005-03-081-2/+2
|