This is the mail archive of the
mailing list for the Cygwin project.
Re: XP embedded
On Wed, 12 Apr 2006, Christopher Faylor wrote:
> On Wed, Apr 12, 2006 at 07:43:33AM -0400, Jeff Lange wrote:
> >/dev/zero does work properly. I changed line 68 in /etc/profile to
> >use /dev/zero instead of /dev/null and I no longer get the bash error
> >on start up.
FWIW, /dev/zero is not always the proper substitution for /dev/null (i.e.,
on input redirection, it will work differently).
> >Perhaps the cygwin libraries should be modified so that if the windows
> >NUL device doesn't exist, it should use a different method.
> Sorry, no. We already have enough special cases in the code. We're not
> going to start adding more for XP Embedded.
What I'm wondering is whether we need the Windows NUL device at all for
implementing /dev/null... It's rather trivial[*] to implement one without
resorting to a Windows device. Would there be any way of distinguishing
an emulation from the real NUL device?
[*] The implementation would be substantially the same as that for
/dev/zero, except for removing the test for FH_FULL and always setting len
to 0 in read().
|\ _,,,---,,_ firstname.lastname@example.org | email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html