Page 1 of 1

ftruncate in dekitPPC r 29

Posted: Wed Jan 18, 2017 2:09 pm
by Oibaf
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.

Re: ftruncate in dekitPPC r 29

Posted: Wed Jan 18, 2017 10:44 pm
by WinterMute
Can you open an issue at https://github.com/devkitPro/newlib/issues for this please.

Re: ftruncate in dekitPPC r 29

Posted: Thu Jan 19, 2017 3:24 pm
by Oibaf
Just done