This is the mail archive of the libc-alpha@sources.redhat.com 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]

Re: errno assignment problems (was Re: ECANCELED, errlist.c (was Re: FreeBSD port (11): a new errno))


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


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