home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!ukma!wupost!udel!rochester!rocksanne!news
- From: weltman@parc.xerox.com (Rob Weltman)
- Subject: Reinitializing standard streams
- Message-ID: <1992Nov6.164046.2929@spectrum.xerox.com>
- Keywords: streams, io
- Sender: news@spectrum.xerox.com
- Reply-To: weltman@parc.xerox.com
- Organization: Xerox PARC, Palo Alto, CA
- Date: Fri, 6 Nov 1992 16:40:46 GMT
- Lines: 17
-
-
- If a program has arbitrarily reassigned stdout, stdin,
- and stderr (with freopen), is there a straightforward way
- to restore the initial conditions? Or do you have to reopen
- them on /dev/tty, setting stderr unbuffered? If the latter,
- what other information should be saved before calling freopen,
- to reset the initial state later on?
- ---
-
-
- -----------------------------------------
- Rob Weltman
- weltman@parc.xerox.com
- phone (415)-813-7477 fax (415)-813-6792
- -----------------------------------------
-
-
-