delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/24/16:07:57

Message-ID: <003101c06ded$c2781420$9f4d57cb@spunky>
From: "JB" <jamesb AT northnet DOT com DOT au>
To: <djgpp-workers AT delorie DOT com>
References: <3A460B93 DOT 2347528B AT bigfoot DOT com> <2110-Sun24Dec2000202824+0200-eliz AT is DOT elta DOT co DOT il> <200012242003 DOT PAA29486 AT envy DOT delorie DOT com>
Subject: Re: An implementation of /dev/zero for DJGPP
Date: Mon, 25 Dec 2000 08:09:08 +1100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: djgpp-workers AT delorie DOT com

If /dev/zero can be used on Windoes, does that mean things like /dev/floppy,
/dev/cdrom, /dev/modem even, can be used also?

--
James Buchanan

----- Original Message -----
From: "DJ Delorie" <dj AT delorie DOT com>
To: <djgpp-workers AT delorie DOT com>
Sent: Monday, December 25, 2000 7:03 AM
Subject: Re: An implementation of /dev/zero for DJGPP


>
> > This actually raises a more serious problem: how does an application
> > requests that /dev/zero support to be linked in?
>
> One way is via command line:
>
> gcc -Wl,-u,__use_dev_zero ...
>
> Or, in main,
>
> __use_dev_zero();
>
> I think very few programs actually need /dev/zero; dd is the only one
> (aside from programs that mmap() it for shared memory, which we don't
> support (yet?)) that I can think of that really benefits from it.
>
> I guess it depends on how big the handler is, and if we want to carry
> that kind of load in *every* program, and how big such a load can get
> as we add more and more handlers.
>
> I would think that making it the default would be wrong in general.
>

- Raw text -


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