hash.c and _stat variants
Joel Sherrill
joel.sherrill@oarcorp.com
Tue Jan 22 21:38:00 GMT 2013
Hi Corinna,
I was going through my newlib patches and found where
I had undone your change and used the version without
the _.
2012-08-08 Corinna Vinschen <vinschen@redhat.com>
* libc/search/hash.c: Throughout use underscored variants of
the stat
function family.
RTEMS doesn't have _stat, _fstat, _stat64, _fstat64 or _mkdir. We do have
the version without _. Looking in sys/stat.h, it appears that these
are part of the libgloss support but we didn't notice needing them
until you made this change.
RTEMS provides its own mkdir() so we can ignore _mkdir().
But to use hash.c, we need to address the four stat calls.
I see two possibilities:
+ Define _stat -> stat, etc. This would be a conditional
in newlib's sys/stat.h.
+ Implement simple _XXX wrappers for RTEMS.
Which would be better in your opinion?
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985
More information about the Newlib
mailing list