[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is ENOTSUP == ECANCELED?
From: |
Andreas Voegele |
Subject: |
Re: Why is ENOTSUP == ECANCELED? |
Date: |
Tue, 24 Jun 2003 08:09:46 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Roland McGrath writes:
>> On Mon, Jun 23, 2003 at 10:35:56PM +0200, Andreas Voegele wrote:
>> > In /include/bits/errno.h both ENOTSUP and ECANCELED get the value
>> > _HURD_ERRNO(118). Is this intended?
>>
>> I don't think so. Roland can you fix this if it is wrong?
>
> They certainly should not have the same number. The Hurd numbers
> are determined by magic comments in libc/manual/errno.texi; it
> appears that someone added some codes to errno.texi with magic
> comments and picked some random numbers for them (probably Linux
> numbers) instead of omitting them. That needs to be fixed. Can you
> compare all the numbers in errno.texi with those that existing Hurd
> binaries were really using, and assign unused numbers to any excess
> errno codes the Hurd didn't previously have?
Currently, errno values are assigned in the ranges 1-81 and 100-118.
I think that ENOTSUP and ECANCELED are the only duplicates (besides
EAGAIN and EWOULDBLOCK). _HURD_ERRNOS is 119.