This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: errno assignment problems (was Re: ECANCELED, errlist.c (was Re: FreeBSD port (11): a new errno))
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Roland McGrath <roland at redhat dot com>, Ulrich Drepper <drepper at redhat dot com>, David Miller <davem at redhat dot com>, Alexandre Oliva <aoliva at redhat dot com>, Bruno Haible <bruno at clisp dot org>, libc-alpha at sources dot redhat dot com
- Date: Wed, 28 Aug 2002 13:23:31 +0200
- Subject: Re: errno assignment problems (was Re: ECANCELED, errlist.c (was Re: FreeBSD port (11): a new errno))
- References: <orfzx0nzmv.fsf@free.redhat.lsd.ic.unicamp.br> <20020828030747.8B3421B9D7@perdition.linnaean.org> <20020828125321.I1013@sunsite.ms.mff.cuni.cz>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Aug 28, 2002 at 12:53:21PM +0200, Jakub Jelinek wrote:
> So, IMHO the solution must be stop using <asm/errno.h> immediately, instead
> put all the defines into linux/bits/errno.h (the generic definitions) and
> linux/alpha/bits/errno.h, linux/alpha/mips/bits/errno.h,
> linux/alpha/hppa/bits/errno.h and linux/alpha/sparc/bits/errno.h.
>
> Get in touch with kernel folks and #define ECANCELED in asm-generic/errno.h.
>
> As neither the kernel nor glibc ever generates ELIBMAX, IMHO it is
> possible to simply use a different value for it on Alpha and use 125 for
> ECANCELED (again, should be changed in the kernel too), so that aio is
> binary compatible. What to do on SPARC is really unclear, as ENOMEDIUM
> is generated by the kernel a lot - either we use a different value for
> ECANCELED, or live with it being the same value as ENOMEDIUM.
Actually, I think best would be to assign different
values for ECANCELED for Alpha, Sparc and HPPA and symbol version aio_cancel
on Alpha/Sparc/HPPA.
Jakub