home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4561 < prev    next >
Encoding:
Text File  |  1992-11-08  |  907 b   |  30 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!ukma!wupost!udel!rochester!rocksanne!news
  3. From: weltman@parc.xerox.com (Rob Weltman)
  4. Subject: Reinitializing standard streams
  5. Message-ID: <1992Nov6.164046.2929@spectrum.xerox.com>
  6. Keywords: streams, io
  7. Sender: news@spectrum.xerox.com
  8. Reply-To: weltman@parc.xerox.com
  9. Organization: Xerox PARC, Palo Alto, CA
  10. Date: Fri, 6 Nov 1992 16:40:46 GMT
  11. Lines: 17
  12.  
  13.  
  14.   If a program has arbitrarily reassigned stdout, stdin,
  15. and stderr (with freopen), is there a straightforward way
  16. to restore the initial conditions? Or do you have to reopen
  17. them on /dev/tty, setting stderr unbuffered? If the latter,
  18. what other information should be saved before calling freopen,
  19. to reset the initial state later on?
  20. ---
  21.  
  22.  
  23. -----------------------------------------
  24. Rob Weltman
  25. weltman@parc.xerox.com
  26. phone (415)-813-7477   fax (415)-813-6792
  27. -----------------------------------------
  28.  
  29.  
  30.