expose (f)truncate

This commit is contained in:
Dave Murphy 2008-11-29 12:09:29 +00:00
parent 986a5148b8
commit 199e870a87
2 changed files with 33 additions and 1 deletions

View File

@ -6465,6 +6465,22 @@ diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/types.h newlib-1.16.0-arm/newl
#include <sys/features.h>
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

View File

@ -6503,6 +6503,22 @@ diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/types.h newlib-1.16.0-ppc/newl
#include <sys/features.h>
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