summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* more library historyschwarze2013-07-1710-21/+96
| | | | | facts checked by sobrado@ style tweaks and ok jmc@
* do not use Sx for sections outwith the page;jmc2013-06-291-4/+3
| | | | man4 still to go...
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-0522-69/+69
|
* add some prototypes, casts, includes, parenthesis, and whatnot totedu2013-04-174-5/+10
| | | | silence some warnings.
* Set the stream orientation in open_{,w}memstream().guenther2013-04-032-2/+4
| | | | | | Check it in the regress test ok mpi@
* When there are multiple groups of functions with their own #includesguenther2013-04-011-2/+3
| | | | | | | | listed, the #includes in each group are independent, so that users don't need to guess at possible carry-over. general idea ok otto@ millert@ actual diff ok jmc@ schwarze@
* Enable fmemopen(3) and open_{w,}memstream(3)eric2013-03-281-12/+13
| | | | commiting on behalf of mpi@
* Correct version numbermpi2013-03-282-6/+6
|
* Add an open_wmemstream(3) implementation and fix various issues formpi2013-03-273-55/+211
| | | | | | fmemopen(3) and open_memstream(3). With inputs from millert@, stsp@, guenther@, tedu@ and matthew@
* Return EINVAL if there are fewer than six template Xs in the path.guenther2013-03-122-24/+30
| | | | ok deraadt@ millert@
* tweak wording of scanf return value; prompted by Jan Stary; ok jmc@otto2013-03-051-4/+5
|
* Update STANDARDS section as appropriate for C99.brad2013-03-042-7/+9
| | | | ok guenther@
* Fix the combination of 'j' format flag and the XPG "<num>$" modifier.guenther2013-03-021-2/+11
| | | | ok deraadt@ kettenis@ millert@
* Add a bunch of missing functions.brad2013-01-311-2/+19
| | | | ok millert@
* Add support for POSIX.1-2008 functions dprintf(3) and vdprintf(3).brad2013-01-305-8/+155
| | | | | Feedback from millert@ guenther@ OK guenther@ man page bits OK jmc@
* some small cleanup;jmc2013-01-032-13/+14
|
* Add an implementation based on tedu@'s design of fmemopen(3) andmpi2013-01-014-0/+655
| | | | | | | | open_memstream(3) so they can be polished in-tree. One of the manpages comes from NetBSD with some tweaks. Prodded by espie@, krw@, guenther@
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-057-16/+7
| | | | ok guenther millert kettenis
* tweak text for consistency; from artturi almjmc2012-10-031-3/+4
|
* tmpname -> tempnam; from Artturi Almjmc2012-09-071-3/+3
|
* sync comment with reality.fgsch2012-09-011-2/+2
|
* Use nl_langinfo(RADIXCHAR) instead of localeconv()->decimal_point inmatthew2012-06-262-4/+10
| | | | | | | | | | | | | | | | printf() and avoid calling it unless needed (i.e., when we have a floating point value to print). This isn't a big concern currently due to our limited locale support and current localeconv() implementation, but it's still technically a data race and implementing POSIX 2008 per-thread locales is likely to make it worse. nl_langinfo() isn't guaranteed by POSIX to be thread-safe either, but at least our current implementation is thread-safe and it's a simpler interface to keep that way. Printing floating point values isn't async-signal-safe anyway due to gdtoa()'s use of malloc(), so that's not an issue. ok deraadt, stsp, millert
* Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),guenther2012-06-011-2/+10
| | | | | | | and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@
* Don't misleadingly suggest that fpos_t only needs to be a complex typematthew2012-05-221-4/+2
| | | | | on non-UNIX systems: it's a complex type on Linux, and to be C99 compliant we'll probably need it to be a complex type too.
* Document that ftell() may return EOVERFLOW.matthew2012-05-221-6/+31
| | | | Diff from Tim van der Molen.
* Fix ftell() to return EOVERFLOW if the file offset is greater thanmatthew2012-05-212-23/+10
| | | | | | | LONG_MAX. Also, remove an Alpha-specific optimization that only saves a couple of bytes of code size. ok millert, guenther
* document getdelim() and getline(), and a grammar fix whilst here;jmc2012-04-121-4/+6
| | | | | | from Jan Stary ok fgsch
* Implement getdelim(3) and getline(3).fgsch2012-03-214-3/+332
| | | | | | | | | Prompted in a mail to tech@ by Jan Klemkow (j-dot-klemkow-at-wemelug-dot-de) but this is based on NetBSD's implementation instead with some tweaks by me. Further improvements would happen in tree. ok millert@; discussed with many others ports cleanup by naddy@, sthen@. Antti Harri, Gonzalo L. R. and myself.
* Credit Keith Sklower and 2BSD for the first implementation of read-writeschwarze2012-01-221-2/+7
| | | | | access; information found in the 2bsd directory of the CSRG archive CDs. feedback and ok jmc@
* Add missing header needed by iswspace()chl2012-01-181-1/+2
| | | | ok stsp@
* Add support for C99 %ls, %lc, and %l[ format directives to scanf(3).stsp2012-01-183-9/+210
| | | | | | Based on code from FreeBSD. Tested by myself (full release/install cycle on i386 and sparc64) and ajacoutot. Man page help from jmc.
* Document early history of a few functions specifically mentioned in 2BSDschwarze2012-01-152-4/+41
| | | | | | manuals; however, it turned out all of these actually predate 2BSD. All information from http://minnie.tuhs.org/cgi-bin/utree.pl. ok jmc@ sobrado@
* Make __svfscanf() the unlocked, core of vfscanf() and use it inguenther2011-11-086-46/+23
| | | | | | sscanf()/vsscanf() where locking is unnecessary. ok millert@
* Sync scanf(3) to wscanf(3), and a few bits the opposite way:schwarze2011-11-022-66/+50
| | | | | .Fd -> .In, .Li -> .Vt, and remove various other gratuitous differences. feedback and ok stsp@, ok jmc@
* Add wscanf(3) and friends. Based on our scanf(3) implementation, with widestsp2011-10-1610-10/+1531
| | | | | character support changes based on code from FreeBSD. ok espie guenther; man page help from schwarze
* signedness fix; ok millertdtucker2011-10-021-2/+2
|
* some minor tweaks;jmc2011-09-031-11/+6
|
* make -column lists pretty again;jmc2011-09-033-77/+77
| | | | | | | | | | specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
* missing $ in rcs tag; from Daniel Dickmansthen2011-07-291-1/+1
|
* Add support for C99 %ls and %lc format directives, as been documented instsp2011-07-062-7/+148
| | | | | | the vfprintf(3) man page for ages. Based on code from NetBSD/FreeBSD. Prevent ramdisk growth with a maze of #ifdefs. ok robert, no objections deraadt, espie, millert
* from Tim van der Molen:jmc2011-07-051-5/+12
| | | | | | | | | | | - State that ftell() and ftello() return -1 on error rather than just a non-zero value. The latter is not specific enough, because these functions can also return non-zero on success. - For clarity and search-friendliness, don't refer to fgetpos() and fsetpos() as "the others", but mention them by name. ok millert otto
* Recognize %a, %A format specifiers, per C99.martynas2011-07-032-17/+12
|
* Properly implement the long double (%Lf) scanf without the precisionmartynas2011-07-031-8/+10
| | | | loss.
* Make printf-like and scanf-like functions marked as such in llib-lc.lnmartynas2011-05-308-8/+16
| | | | | | | and llib-lwrap.ln databases; so that the lint features doing format strings checks are enabled by default. Looks good to millert@.
* remove Xr for a page we don;t yet have; ok stspjmc2011-05-161-4/+3
|
* Add a wprintf(3) man page based on FreeBSD's page. Help and ok schwarze jmcstsp2011-05-092-2/+592
|
* Always free the multibyte->wchar conversion buffer allocated in __mbsconv().stsp2011-05-091-1/+3
| | | | ok matthew dcoppa miod
* no need to escape `|'; as discussed with schwartzejmc2011-05-021-13/+3
|
* Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.stsp2011-04-288-3/+1806
| | | | "Yes, go ahead then" deraadt
* Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.stsp2011-04-248-1806/+3
|