Date: Mon, 25 Dec 2000 10:54:48 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Re: An implementation of /dev/zero for DJGPP In-Reply-To: <200012242003.PAA29486@envy.delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 24 Dec 2000, DJ Delorie wrote: > > This actually raises a more serious problem: how does an application > > requests that /dev/zero support to be linked in? That was not an English sentence. And I'm not even celebrating Christmas ;-) > One way is via command line: > > gcc -Wl,-u,__use_dev_zero ... > > Or, in main, > > __use_dev_zero(); Yes, something like that. It might be even better if we could have a special header, , say, which, if included in a program, would pull in the /dev/zero support automatically, by some magic. > I would think that making it the default would be wrong in general. I agree.