[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTEMS use of Linux specific errno's
- Date: Fri, 12 Jun 2009 08:38:27 +1000
- From: chrisj at rtems.org (Chris Johns)
- Subject: RTEMS use of Linux specific errno's
Joel Sherrill wrote:
> Hi,
>
> newlib cvs has moved EBADRQC and which
> is used by various files in /cpukit/libblock/src
> and some libchip drivers and ENOTBLOCK which is
> used by the fatfs to inside an ifdef which
> indicates it Linux specific. I
> only see two alternatives:
>
> + change the errno returned (probably best since
> it would be POSIX-ically correct and easier)
> + patch newlib to make these Linux-isms available.
>
> I am pretty happy changing EBADRQC to EINVAL but
> I don't know what ENOTBLOCK should change to.
>
> Attached is a patch which shows where these are.
>
> Thoughts?
>
I have no problem with any of the changes so please commit. I think
Peter's comments are also valid but I have no specific view either way.
Regards
Chris