Date: Thu, 6 Jan 2000 19:20:20 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Mumit Khan cc: djgpp AT delorie DOT com Subject: Re: protoize for djgpp In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.