Mail Archives: djgpp-workers/2001/03/18/04:39:08
On Sun, 18 Mar 2001, Mark E. wrote:
> + /* Quit when not working with a file. */
> + fd_info = _get_dev_info(fd);
> + if ((fd_info == -1)
> + || (fd_info & (_DEV_STDIN | _DEV_STDOUT | _DEV_NUL | _DEV_CDEV))
> + return 0;
Hmm... this made me think. Perhaps _DEV_CDEV is too broad: we don't
really know anything about the device driver and the underlying
hardware. As an example, I think MSCDEX, the CD-ROM redirector, was
pretending to be a character device. Although a CD is not relevant to
this issue, other device drivers might hide mass storage devices as
well.
Maybe a better option would be to leave _DEV_CDEV out of this, and
instead provide a means to enable and disable the zero-fill on a
by-handle basis?
- Raw text -