summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-3/+3
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* mdoc(7) police: punctuation.ru2002-08-091-1/+1
|
* Don't claim to fully implement C99 in the STANDARDS section and then disclaimwollman2002-07-151-2/+4
| | | | compliance in the BUGS section immediately below.
* Note that fseeko() and ftello() are standard in 1003.1-2001.wollman2002-07-151-1/+1
| | | | (Prefer the more-encompassing POSIX standard to SUSv2.)
* Fix style and wording bugs introduced in my last commit.chris2002-06-181-11/+9
| | | | Sponsored by: DARPA, NAI Labs
* o Move more information from BUGS into SECURITY CONSIDERATIONS andchris2002-06-151-50/+56
| | | | | | | | condense the redundant bits. o Provide an example for using snprintf over sprintf. This may be supplemented with an asprintf() example soon. Sponsored by: DARPA, NAI Labs
* Include information on the dangers of passing a user-supplied string aschris2002-06-131-0/+21
| | | | | | | | a format string. This will later on be changed to a reference to the FreeBSD Security Architecture after it has been committed. PR: docs/39320 Sposnored by: DARPA, NAI Labs
* Grammar fix: "contents" is plural.archie2002-05-311-2/+2
| | | | MFC after: 1 day
* mdoc(7) police: markup nits.ru2002-05-301-43/+53
|
* mdoc(7) police: fix markup for types.ru2002-05-291-4/+4
|
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-2812-141/+2
| | | | Submitted by: keramida
* Correct a check for NUL.robert2002-05-271-1/+1
| | | | Spotted by: bde
* - Move the loop conditional into the "for" header.robert2002-05-271-19/+17
| | | | | | | | - Remove redundant "? :" construct. style(9): - Place a space after return statements. - Compare pointers to NULL. - Do not use ! to compare a character to nul.
* Avoid wandering over the beginning of the actual bufferrobert2002-05-231-1/+1
| | | | | | | if the passed template string contains only 'X' characters. Submitted by: Mark Andrews <marka@isc.org> (patch modified) PR: 38402
* Clarify that the value of getc() etc. is an unsigned char convertedfanf2002-05-151-0/+4
| | | | | | | | to an int (as per the C standard) i.e. it can be passed straight to isalpha() etc. Approved by: dwmalone (mentor) MFC after: 3 days
* Implement several of the c99 updates to scanf(3):fenner2002-04-202-140/+220
| | | | | | | | | | | | | - New length modifiers: hh, j, ll, t, z. Still to do: - %C, %S, %lc, %ls (wide character support) - %a/%A (exact hex representation of floating-point numbers) Removed old compatability equivalents: - %D for %ld, %O for %lo, %X for %lx, %E and %F for %le & %lf (these were buggy anyway, since they should have represented %Le & %Lf). - %[unknown uppercase char] for %ld, %[unknown lowercase char] for %d
* scanf.3 has an obsolete ``this release''.trhodes2002-04-101-7/+0
| | | | | PR: 35610 MFC after: 2 days
* Fix the style of the SCM ID's.obrien2002-03-224-1/+3
| | | | I believe have made all of libc .h's as consistent as possible.
* Fix the style of the SCM ID's.obrien2002-03-2268-251/+137
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove multi-line __P() usage.obrien2002-03-221-5/+5
|
* Remove __P() usage.obrien2002-03-2111-39/+39
|
* Remove 'register' keyword.obrien2002-03-2123-56/+56
|
* Don't refer the reader to look for a word that doesn't exist anywheredd2002-03-101-1/+3
| | | | | | | else in the page. PR: 35623 Submitted by: Gary W. Swearingen <swear@blarg.net>
* mdoc(7) police:ru2002-01-093-3/+6
| | | | Stop abusing the .%J macro for where the .Pa macro should have been used.
* All information from the "BUGS" section not belonging in "SECURITYchris2002-01-062-48/+34
| | | | | | | CONSIDERATIONS" moved to "COMPATIBILITY". Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Add new "SECURITY CONSIDERATIONS" sections.chris2002-01-063-0/+48
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Fix some style bugsphantom2001-12-171-15/+18
| | | | Prompted by: mike
* Also fix cases when thousands separator should be put before number. Forphantom2001-12-131-2/+4
| | | | | example before for grouping sequence "\003\003" number 123456 was formated as ",123,456", now "123,456".
* Respect locale while handling of \' flag.phantom2001-12-131-22/+63
| | | | | | | | | | In original version grouping was hardcoded. It assumed that thousands separator should be inserted to separate each 3 numbers. I.e. grouping string "\003" was assumed for all cases. In correct case (per POSIX) vfprintf should respect locale defined non-monetary (LC_NUMERIC category) grouping sequence. Also simplify thousands_sep handling.
* mdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.ru2001-12-121-57/+67
|
* * localeconv() usage is not FLOATING_POINT specific anymore (due to "'" flagphantom2001-12-071-3/+3
| | | | | addition) so move locale.h inclusion out of FLOATING_POINT ifdef's. * add more comments
* Remove blank line.fenner2001-12-071-1/+0
|
* Implement several of the c99 updates to printf(3):fenner2001-11-302-211/+458
| | | | | | | | | | | | | | | | - New length modifiers: hh, j, t, z. - New flag: '. Note that %'f is not yet implemented. - Use "inf"/"nan" for efg formats, "INF"/"NAN" for EFG formats. - Implemented %q in terms of %ll; if "quad_t" is not "long long" %q will break. Still to do: - %C, %S, %lc, %ls (wide character support) - %'f (thousands in integer portion of %f) - %a/%A (exact hex representation of floating-point numbers) Garrett Wollman wrote the first version of the vfprintf.c update; Mike Barcroft wrote the first version of the printf.3 changes.
* Back out national digits support, POSIX explicetely disallows it:ache2001-11-291-53/+55
| | | | | | | | | | | The definition of character class digit requires that only ten characters -the ones defining digits- can be specified; alternate digits (for example, Hindi or Kanji) cannot be specified here. However, the encoding may vary if an implementation supports more than one encoding. The definition of character class xdigit requires that the characters included in character class digit are included here also and allows for different symbols for the hexadecimal digits 10 through 15.
* Don't ever assume that isdigit() is always subset of isxdigit()ache2001-11-281-1/+1
|
* Allow national (non-ASCII) digitsache2001-11-281-55/+53
|
* mdoc(7) police: sort xrefs.ru2001-11-201-2/+2
|
* Cross-reference the fdopen and fileno manpages.murray2001-11-142-1/+3
| | | | | PR: docs/31866 Submitted by: W. Campbell <wcampbel@botbay.net>
* In > LONG_MAX test use sseek return value and not _offset which can be notache2001-10-251-3/+4
| | | | active.
* Help to recover from bad seek (i.e. negative or too big) happens beyondache2001-10-242-5/+12
| | | | | our pre-check control. Do the same way as refill.c does when it set __SERR, i.e. clear read and ungetc buffers. Clear EOF flag too.
* Back out read buffer invalidating via __SMOD.ache2001-10-232-7/+2
| | | | | It was correct, but not needed because internal buffer cleared on each seek outside of it.
* Change comment explaining another usage of __SMODache2001-10-231-2/+2
|
* Disallow fseek() optimization in internal read buffer, if pointer is moved byache2001-10-231-0/+5
| | | | | seek. It means that beginning of read buffer becomes not the same as current file position.
* Fixed style bugs in previous commit.bde2001-10-151-15/+15
|
* Make this compile on ia64.dfr2001-10-141-25/+46
|
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-0120-23/+23
|
* 1) If __SAPP stream is not seekable, remove __SAPP flag on first call insteadache2001-09-071-3/+10
| | | | | | | | | of repeating unsuccessful lseek call on each write (original stdio bug). 2) Save errno accross _sseek call in _swrite to not touch it in case write success (original stdio bug). 3) Add _sseek error checking back, but only for __SOPT mode now.
* For now just back out seek error checking in __SAPP case, it cause problemsache2001-09-071-2/+2
| | | | | | with non-seekable streams. Now here is what here was originally, but it is ugly, producing unneded seek syscall on each non-seekable stream write. I'll think about proper solution later.
* When __SOPT is cleared, clear __SOFF too.ache2001-09-031-1/+1
| | | | NOTE: original stdio bug.
* Re-arrange my funopen(3) fix to minimize differences with original stdio code,ache2001-09-036-83/+91
| | | | | | no functional changes. Add fp->_offset optimization in _SAPP+_SOPT case
OpenPOWER on IntegriCloud