delorie.com/archives/browse.cgi | search |
Date: | Thu, 6 Jan 2000 19:20:20 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: protoize for djgpp |
In-Reply-To: | <Pine.HPP.3.96.1000106110612.26216W-100000@hp2.xraylith.wisc.edu> |
Message-ID: | <Pine.SUN.3.91.1000106191912.23317C-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | dj-admin AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Thu, 6 Jan 2000, Mumit Khan wrote: > > Yes. However, if FD can ever be stdin or stdout connected to the > > console device, please use this: > > > > #ifdef O_BINARY > > if (!isatty(fd))setmode (fd, O_BINARY); > > #endif > > protoize reads files, so not an issue in this case. Can't it read stdin when there are no arguments, or if the argument is "-"? If not, then this is indeed a non-issue in this case.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |