This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: errno.h: ESTRPIPE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]