[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTEMS use of Linux specific errno's
- Date: Thu, 11 Jun 2009 13:42:32 -0500
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: RTEMS use of Linux specific errno's
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://www.rtems.org/pipermail/rtems-users/attachments/20090611/74c71856/attachment.cc