[PATCH] arm, provide ftruncate() and truncate() stubs.
Marcus Shawcroft
marcus.shawcroft@arm.com
Thu Nov 14 17:24:00 GMT 2013
This one might be a tad contraversial...
We have a customer providing his own libgloss. His libgloss provides a
sane ftruncate(). The vanilla ARM libgloss does not provide an
ftruncate() implementation hence when libgfortran is configured,
autoconf does not detect ftruncate() and configures in a call to emit a
run time diagnostic instead of calling ftruncate().
The intention here is to provide an ftruncate stub to ensure that
libgfortran configury configures in the ftruncate call. The stub always
returns failure because we have no mechanism to implement a sane
ftruncate over the AngelAPI.
OK?
Cheers
/Marcus
libgloss
* arm/ftruncate.c: New.
* arm/truncate.c: New.
* arm/Makefile.in (RDPMON_OBJS): Add ftruncate.o and truncate.o.
(rdimon-ftruncate.o, rdimon-truncate.o): New rule:
newlib
* libc/include/sys/unistd.h (ftruncate, truncate): Define
for __arm__.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ARM-Provide-stubs-for-ftruncate-and-truncate.patch
Type: text/x-patch
Size: 5214 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20131114/55daeb10/attachment.bin>
More information about the Newlib
mailing list