Mail Archives: djgpp-workers/2000/12/25/03:56:54
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 -