* RE: errno values: poll
@ 2002-01-24 23:17 Billinghurst, David (CRTS)
0 siblings, 0 replies; 11+ messages in thread
From: Billinghurst, David (CRTS) @ 2002-01-24 23:17 UTC (permalink / raw)
To: Zack Weinberg, gcc
on cygwin
#define ENOTCONN 128 /* Socket is not connected */
#define ETOOMANYREFS 129
#define EPROCLIM 130
#define EUSERS 131
#define EDQUOT 132
#define ESTALE 133
#define ENOTSUP 134 /* Not supported */
#define ENOMEDIUM 135 /* No medium (in tape drive) */
#define ENOSHARE 136 /* No such host or network path */
#define ECASECLASH 137 /* Filename exists with different case */
and irix6.5
/* operational errors */
#define ENETDOWN 127 /* Network is down */
#define ENETUNREACH 128 /* Network is unreachable */
#define ENETRESET 129 /* Network dropped connection because
of reset */
#define ECONNABORTED 130 /* Software caused connection abort */
#define ECONNRESET 131 /* Connection reset by peer */
#define ENOBUFS 132 /* No buffer space available */
#define EISCONN 133 /* Socket is already connected */
#define ENOTCONN 134 /* Socket is not connected */
/* XENIX has 135 - 142 */
#define ESHUTDOWN 143 /* Can't send after socket shutdown */
#define ETOOMANYREFS 144 /* Too many references: can't splice */
#define ETIMEDOUT 145 /* Connection timed out */
#define ECONNREFUSED 146 /* Connection refused */
#define EHOSTDOWN 147 /* Host is down */
#define EHOSTUNREACH 148 /* No route to host */
-----Original Message-----
From: Zack Weinberg [mailto:zack@codesourcery.com]
Sent: Friday, 25 January 2002 1:48
To: gcc@gcc.gnu.org
Subject: errno values: poll
Please raise your hand if you have a system which is fundamentally
Unix, and which defines E-constants in <errno.h> larger than 127.
"fundamentally Unix" here means "has a real fork() primitive, and is
not Hurd."
zw
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-27 18:07 ` Jamie Lokier
@ 2002-01-27 19:24 ` Ross Smith
0 siblings, 0 replies; 11+ messages in thread
From: Ross Smith @ 2002-01-27 19:24 UTC (permalink / raw)
To: Jamie Lokier; +Cc: gcc
Jamie Lokier wrote:
>
> Ross Smith wrote:
> > Linux uses values up to 528. (Not literally "in <errno.h>", in a nested
> > include, but I presume you intended to include that; Linux's <errno.h>
> > doesn't define any values in itself.)
>
> Really? :-) MIPS, Linux-2.4.14:
>
> #define EDQUOT 1133 /* Quota exceeded */
I surrender. Yours is bigger than mine. :-)
--
Ross Smith ...................................... Auckland, New Zealand
r-smith@ihug.co.nz ......................... http://storm.net.nz/~ross/
"We need a new cosmology. New gods. New sacraments. Another drink."
-- Patti Smith
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-25 0:45 ` Ross Smith
@ 2002-01-27 18:07 ` Jamie Lokier
2002-01-27 19:24 ` Ross Smith
0 siblings, 1 reply; 11+ messages in thread
From: Jamie Lokier @ 2002-01-27 18:07 UTC (permalink / raw)
To: Ross Smith; +Cc: Zack Weinberg, gcc
Ross Smith wrote:
> Linux uses values up to 528. (Not literally "in <errno.h>", in a nested
> include, but I presume you intended to include that; Linux's <errno.h>
> doesn't define any values in itself.)
Really? :-) MIPS, Linux-2.4.14:
#define EDQUOT 1133 /* Quota exceeded */
-- Jamie
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-24 19:40 Zack Weinberg
` (4 preceding siblings ...)
2002-01-24 23:56 ` Kim Sebo
@ 2002-01-25 0:45 ` Ross Smith
2002-01-27 18:07 ` Jamie Lokier
5 siblings, 1 reply; 11+ messages in thread
From: Ross Smith @ 2002-01-25 0:45 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gcc
Zack Weinberg wrote:
>
> Please raise your hand if you have a system which is fundamentally
> Unix, and which defines E-constants in <errno.h> larger than 127.
> "fundamentally Unix" here means "has a real fork() primitive, and is
> not Hurd."
Linux uses values up to 528. (Not literally "in <errno.h>", in a nested
include, but I presume you intended to include that; Linux's <errno.h>
doesn't define any values in itself.)
--
Ross Smith ...................................... Auckland, New Zealand
r-smith@ihug.co.nz ......................... http://storm.net.nz/~ross/
"We need a new cosmology. New gods. New sacraments. Another drink."
-- Patti Smith
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-24 19:40 Zack Weinberg
` (3 preceding siblings ...)
2002-01-24 21:24 ` Robert Lipe
@ 2002-01-24 23:56 ` Kim Sebo
2002-01-25 0:45 ` Ross Smith
5 siblings, 0 replies; 11+ messages in thread
From: Kim Sebo @ 2002-01-24 23:56 UTC (permalink / raw)
To: gcc
> Please raise your hand if you have a system which is fundamentally
> Unix, and which defines E-constants in <errno.h> larger than 127.
> "fundamentally Unix" here means "has a real fork() primitive, and is
> not Hurd."
Solaris (2.5, 2.6, 7 and 8 at least, both sparc and x86).
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
@ 2002-01-24 23:51 George.R.Goffe
0 siblings, 0 replies; 11+ messages in thread
From: George.R.Goffe @ 2002-01-24 23:51 UTC (permalink / raw)
To: zack; +Cc: gcc
Zack,
There appears to be a lot of errno.h files in the linux kernel. This
surprised me but shouldn't have I suppose. I DID NOT check more than these
below. I also have several different versions of solaris if you're
interested (2.5.1, 2.6, 2.7).
Regards,
George...
Here's the solaris 2.8 stuff...
/usr/include/sys/errno.h
#define ENOPROTOOPT 99 /* Protocol not available */
#define EPROTONOSUPPORT 120 /* Protocol not supported */
#define ESOCKTNOSUPPORT 121 /* Socket type not supported */
#define EOPNOTSUPP 122 /* Operation not supported on socket */
#define EPFNOSUPPORT 123 /* Protocol family not supported */
#define EAFNOSUPPORT 124 /* Address family not supported by */
/* protocol family */
#define EADDRINUSE 125 /* Address already in use */
#define EADDRNOTAVAIL 126 /* Can't assign requested address */
/* operational errors */
#define ENETDOWN 127 /* Network is down */
#define ENETUNREACH 128 /* Network is unreachable */
#define ENETRESET 129 /* Network dropped connection because */
/* of reset */
#define ECONNABORTED 130 /* Software caused connection abort */
#define ECONNRESET 131 /* Connection reset by peer */
#define ENOBUFS 132 /* No buffer space available */
#define EISCONN 133 /* Socket is already connected */
#define ENOTCONN 134 /* Socket is not connected */
/* XENIX has 135 - 142 */
#define ESHUTDOWN 143 /* Can't send after socket shutdown */
#define ETOOMANYREFS 144 /* Too many references: can't splice */
#define ETIMEDOUT 145 /* Connection timed out */
#define ECONNREFUSED 146 /* Connection refused */
#define EHOSTDOWN 147 /* Host is down */
#define EHOSTUNREACH 148 /* No route to host */
#define EWOULDBLOCK EAGAIN
#define EALREADY 149 /* operation already in progress */
#define EINPROGRESS 150 /* operation now in progress */
/* SUN Network File System */
#define ESTALE 151 /* Stale NFS file handle */
Here's some linux stuff (solaris port?)
/export/home/apps/moretools/linux/linux/include/asm/solerrno.h
#define SOL_EWOULDBLOCK EAGAIN /* Just an alias */
#define SOL_EALREADY 149 /* Operation is already occurring */
#define SOL_EINPROGRESS 150 /* Operation is happening now */
#define SOL_ESTALE 151 /* Fungus growth on NFS file handle */
#endif /* !(_SPARC64_SOLERRNO_H) */
here's some more linux stuff (solaris 64bit port?)
/export/home/apps/moretools/linux/linux/include/asm/errno.h
#define EREMOTEIO 121 /* Remote I/O error */
#define EILSEQ 122 /* Illegal byte sequence */
#define ELIBMAX 123 /* Atmpt to link in too many shared libs */
#define ELIBSCN 124 /* .lib section in a.out corrupted */
#define ENOMEDIUM 125 /* No medium found */
#define EMEDIUMTYPE 126 /* Wrong medium type */
#endif /* !(_SPARC64_ERRNO_H) */
More for ppc
/export/home/apps/moretools/linux/linux/include/asm-ppc/errno.h
#define ENAVAIL 119 /* No XENIX semaphores available */
#define EISNAM 120 /* Is a named type file */
#define EREMOTEIO 121 /* Remote I/O error */
#define EDQUOT 122 /* Quota exceeded */
#define ENOMEDIUM 123 /* No medium found */
#define EMEDIUMTYPE 124 /* Wrong medium type */
/* Should never be seen by user programs */
#define ERESTARTSYS 512
#define ERESTARTNOINTR 513
#define ERESTARTNOHAND 514 /* restart if no handler.. */
#define ENOIOCTLCMD 515 /* No ioctl command */
#define _LAST_ERRNO 515
#endif
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-24 19:40 Zack Weinberg
` (2 preceding siblings ...)
2002-01-24 21:06 ` law
@ 2002-01-24 21:24 ` Robert Lipe
2002-01-24 23:56 ` Kim Sebo
2002-01-25 0:45 ` Ross Smith
5 siblings, 0 replies; 11+ messages in thread
From: Robert Lipe @ 2002-01-24 21:24 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gcc
> Please raise your hand if you have a system which is fundamentally
> Unix, and which defines E-constants in <errno.h> larger than 127.
> "fundamentally Unix" here means "has a real fork() primitive, and is
> not Hurd."
Is the return value of the question boolean or array?
SVR5 (UnixWare 7, OpenUNIX 8) has errno's going up to 223.
OpenServer has several crossing that boundary, too.
(No, I don't claim they're either common or a good idea.)
RJL
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-24 19:40 Zack Weinberg
2002-01-24 19:44 ` Richard Henderson
2002-01-24 19:58 ` marius aamodt eriksen
@ 2002-01-24 21:06 ` law
2002-01-24 21:24 ` Robert Lipe
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: law @ 2002-01-24 21:06 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gcc
In message <20020125024740.GB1029@codesourcery.com>, Zack Weinberg writes:
> Please raise your hand if you have a system which is fundamentally
> Unix, and which defines E-constants in <errno.h> larger than 127.
> "fundamentally Unix" here means "has a real fork() primitive, and is
> not Hurd."
HPUX
jeff
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-24 19:40 Zack Weinberg
2002-01-24 19:44 ` Richard Henderson
@ 2002-01-24 19:58 ` marius aamodt eriksen
2002-01-24 21:06 ` law
` (3 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: marius aamodt eriksen @ 2002-01-24 19:58 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gcc
On Thu, Jan 24, 2002 at 06:47:40PM -0800, Zack Weinberg wrote:
> Please raise your hand if you have a system which is fundamentally
> Unix, and which defines E-constants in <errno.h> larger than 127.
> "fundamentally Unix" here means "has a real fork() primitive, and is
> not Hurd."
from OpenBSD:
/* ... */
#define ENETUNREACH 128 /* Network is unreachable */
#define ENETRESET 129 /* Network dropped connection because */
/* of reset */
#define ECONNABORTED 130 /* Software caused connection abort */
#define ECONNRESET 131 /* Connection reset by peer */
/* ... */
marius.
--
marius@{umich.edu,crockster.net,linux.com}, http://www.citi.umich.edu/u/marius
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: errno values: poll
2002-01-24 19:40 Zack Weinberg
@ 2002-01-24 19:44 ` Richard Henderson
2002-01-24 19:58 ` marius aamodt eriksen
` (4 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Richard Henderson @ 2002-01-24 19:44 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gcc
On Thu, Jan 24, 2002 at 06:47:40PM -0800, Zack Weinberg wrote:
> Please raise your hand if you have a system which is fundamentally
> Unix, and which defines E-constants in <errno.h> larger than 127.
#define EMEDIUMTYPE 130 /* Wrong medium type */
r~
^ permalink raw reply [flat|nested] 11+ messages in thread
* errno values: poll
@ 2002-01-24 19:40 Zack Weinberg
2002-01-24 19:44 ` Richard Henderson
` (5 more replies)
0 siblings, 6 replies; 11+ messages in thread
From: Zack Weinberg @ 2002-01-24 19:40 UTC (permalink / raw)
To: gcc
Please raise your hand if you have a system which is fundamentally
Unix, and which defines E-constants in <errno.h> larger than 127.
"fundamentally Unix" here means "has a real fork() primitive, and is
not Hurd."
zw
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-01-27 21:17 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-24 23:17 errno values: poll Billinghurst, David (CRTS)
-- strict thread matches above, loose matches on Subject: below --
2002-01-24 23:51 George.R.Goffe
2002-01-24 19:40 Zack Weinberg
2002-01-24 19:44 ` Richard Henderson
2002-01-24 19:58 ` marius aamodt eriksen
2002-01-24 21:06 ` law
2002-01-24 21:24 ` Robert Lipe
2002-01-24 23:56 ` Kim Sebo
2002-01-25 0:45 ` Ross Smith
2002-01-27 18:07 ` Jamie Lokier
2002-01-27 19:24 ` Ross Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).