home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0060 < prev    next >
Encoding:
Text File  |  1982-01-13  |  847 b   |  29 lines

  1. Autzoo.1271
  2. net.bugs.v7
  3. utcsrgv!utzoo!henry
  4. Wed Jan 13 16:48:29 1982
  5. stdio buffering
  6. Although setbuf(3) states that any output stream directed to a terminal
  7. is unbuffered by default, this in fact is wrong.  In fact, only stdout
  8. is checked to see whether it is going to a terminal and should therefore
  9. be unbuffered.  I checked with DMR, he says the documentation is wrong.
  10. So the last paragraph of DESCRIPTION in setbuf(3) should be changed to
  11. read something like:
  12.     A buffer is normally obtained from
  13.     .IR  malloc (3)
  14.     upon the first
  15.     .I getc
  16.     or
  17.     .IR  putc (3)
  18.     on the file,
  19.     except that the standard output stream
  20.     .I stdout
  21.     is normally not buffered when directed to a terminal,
  22.     and the standard error stream
  23.     .I stderr
  24.     is normally not buffered.
  25.  
  26. (the changes are to the last 6 lines).
  27.  
  28. Ron Gomes of Human Computing Resources found this one.
  29.