home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6530 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.0 KB  |  34 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!world!jrs
  3. From: jrs@world.std.com (Rick Sladkey)
  4. Subject: Re: Good comm program?
  5. In-Reply-To: hlu@phys1.physics.wsu.edu's message of 21 Jul 92 23:50:57 GMT
  6. Message-ID: <JRS.92Jul22203246@lepton.world.std.com>
  7. Lines: 19
  8. Sender: jrs@world.std.com (Rick Sladkey)
  9. Organization: The World
  10. References: <arumble.711622204@extro.ucc.su.OZ.AU>
  11.     <9207201343@myamig2.myamiga.mixcom.com>
  12.     <1992Jul21.235057.14132@serval.net.wsu.edu>
  13. Date: Thu, 23 Jul 1992 00:32:46 GMT
  14.  
  15. >>>>> On 21 Jul 92 23:50:57 GMT, hlu@phys1.physics.wsu.edu (Hongjiu Lu) said:
  16.  
  17. H.J.> If you use stdio, I believe everything is buffered by default.
  18.  
  19. The defaults for Unix since K&R are:
  20.  
  21. * stdin and stdout to a terminal/pty are line-buffered
  22.  
  23. * stdin and stdout to a file or pipe are block-buffered
  24.  
  25. * stderr is alway unbuffered
  26.  
  27. * a read from a terminal/pty causes a flush of any output to the same device
  28.  
  29. Earlier versions of iostream had various discrepencies with this scheme
  30. but iostream for GCC 2.2.2 now follows these conventions.
  31. --
  32. Rick Sladkey
  33. jrs@world.std.com
  34.