errno.h: ESTRPIPE
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Mar 13 10:31:00 GMT 2009
On Mar 12 17:20, Yaakov S wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Corinna Vinschen wrote:
> > What exactly is this patch fixing? Ok, we get a new error code, but
> > what for? It's not generated from within Cygwin, so...?
>
> I came across a few packages that used it. This gets us just a little
> more compatible with Linux's errno.
ESTRPIPE is returned by the Linux kernel in only one case: If you try
to read from or write to a PCM sound device which is in suspended state.
This is very Linux device specific and this never occurs on Cygwin.
What about just defining this error code to some arbitrary value like
#ifdef __CYGWIN__
#define ESTRPIPE 9999
#endif
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
More information about the Cygwin-patches
mailing list