This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

errno 118 assigned twice (ECANCELED and ENOTSUP)


Hi,

(citing http://sourceware.org/bugzilla/attachment.cgi?id=1510&action=view)

In manual/errno.texi, 118 is assigned twice: both to ENOTSUP and to
ECANCELED.  GNU/Hurd uses this as source for its error numbers, so that
codes like

switch(errno) {
        case ENOTSUP:
                foo();
                break;
        case ECANCELED:
                bar();
                break;
}

(like in openexr) can't compile.  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.  It hence seems safe to change ECANCELED
into 119, as the attached patch does.

Any comments?

Samuel

Attachment: patch
Description: Text document


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