Re: errno.h: ESTRPIPE

2009-03-15 Thread Corinna Vinschen
On Mar 12 00:47, Yaakov S wrote: 2009-03-11 Yaakov Selkowitz yselkow...@users.sourceforge.net * errno.cc (_sys_errlist): Add ESTRPIPE. Applied. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT

Re: errno.h: ESTRPIPE

2009-03-14 Thread Corinna Vinschen
On Mar 13 17:47, Christopher Faylor wrote: On Fri, Mar 13, 2009 at 09:59:49PM +0100, Corinna Vinschen wrote: On Mar 13 10:50, Christopher Faylor wrote: Defining a unique value means that, if we do decide at some point to add functionality which utilizes that errno there will be no need to

Re: errno.h: ESTRPIPE

2009-03-14 Thread Christopher Faylor
On Sat, Mar 14, 2009 at 10:25:59AM +0100, Corinna Vinschen wrote: On Mar 13 17:47, Christopher Faylor wrote: On Fri, Mar 13, 2009 at 09:59:49PM +0100, Corinna Vinschen wrote: On Mar 13 10:50, Christopher Faylor wrote: Defining a unique value means that, if we do decide at some point to add

Re: errno.h: ESTRPIPE

2009-03-13 Thread Corinna Vinschen
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

Re: errno.h: ESTRPIPE

2009-03-13 Thread Warren Young
Corinna Vinschen wrote: 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 #endif I like it. If there are any other errno constants supported by Linux but not

Re: errno.h: ESTRPIPE

2009-03-13 Thread Christopher Faylor
On Fri, Mar 13, 2009 at 06:10:48AM -0600, Warren Young wrote: Corinna Vinschen wrote: 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 #endif I like it.

Re: errno.h: ESTRPIPE

2009-03-13 Thread Warren Young
Christopher Faylor wrote: Defining a unique value means that, if we do decide at some point to add functionality which utilizes that errno the will be no need to recompile the application. If you think Cygwin might at some point learn to send certain errnos, they should use low values, as the

RE: errno.h: ESTRPIPE

2009-03-13 Thread Peter Rosin
Warren Young skrev: Corinna Vinschen wrote: 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 #endif I like it. If there are any other errno

Re: errno.h: ESTRPIPE

2009-03-13 Thread Corinna Vinschen
On Mar 13 10:50, Christopher Faylor wrote: On Fri, Mar 13, 2009 at 06:10:48AM -0600, Warren Young wrote: Corinna Vinschen wrote: 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__

Re: errno.h: ESTRPIPE

2009-03-13 Thread Warren Young
Peter Rosin wrote: Consider code like this: switch (errno) { case -ESTRPIPE: capers(); break; case -EFOOBAR: cucumber(); break; } The core assumption is that neither can happen. Not now, not ever. If that's true, the worst you can say against it is that gcc

Re: errno.h: ESTRPIPE

2009-03-13 Thread Christopher Faylor
On Fri, Mar 13, 2009 at 09:59:49PM +0100, Corinna Vinschen wrote: On Mar 13 10:50, Christopher Faylor wrote: On Fri, Mar 13, 2009 at 06:10:48AM -0600, Warren Young wrote: Corinna Vinschen wrote: This is very Linux device specific and this never occurs on Cygwin. What about just defining

RE: errno.h: ESTRPIPE

2009-03-13 Thread Peter Rosin
Warren Young skrev: Peter Rosin wrote: Consider code like this: switch (errno) { case -ESTRPIPE: capers(); break; case -EFOOBAR: cucumber(); break; } The core assumption is that neither can happen. Not now, not ever. If that's true, the worst you can

Re: errno.h: ESTRPIPE

2009-03-12 Thread Corinna Vinschen
On Mar 12 00:47, Yaakov S wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Corresponding patch just sent to new...@. 2009-03-11 Yaakov Selkowitz yselkow...@users.sourceforge.net * errno.cc (_sys_errlist): Add ESTRPIPE. Same question as asked by Ralf on the newlib list.

Re: errno.h: ESTRPIPE

2009-03-12 Thread Eric Blake
2009-03-11 Yaakov Selkowitz yselkow...@users.sourceforge.net * errno.cc (_sys_errlist): Add ESTRPIPE. Same question as asked by Ralf on the newlib list. What exactly is this patch fixing? Ok, we get a new error code, but what for? It's not generated from within Cygwin, so...?

Re: errno.h: ESTRPIPE

2009-03-12 Thread Yaakov (Cygwin/X)
-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