ftruncate in dekitPPC r 29

support for the powerpc toolchain
Post Reply
Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

ftruncate in dekitPPC r 29

Post by Oibaf » Wed Jan 18, 2017 2:09 pm

In devkitPPC release 29, now the compiler gives a warning for "ftruncate" (undefined function).
Indeed the include file (unist.h) changed in respect to r28.
However the compiler can link the function.

In sys/unistd.h

Code: Select all

#if defined(__CYGWIN__) || defined(__rtems__) || defined(__aarch64__) || defined (__arm__) || defined(__sh__) || defined(__SPU__)
#if !defined(__INSIDE_CYGWIN__)
int     _EXFUN(ftruncate, (int __fd, off_t __length));
int     _EXFUN(truncate, (const char *, off_t __length));
#endif
#endif
PPC architecture seems not included in the OR list.

WinterMute
Site Admin
Posts: 1989
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: ftruncate in dekitPPC r 29

Post by WinterMute » Wed Jan 18, 2017 10:44 pm

Can you open an issue at https://github.com/devkitPro/newlib/issues for this please.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Oibaf
Posts: 34
Joined: Mon Jul 04, 2011 1:03 pm

Re: ftruncate in dekitPPC r 29

Post by Oibaf » Thu Jan 19, 2017 3:24 pm

Just done

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests