delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/25/03:56:54

Date: Mon, 25 Dec 2000 10:54:48 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: DJ Delorie <dj AT delorie DOT com>
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: <Pine.SUN.3.91.1001225105413.18547C-100000@is>
MIME-Version: 1.0
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

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,
<sys/devzero.h>, 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019