Mail Archives: djgpp-workers/2000/12/24/16:07:57
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 -