public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug manual/3665] New: errno 118 assigned twice (ECANCELED and ENOTSUP)
@ 2006-12-06 13:23 samuel dot thibault at ens-lyon dot org
2006-12-06 15:44 ` [Bug manual/3665] " tschwinge at gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: samuel dot thibault at ens-lyon dot org @ 2006-12-06 13:23 UTC (permalink / raw)
To: glibc-bugs
In manual/errno.texi, 118 is assigned twice: both to ENOTSUP and to
ECANCELED.
That makes
switch(errno) {
case ENOTSUP:
foo();
break;
case ECANCELED:
bar();
break;
}
not compilable on systems that make use of these numbers for defining
E* constants (the Hurd, for instance).
--
Summary: errno 118 assigned twice (ECANCELED and ENOTSUP)
Product: glibc
Version: 2.3.6
Status: NEW
Severity: normal
Priority: P2
Component: manual
AssignedTo: roland at gnu dot org
ReportedBy: samuel dot thibault at ens-lyon dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3665
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug manual/3665] errno 118 assigned twice (ECANCELED and ENOTSUP)
2006-12-06 13:23 [Bug manual/3665] New: errno 118 assigned twice (ECANCELED and ENOTSUP) samuel dot thibault at ens-lyon dot org
@ 2006-12-06 15:44 ` tschwinge at gnu dot org
2007-01-21 23:19 ` samuel dot thibault at ens-lyon dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: tschwinge at gnu dot org @ 2006-12-06 15:44 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bug-hurd at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=3665
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug manual/3665] errno 118 assigned twice (ECANCELED and ENOTSUP)
2006-12-06 13:23 [Bug manual/3665] New: errno 118 assigned twice (ECANCELED and ENOTSUP) samuel dot thibault at ens-lyon dot org
2006-12-06 15:44 ` [Bug manual/3665] " tschwinge at gnu dot org
@ 2007-01-21 23:19 ` samuel dot thibault at ens-lyon dot org
2007-07-12 23:51 ` samuel dot thibault at ens-lyon dot org
2007-07-22 12:46 ` tschwinge at gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: samuel dot thibault at ens-lyon dot org @ 2007-01-21 23:19 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From samuel dot thibault at ens-lyon dot org 2007-01-21 23:19 -------
Created an attachment (id=1510)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1510&action=view)
proposed patch
Here is a proposed patch.
ECANCELED is only supported for aio functions, which have yet no implementation
on the Hurd: the symbols aren't even provided, so no existing program may have
already been compiled using that 118 value. That's why it is safe to change
that constant rather than ENOTSUP.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3665
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug manual/3665] errno 118 assigned twice (ECANCELED and ENOTSUP)
2006-12-06 13:23 [Bug manual/3665] New: errno 118 assigned twice (ECANCELED and ENOTSUP) samuel dot thibault at ens-lyon dot org
2006-12-06 15:44 ` [Bug manual/3665] " tschwinge at gnu dot org
2007-01-21 23:19 ` samuel dot thibault at ens-lyon dot org
@ 2007-07-12 23:51 ` samuel dot thibault at ens-lyon dot org
2007-07-22 12:46 ` tschwinge at gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: samuel dot thibault at ens-lyon dot org @ 2007-07-12 23:51 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From samuel dot thibault at ens-lyon dot org 2007-07-12 23:51 -------
So, what do you think of this? This is currently blocking building kdelibs on Debian, I'd like to know how this should be fixed before submitting a patch to debian's glibc package.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3665
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug manual/3665] errno 118 assigned twice (ECANCELED and ENOTSUP)
2006-12-06 13:23 [Bug manual/3665] New: errno 118 assigned twice (ECANCELED and ENOTSUP) samuel dot thibault at ens-lyon dot org
` (2 preceding siblings ...)
2007-07-12 23:51 ` samuel dot thibault at ens-lyon dot org
@ 2007-07-22 12:46 ` tschwinge at gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: tschwinge at gnu dot org @ 2007-07-22 12:46 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From tschwinge at gnu dot org 2007-07-22 12:46 -------
This patch has been applied; now `mach/hurd/bits/errno.h' has to be regenerated.
A patch has been posted in
<http://sourceware.org/ml/libc-alpha/2007-07/msg00089.html>.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3665
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-22 12:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-06 13:23 [Bug manual/3665] New: errno 118 assigned twice (ECANCELED and ENOTSUP) samuel dot thibault at ens-lyon dot org
2006-12-06 15:44 ` [Bug manual/3665] " tschwinge at gnu dot org
2007-01-21 23:19 ` samuel dot thibault at ens-lyon dot org
2007-07-12 23:51 ` samuel dot thibault at ens-lyon dot org
2007-07-22 12:46 ` tschwinge at gnu dot org
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).