From 199e870a87029b9eaaa411aae66ea649c99a8cb9 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sat, 29 Nov 2008 12:09:29 +0000 Subject: [PATCH] expose (f)truncate --- dkarm-eabi/patches/newlib-1.16.0.patch | 16 ++++++++++++++++ dkppc/patches/newlib-1.16.0.patch | 18 +++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/dkarm-eabi/patches/newlib-1.16.0.patch b/dkarm-eabi/patches/newlib-1.16.0.patch index da28bf1..1fa37e7 100644 --- a/dkarm-eabi/patches/newlib-1.16.0.patch +++ b/dkarm-eabi/patches/newlib-1.16.0.patch @@ -6465,6 +6465,22 @@ diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/types.h newlib-1.16.0-arm/newl #include +diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/unistd.h newlib-1.16.0-arm/newlib/libc/include/sys/unistd.h +--- newlib-1.16.0/newlib/libc/include/sys/unistd.h 2007-11-08 16:20:12.000000000 +0000 ++++ newlib-1.16.0-arm/newlib/libc/include/sys/unistd.h 2008-11-27 13:23:55.000000000 +0000 +@@ -201,12 +201,10 @@ + int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); + #endif + +-#if defined(__CYGWIN__) || defined(__rtems__) || 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 + + #if defined(__CYGWIN__) || defined(__rtems__) + int _EXFUN(getdtablesize, (void)); diff -Nbaur newlib-1.16.0/newlib/libc/locale/locale.c newlib-1.16.0-arm/newlib/libc/locale/locale.c --- newlib-1.16.0/newlib/libc/locale/locale.c 2004-04-23 22:44:21.000000000 +0100 +++ newlib-1.16.0-arm/newlib/libc/locale/locale.c 2008-10-19 02:39:55.000000000 +0100 diff --git a/dkppc/patches/newlib-1.16.0.patch b/dkppc/patches/newlib-1.16.0.patch index 8098e69..e52d035 100644 --- a/dkppc/patches/newlib-1.16.0.patch +++ b/dkppc/patches/newlib-1.16.0.patch @@ -6503,6 +6503,22 @@ diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/types.h newlib-1.16.0-ppc/newl #include +diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/unistd.h newlib-1.16.0-ppc/newlib/libc/include/sys/unistd.h +--- newlib-1.16.0/newlib/libc/include/sys/unistd.h 2007-11-08 16:20:12.000000000 +0000 ++++ newlib-1.16.0-ppc/newlib/libc/include/sys/unistd.h 2008-11-27 13:23:11.000000000 +0000 +@@ -201,12 +201,10 @@ + int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); + #endif + +-#if defined(__CYGWIN__) || defined(__rtems__) || 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 + + #if defined(__CYGWIN__) || defined(__rtems__) + int _EXFUN(getdtablesize, (void)); diff -Nbaur newlib-1.16.0/newlib/libc/locale/locale.c newlib-1.16.0-ppc/newlib/libc/locale/locale.c --- newlib-1.16.0/newlib/libc/locale/locale.c 2004-04-23 22:44:21.000000000 +0100 +++ newlib-1.16.0-ppc/newlib/libc/locale/locale.c 2008-10-19 16:45:49.000000000 +0100 @@ -6553,7 +6569,7 @@ diff -Nbaur newlib-1.16.0/newlib/libc/machine/powerpc/machine/_types.h newlib-1. +++ newlib-1.16.0-ppc/newlib/libc/machine/powerpc/machine/_types.h 2008-11-23 08:58:33.000000000 +0000 @@ -0,0 +1,15 @@ +/* -+ * $Id: newlib-1.16.0.patch,v 1.7 2008-11-23 09:11:25 wntrmute Exp $ ++ * $Id: newlib-1.16.0.patch,v 1.8 2008-11-29 12:08:00 wntrmute Exp $ + */ + +#ifndef _MACHINE__TYPES_H