summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
* The header glue.h should provide just a declaration for the variablestefanf2005-05-131-1/+2
| | | | | | | | __sglue, not a definition. PR: 80378 Submitted by: John Engelhart <johne@zang.com> MFC after: 1 week
* The correct description for mode "w" isdes2005-05-041-1/+1
| | | | | | | | (((truncate to zero length) or (create)) (text file)) (for writing) and not ((truncate file to zero length) or (create text file)) (for writing) MFC after: 1 week
* Be bug-for-bug compatible with the C standard with respect todas2005-04-162-4/+16
| | | | printf("%#.0o", 0). Cite an amusing passage from a defect report.
* Remove unused variable.stefanf2005-04-081-3/+2
|
* Fix EOVERFLOW detection in vswprintf(3)fjoe2005-02-211-4/+5
| | | | | Reviewed by: tjr MFC after: 2 weeks
* Sort sections.ru2005-01-203-55/+55
|
* Scheduled mdoc(7) sweep.ru2005-01-111-1/+3
|
* Document that the length modifier l is ignored for floating pointstefanf2004-10-161-1/+3
| | | | conversion specifiers (a, A, e, E, f, F, g and G).
* Don't add integers to void pointers.stefanf2004-10-031-1/+2
|
* Don't forget to va_end() the va_list we get from va_copy().des2004-08-262-0/+2
| | | | | Submitted by: Sean McNeil <sean@mcneil.com> MFC after: 3 days
* note that it is the caller's responsibility to free any buffer passedalfred2004-08-241-0/+5
| | | | to setvbuf(3) and friends.
* Fix an off-by-one bug that caused the first character of the buffer totjr2004-08-061-2/+1
| | | | be uninitialized.
* Read directly from the stdio buffer using the new __mbsnrtowcs() interfacetjr2004-07-211-14/+38
| | | | instead of making repeated calls to __fgetwc().
* Implement the GNU extensions of mbsnrtowcs() and wcsnrtombs(). These aretjr2004-07-211-1/+2
| | | | | | | convenient when the source string isn't null-terminated. Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(), wcsrtombs()) in terms of these new functions.
* Use __wcsrtombs() and __sfvwrite() to convert and write the wide charactertjr2004-07-211-8/+25
| | | | string instead of multiple calls to __fputwc().
* Call __mbrtowc() and __wcrtomb() directly instead of taking detourstjr2004-07-203-3/+6
| | | | through mbrtowc() and wcrtomb().
* Add a cross reference to fgetwln(3).tjr2004-07-161-0/+1
|
* Add fgetwln(), a wide character version of fgetln().tjr2004-07-163-2/+192
|
* Rename slbexpand() to __slbexpand() and make it available outsidetjr2004-07-162-4/+5
| | | | of fgetln.c (non-static).
* Slightly reorganize and simplify.tjr2004-07-091-24/+11
|
* Add commentary explaining why we return EBADF upon attempts to fflush() acperciva2004-07-041-0/+12
| | | | | | read-only file. Discussed on: -current
* Eliminate double whitespace.ru2004-07-031-2/+2
|
* Mechanically kill hard sentence breaks.ru2004-07-021-4/+8
|
* Markup, grammar, and spelling fixes.ru2004-06-301-4/+3
|
* Spelling fixes.mpp2004-06-211-1/+1
|
* The third operand of the conditional operator should have type void too.stefanf2004-06-082-2/+2
| | | | Approved by: das (mentor)
* Rename cantwrite() to prepwrite(). The latter is less confusing,das2004-06-081-4/+1
| | | | | | since the macro isn't really a predicate, and it has side-effects. Also, don't set errno if prepwrite() fails, since this is done in prepwrite() now.
* Rename cantwrite() to prepwrite(). The latter is less confusing,das2004-06-084-5/+6
| | | | since the macro isn't really a predicate, and it has side-effects.
* Set errno to EBADF on attempts to write to a stream that is notdas2004-06-081-2/+5
| | | | | | | | | writable. Affected callers include fwrite(), put?(), and *printf(). The issue of whether this is the right errno for funopened streams is unresolved, but that's an obscure case, and some errno is better than no errno. Discussed with: bde, jkh
* Provide trivial macro implementations of getwc(), getwchar(), putwc() andtjr2004-05-254-0/+8
| | | | putwchar() to reduce function call overhead.
* Perform conversions straight from the stream buffer instead of scanningtjr2004-05-221-18/+19
| | | | | | | through byte by byte with mbrtowc(). In the usual case (buffer is big enough to contain the multibyte character, character does not straddle buffer boundary) this results in only one call to mbrtowc() for each wide character read.
* Associate a multibyte conversion state object with each stream. Reset ittjr2004-05-227-42/+24
| | | | | | | | | to the initial state when a stream is opened or seeked upon. Use the stream's conversion state object instead of a freshly-zeroed one in fgetwc(), fputwc() and ungetwc(). This is only a performance improvement for now, but it would also be required in order to support state-dependent encodings.
* Remove bogus FBSDID.obrien2004-05-021-3/+1
|
* Fix damaged FBSDID.obrien2004-05-021-3/+1
|
* Merge vfscanf.c, v1.37:das2004-05-021-8/+7
| | | | - s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/
* Merge vfprintf.c, v1.65:das2004-05-021-24/+17
| | | | | - s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/ - Remove HEXFLOAT
* - To make it easier to compile *printf() and *scanf() withoutdas2004-05-022-31/+21
| | | | | | | | | floating-point support, remove default definition of FLOATING_POINT from the source, and change the compile-time option to NO_FLOATING_POINT. - Remove the HEXFLOAT option. It saves an insignificant amount of space (<0.1% of the size of libc on i386) and complicates vfprintf() and checkfmt().
* Use the correct size to allocate, copy and clear argument type tablestjr2004-04-222-12/+18
| | | | | | | | | | after their change from an array of char to an array of enum. This fixes problems that occurred when using positional arguments in format strings, particularly with more than STATIC_ARG_TBL_SIZE (8) of them. PR: 65841 Submitted by: Steven Smith (mostly)
* Prepare to handle trivial state-dependent encodings. Full support fortjr2004-04-079-21/+61
| | | | | state-dependent encodings with locking shifts will come later if there is demand for it.
* Mention that funopen() uses fpos_t incorrectly in the BUGS section.tjr2004-03-201-1/+9
|
* Improve documentation for fgetpos() and fsetpos(), and discouragetjr2004-03-201-13/+21
| | | | users from assuming that fpos_t is an integral type.
* Do not redundantly set the stream orientation in getc(), putc(), andtjr2004-03-196-6/+12
| | | | related functions - __sgetc() and __sputc() will set it when necessary.
* Update list of macros defined in <stdio.h>.tjr2004-03-171-1/+17
|
* Re-add description of putc() macro (back out rev. 1.13.)tjr2004-03-171-2/+8
|
* Re-add text that says getc() is a macro (back out rev. 1.16.)tjr2004-03-171-1/+2
|
* Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(),tjr2004-03-176-34/+12
| | | | | | | ferror(), fileno() and clearerr(), using the value of __isthreaded to decide between the fast inline single-threaded code and the more general function equivalent. This gives most of the performance benefits of the old unsafe macros while preserving thread safety.
* Refer to "wide characters" instead of "wide-characters".tjr2004-03-163-15/+15
|
* Set stream orientation in ungetc() instead of __ungetc(). This avoidstjr2004-03-101-2/+1
| | | | | setting it redundantly when called from ungetwc(), vfscanf() etc., which already set the orientation.
* Remove duplicate check for EOF from ungetc(); __ungetc() already checks.tjr2004-03-101-2/+0
|
* Call __sputc() directly in fputc() instead of taking an expensivetjr2004-03-101-1/+1
| | | | detour through putc().
OpenPOWER on IntegriCloud