RTEMS use of Linux specific errno's
Joel Sherrill
joel.sherrill at OARcorp.com
Thu Jun 11 18:42:32 UTC 2009
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?
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: linux_errnos.diff
URL: <http://lists.rtems.org/pipermail/users/attachments/20090611/74c71856/attachment.ksh>
More information about the users
mailing list