diff --git a/dkppc/patches/gdb-6.7.1.patch b/dkppc/patches/gdb-6.8.patch similarity index 100% rename from dkppc/patches/gdb-6.7.1.patch rename to dkppc/patches/gdb-6.8.patch diff --git a/dkppc/patches/newlib-1.15.0.patch b/dkppc/patches/newlib-1.16.0.patch similarity index 91% rename from dkppc/patches/newlib-1.15.0.patch rename to dkppc/patches/newlib-1.16.0.patch index e902fdc..8115406 100644 --- a/dkppc/patches/newlib-1.15.0.patch +++ b/dkppc/patches/newlib-1.16.0.patch @@ -1,6 +1,6 @@ -diff -Nbaur newlib-1.15.0/config.sub newlib-1.15.0-new/config.sub ---- newlib-1.15.0/config.sub Mon Dec 11 04:12:46 2006 -+++ newlib-1.15.0-new/config.sub Tue Mar 4 23:23:47 2008 +diff -Nbaur newlib-1.16.0/config.sub newlib-1.16.0-ppc/config.sub +--- newlib-1.16.0/config.sub Wed Dec 5 03:27:21 2007 ++++ newlib-1.16.0-ppc/config.sub Fri Apr 25 13:13:31 2008 @@ -230,6 +230,10 @@ basic_machine=m68k-atari os=-mint @@ -12,9 +12,9 @@ diff -Nbaur newlib-1.15.0/config.sub newlib-1.15.0-new/config.sub esac # Decode aliases for certain CPU-COMPANY combinations. -diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configure ---- newlib-1.15.0/libgloss/configure Mon Dec 18 21:48:18 2006 -+++ newlib-1.15.0-new/libgloss/configure Fri Feb 16 09:13:44 2007 +diff -Nbaur newlib-1.16.0/libgloss/configure newlib-1.16.0-ppc/libgloss/configure +--- newlib-1.16.0/libgloss/configure Thu Feb 8 21:22:05 2007 ++++ newlib-1.16.0-ppc/libgloss/configure Fri Apr 25 13:13:31 2008 @@ -272,8 +272,10 @@ PACKAGE_BUGREPORT='' @@ -26,7 +26,7 @@ diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configur ac_subdirs_all="$ac_subdirs_all i386" ac_subdirs_all="$ac_subdirs_all m32r" ac_subdirs_all="$ac_subdirs_all m68hc11" -@@ -1287,6 +1289,7 @@ +@@ -1288,6 +1290,7 @@ @@ -34,7 +34,7 @@ diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configur if test "${enable_shared}" = "yes" ; then echo "Shared libraries not supported for cross compiling, ignored" fi -@@ -1823,6 +1826,10 @@ +@@ -1824,6 +1827,10 @@ subdirs="$subdirs libnosys" @@ -45,9 +45,9 @@ diff -Nbaur newlib-1.15.0/libgloss/configure newlib-1.15.0-new/libgloss/configur case "${target}" in -diff -Nbaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-new/libgloss/configure.in ---- newlib-1.15.0/libgloss/configure.in Mon Dec 18 21:48:18 2006 -+++ newlib-1.15.0-new/libgloss/configure.in Fri Feb 16 09:13:44 2007 +diff -Nbaur newlib-1.16.0/libgloss/configure.in newlib-1.16.0-ppc/libgloss/configure.in +--- newlib-1.16.0/libgloss/configure.in Thu Feb 8 21:22:05 2007 ++++ newlib-1.16.0-ppc/libgloss/configure.in Fri Apr 25 13:13:31 2008 @@ -2,6 +2,7 @@ AC_PREREQ(2.59) AC_INIT([libgloss],[LIBGLOSS_VERSION]) @@ -64,9 +64,9 @@ diff -Nbaur newlib-1.15.0/libgloss/configure.in newlib-1.15.0-new/libgloss/confi case "${target}" in i[[3456]]86-*-elf* | i[[3456]]86-*-coff*) -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libgloss/libsysbase/Makefile.in ---- newlib-1.15.0/libgloss/libsysbase/Makefile.in Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/Makefile.in Sun Apr 13 18:10:36 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/Makefile.in newlib-1.16.0-ppc/libgloss/libsysbase/Makefile.in +--- newlib-1.16.0/libgloss/libsysbase/Makefile.in Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/Makefile.in Fri Apr 25 13:13:31 2008 @@ -0,0 +1,147 @@ +# Copyright (c) 1998 Cygnus Support +# @@ -215,9 +215,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/Makefile.in newlib-1.15.0-new/libg + +config.status: configure + $(SHELL) config.status --recheck -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-new/libgloss/libsysbase/_exit.c ---- newlib-1.15.0/libgloss/libsysbase/_exit.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/_exit.c Tue Feb 19 18:59:32 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/_exit.c newlib-1.16.0-ppc/libgloss/libsysbase/_exit.c +--- newlib-1.16.0/libgloss/libsysbase/_exit.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/_exit.c Fri Apr 25 13:13:31 2008 @@ -0,0 +1,19 @@ +/* Stub version of _exit. */ + @@ -238,9 +238,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/_exit.c newlib-1.15.0-new/libgloss + + while(1); +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-new/libgloss/libsysbase/abort.c ---- newlib-1.15.0/libgloss/libsysbase/abort.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/abort.c Sun Feb 17 14:32:21 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/abort.c newlib-1.16.0-ppc/libgloss/libsysbase/abort.c +--- newlib-1.16.0/libgloss/libsysbase/abort.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/abort.c Fri Apr 25 13:13:31 2008 @@ -0,0 +1,8 @@ +#include +#include @@ -250,9 +250,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/abort.c newlib-1.15.0-new/libgloss + _exit (1); +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-new/libgloss/libsysbase/acconfig.h ---- newlib-1.15.0/libgloss/libsysbase/acconfig.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/acconfig.h Sun Feb 17 14:32:21 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/acconfig.h newlib-1.16.0-ppc/libgloss/libsysbase/acconfig.h +--- newlib-1.16.0/libgloss/libsysbase/acconfig.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/acconfig.h Fri Apr 25 13:13:31 2008 @@ -0,0 +1,29 @@ +/* Name of package. */ +#undef PACKAGE @@ -283,9 +283,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/acconfig.h newlib-1.15.0-new/libgl + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-new/libgloss/libsysbase/aclocal.m4 ---- newlib-1.15.0/libgloss/libsysbase/aclocal.m4 Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/aclocal.m4 Sun Feb 17 14:32:21 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/aclocal.m4 newlib-1.16.0-ppc/libgloss/libsysbase/aclocal.m4 +--- newlib-1.16.0/libgloss/libsysbase/aclocal.m4 Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/aclocal.m4 Fri Apr 25 13:13:31 2008 @@ -0,0 +1,344 @@ +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- + @@ -631,9 +631,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/aclocal.m4 newlib-1.15.0-new/libgl +]) + +m4_include([../acinclude.m4]) -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-new/libgloss/libsysbase/build_argv.c ---- newlib-1.15.0/libgloss/libsysbase/build_argv.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/build_argv.c Sun Feb 17 14:32:22 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/build_argv.c newlib-1.16.0-ppc/libgloss/libsysbase/build_argv.c +--- newlib-1.16.0/libgloss/libsysbase/build_argv.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/build_argv.c Fri Apr 25 13:13:31 2008 @@ -0,0 +1,31 @@ +struct __argv { + int argvMagic; @@ -666,9 +666,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/build_argv.c newlib-1.15.0-new/lib + argstruct->argc = argCount; + argstruct->endARGV = &argv[argCount]; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-new/libgloss/libsysbase/chdir.c ---- newlib-1.15.0/libgloss/libsysbase/chdir.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/chdir.c Sun Feb 17 14:32:22 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/chdir.c newlib-1.16.0-ppc/libgloss/libsysbase/chdir.c +--- newlib-1.16.0/libgloss/libsysbase/chdir.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/chdir.c Fri Apr 25 13:13:31 2008 @@ -0,0 +1,175 @@ +#include +#include @@ -845,9 +845,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/chdir.c newlib-1.15.0-new/libgloss + + return buf; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss/libsysbase/close.c ---- newlib-1.15.0/libgloss/libsysbase/close.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/close.c Mon Apr 14 18:33:15 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/close.c newlib-1.16.0-ppc/libgloss/libsysbase/close.c +--- newlib-1.16.0/libgloss/libsysbase/close.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/close.c Fri Apr 25 13:13:31 2008 @@ -0,0 +1,41 @@ +#include "config.h" +#include <_ansi.h> @@ -890,9 +890,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/close.c newlib-1.15.0-new/libgloss + } + return ret; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-new/libgloss/libsysbase/config.h.in ---- newlib-1.15.0/libgloss/libsysbase/config.h.in Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/config.h.in Sun Feb 17 14:32:22 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/config.h.in newlib-1.16.0-ppc/libgloss/libsysbase/config.h.in +--- newlib-1.16.0/libgloss/libsysbase/config.h.in Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/config.h.in Fri Apr 25 13:13:31 2008 @@ -0,0 +1,25 @@ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + @@ -919,9 +919,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/config.h.in newlib-1.15.0-new/libg + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-new/libgloss/libsysbase/configure ---- newlib-1.15.0/libgloss/libsysbase/configure Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/configure Sun Feb 17 14:32:22 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/configure newlib-1.16.0-ppc/libgloss/libsysbase/configure +--- newlib-1.16.0/libgloss/libsysbase/configure Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/configure Fri Apr 25 13:13:31 2008 @@ -0,0 +1,3553 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. @@ -4476,9 +4476,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure newlib-1.15.0-new/libglo + + + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-new/libgloss/libsysbase/configure.in ---- newlib-1.15.0/libgloss/libsysbase/configure.in Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/configure.in Sun Feb 17 14:32:22 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/configure.in newlib-1.16.0-ppc/libgloss/libsysbase/configure.in +--- newlib-1.16.0/libgloss/libsysbase/configure.in Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/configure.in Fri Apr 25 13:13:31 2008 @@ -0,0 +1,208 @@ +# Copyright (c) 1995, 1996 Cygnus Support +# @@ -4688,9 +4688,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/configure.in newlib-1.15.0-new/lib +AC_OUTPUT + + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-new/libgloss/libsysbase/dir.c ---- newlib-1.15.0/libgloss/libsysbase/dir.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/dir.c Sun Feb 17 14:32:22 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/dir.c newlib-1.16.0-ppc/libgloss/libsysbase/dir.c +--- newlib-1.16.0/libgloss/libsysbase/dir.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/dir.c Fri Apr 25 13:13:31 2008 @@ -0,0 +1,94 @@ +#include +#include @@ -4786,9 +4786,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/dir.c newlib-1.15.0-new/libgloss/l + return ret; +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-new/libgloss/libsysbase/environ.c ---- newlib-1.15.0/libgloss/libsysbase/environ.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/environ.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/environ.c newlib-1.16.0-ppc/libgloss/libsysbase/environ.c +--- newlib-1.16.0/libgloss/libsysbase/environ.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/environ.c Fri Apr 25 13:13:31 2008 @@ -0,0 +1,6 @@ +/* + * Version of environ for no OS. @@ -4796,9 +4796,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/environ.c newlib-1.15.0-new/libglo + +char *__env[1] = { 0 }; +char **environ = __env; -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-new/libgloss/libsysbase/execve.c ---- newlib-1.15.0/libgloss/libsysbase/execve.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/execve.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/execve.c newlib-1.16.0-ppc/libgloss/libsysbase/execve.c +--- newlib-1.16.0/libgloss/libsysbase/execve.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/execve.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,19 @@ +/* + * Stub version of execve. @@ -4819,9 +4819,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/execve.c newlib-1.15.0-new/libglos + return -1; +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/flock.c newlib-1.15.0-new/libgloss/libsysbase/flock.c ---- newlib-1.15.0/libgloss/libsysbase/flock.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/flock.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/flock.c newlib-1.16.0-ppc/libgloss/libsysbase/flock.c +--- newlib-1.16.0/libgloss/libsysbase/flock.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/flock.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,21 @@ +#include +#include <_ansi.h> @@ -4844,9 +4844,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/flock.c newlib-1.15.0-new/libgloss +{ + __lock_release_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock); +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-new/libgloss/libsysbase/fork.c ---- newlib-1.15.0/libgloss/libsysbase/fork.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/fork.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/fork.c newlib-1.16.0-ppc/libgloss/libsysbase/fork.c +--- newlib-1.16.0/libgloss/libsysbase/fork.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/fork.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,19 @@ +/* + * Stub version of fork. @@ -4867,10 +4867,10 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fork.c newlib-1.15.0-new/libgloss/ +} + +stub_warning(_fork) -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss/libsysbase/fstat.c ---- newlib-1.15.0/libgloss/libsysbase/fstat.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/fstat.c Sun Feb 17 16:30:33 2008 -@@ -0,0 +1,45 @@ +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/fstat.c newlib-1.16.0-ppc/libgloss/libsysbase/fstat.c +--- newlib-1.16.0/libgloss/libsysbase/fstat.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/fstat.c Fri Apr 25 13:13:32 2008 +@@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> +#include <_syslist.h> @@ -4904,7 +4904,10 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss + if ( fileDesc < 3) { + dev = fileDesc; + } else { -+ handle = (__handle *)fileDesc; ++ handle = __get_handle(fileDesc); ++ ++ if ( NULL == handle ) return ret; ++ + dev = handle->device; + fd = (int)handle->fileStruct; + } @@ -4916,9 +4919,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/fstat.c newlib-1.15.0-new/libgloss + } + return ret; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-new/libgloss/libsysbase/getpid.c ---- newlib-1.15.0/libgloss/libsysbase/getpid.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/getpid.c Sun Feb 17 16:30:43 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/getpid.c newlib-1.16.0-ppc/libgloss/libsysbase/getpid.c +--- newlib-1.16.0/libgloss/libsysbase/getpid.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/getpid.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,21 @@ +#include "config.h" +#include <_ansi.h> @@ -4941,9 +4944,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/getpid.c newlib-1.15.0-new/libglos + return -1; +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-new/libgloss/libsysbase/gettod.c ---- newlib-1.15.0/libgloss/libsysbase/gettod.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/gettod.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/gettod.c newlib-1.16.0-ppc/libgloss/libsysbase/gettod.c +--- newlib-1.16.0/libgloss/libsysbase/gettod.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/gettod.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,25 @@ +/* + * Stub version of gettimeofday. @@ -4970,9 +4973,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/gettod.c newlib-1.15.0-new/libglos +} + +stub_warning(_gettimeofday) -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/handle_manager.c newlib-1.15.0-new/libgloss/libsysbase/handle_manager.c ---- newlib-1.15.0/libgloss/libsysbase/handle_manager.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/handle_manager.c Sun Apr 13 20:31:51 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/handle_manager.c newlib-1.16.0-ppc/libgloss/libsysbase/handle_manager.c +--- newlib-1.16.0/libgloss/libsysbase/handle_manager.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/handle_manager.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,47 @@ +#include +#include @@ -5021,9 +5024,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/handle_manager.c newlib-1.15.0-new + return handles[fd-3]; + +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/handle_manager.h newlib-1.15.0-new/libgloss/libsysbase/handle_manager.h ---- newlib-1.15.0/libgloss/libsysbase/handle_manager.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/handle_manager.h Sun Apr 13 18:25:26 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/handle_manager.h newlib-1.16.0-ppc/libgloss/libsysbase/handle_manager.h +--- newlib-1.16.0/libgloss/libsysbase/handle_manager.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/handle_manager.h Fri Apr 25 13:13:32 2008 @@ -0,0 +1,10 @@ +#ifndef __HANDLE_MANAGER_H__ +#define __HANDLE_MANAGER_H__ @@ -5035,9 +5038,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/handle_manager.h newlib-1.15.0-new +__handle *__get_handle(int fd); + +#endif -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-new/libgloss/libsysbase/iosupport.c ---- newlib-1.15.0/libgloss/libsysbase/iosupport.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/iosupport.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/iosupport.c newlib-1.16.0-ppc/libgloss/libsysbase/iosupport.c +--- newlib-1.16.0/libgloss/libsysbase/iosupport.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/iosupport.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,106 @@ +#include +#include @@ -5145,9 +5148,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/iosupport.c newlib-1.15.0-new/libg + } + return devnum; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-new/libgloss/libsysbase/isatty.c ---- newlib-1.15.0/libgloss/libsysbase/isatty.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/isatty.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/isatty.c newlib-1.16.0-ppc/libgloss/libsysbase/isatty.c +--- newlib-1.16.0/libgloss/libsysbase/isatty.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/isatty.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,10 @@ +#include <_ansi.h> +#include <_syslist.h> @@ -5159,9 +5162,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/isatty.c newlib-1.15.0-new/libglos +//--------------------------------------------------------------------------------- + return 0; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-new/libgloss/libsysbase/kill.c ---- newlib-1.15.0/libgloss/libsysbase/kill.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/kill.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/kill.c newlib-1.16.0-ppc/libgloss/libsysbase/kill.c +--- newlib-1.16.0/libgloss/libsysbase/kill.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/kill.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,23 @@ +/* + * Stub version of kill. @@ -5186,9 +5189,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/kill.c newlib-1.15.0-new/libgloss/ + ptr->_errno = ENOSYS; + return -1; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-new/libgloss/libsysbase/link.c ---- newlib-1.15.0/libgloss/libsysbase/link.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/link.c Sun Feb 17 16:31:27 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/link.c newlib-1.16.0-ppc/libgloss/libsysbase/link.c +--- newlib-1.16.0/libgloss/libsysbase/link.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/link.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5227,9 +5230,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/link.c newlib-1.15.0-new/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss/libsysbase/lseek.c ---- newlib-1.15.0/libgloss/libsysbase/lseek.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/lseek.c Sun Apr 13 18:32:18 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/lseek.c newlib-1.16.0-ppc/libgloss/libsysbase/lseek.c +--- newlib-1.16.0/libgloss/libsysbase/lseek.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/lseek.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,53 @@ +#include "config.h" +#include <_ansi.h> @@ -5284,15 +5287,15 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/lseek.c newlib-1.15.0-new/libgloss + return ret; + +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/malloc_vars.c newlib-1.15.0-new/libgloss/libsysbase/malloc_vars.c ---- newlib-1.15.0/libgloss/libsysbase/malloc_vars.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/malloc_vars.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/malloc_vars.c newlib-1.16.0-ppc/libgloss/libsysbase/malloc_vars.c +--- newlib-1.16.0/libgloss/libsysbase/malloc_vars.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/malloc_vars.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,2 @@ +char *fake_heap_end = (char*)0; +char *fake_heap_start = (char*)0; -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-new/libgloss/libsysbase/mkdir.c ---- newlib-1.15.0/libgloss/libsysbase/mkdir.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/mkdir.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/mkdir.c newlib-1.16.0-ppc/libgloss/libsysbase/mkdir.c +--- newlib-1.16.0/libgloss/libsysbase/mkdir.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/mkdir.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,18 @@ +#include +#include @@ -5312,9 +5315,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/mkdir.c newlib-1.15.0-new/libgloss + + return ret; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-new/libgloss/libsysbase/open.c ---- newlib-1.15.0/libgloss/libsysbase/open.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/open.c Sun Apr 13 19:58:20 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/open.c newlib-1.16.0-ppc/libgloss/libsysbase/open.c +--- newlib-1.16.0/libgloss/libsysbase/open.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/open.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,57 @@ +#include "config.h" +#include <_ansi.h> @@ -5373,9 +5376,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/open.c newlib-1.15.0-new/libgloss/ + + return fd; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/libsysbase/read.c ---- newlib-1.15.0/libgloss/libsysbase/read.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/read.c Sun Apr 13 18:29:27 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/read.c newlib-1.16.0-ppc/libgloss/libsysbase/read.c +--- newlib-1.16.0/libgloss/libsysbase/read.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/read.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -5425,9 +5428,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/read.c newlib-1.15.0-new/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-new/libgloss/libsysbase/rename.c ---- newlib-1.15.0/libgloss/libsysbase/rename.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/rename.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/rename.c newlib-1.16.0-ppc/libgloss/libsysbase/rename.c +--- newlib-1.16.0/libgloss/libsysbase/rename.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/rename.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,25 @@ +#include +#include @@ -5454,9 +5457,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/rename.c newlib-1.15.0-new/libglos + + return ret; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-new/libgloss/libsysbase/sbrk.c ---- newlib-1.15.0/libgloss/libsysbase/sbrk.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/sbrk.c Sun Feb 17 16:32:21 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/sbrk.c newlib-1.16.0-ppc/libgloss/libsysbase/sbrk.c +--- newlib-1.16.0/libgloss/libsysbase/sbrk.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/sbrk.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,26 @@ +#include "config.h" +#include @@ -5484,9 +5487,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/sbrk.c newlib-1.15.0-new/libgloss/ + } + +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-new/libgloss/libsysbase/stat.c ---- newlib-1.15.0/libgloss/libsysbase/stat.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/stat.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/stat.c newlib-1.16.0-ppc/libgloss/libsysbase/stat.c +--- newlib-1.16.0/libgloss/libsysbase/stat.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/stat.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,39 @@ +#include "config.h" +#include <_ansi.h> @@ -5527,9 +5530,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/stat.c newlib-1.15.0-new/libgloss/ + return ret; +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-new/libgloss/libsysbase/statvfs.c ---- newlib-1.15.0/libgloss/libsysbase/statvfs.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/statvfs.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/statvfs.c newlib-1.16.0-ppc/libgloss/libsysbase/statvfs.c +--- newlib-1.16.0/libgloss/libsysbase/statvfs.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/statvfs.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,23 @@ +#include +#include @@ -5554,9 +5557,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/statvfs.c newlib-1.15.0-new/libglo + + return ret; +} -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/syscall_support.c newlib-1.15.0-new/libgloss/libsysbase/syscall_support.c ---- newlib-1.15.0/libgloss/libsysbase/syscall_support.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/syscall_support.c Tue Feb 19 12:49:53 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/syscall_support.c newlib-1.16.0-ppc/libgloss/libsysbase/syscall_support.c +--- newlib-1.16.0/libgloss/libsysbase/syscall_support.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/syscall_support.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,65 @@ +#include + @@ -5623,9 +5626,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/syscall_support.c newlib-1.15.0-ne + } +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-new/libgloss/libsysbase/unlink.c ---- newlib-1.15.0/libgloss/libsysbase/unlink.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/unlink.c Sun Feb 17 16:33:06 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/unlink.c newlib-1.16.0-ppc/libgloss/libsysbase/unlink.c +--- newlib-1.16.0/libgloss/libsysbase/unlink.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/unlink.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,33 @@ +#include "config.h" +#include <_ansi.h> @@ -5660,9 +5663,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/unlink.c newlib-1.15.0-new/libglos + return ret; +} + -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-new/libgloss/libsysbase/wait.c ---- newlib-1.15.0/libgloss/libsysbase/wait.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/wait.c Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/wait.c newlib-1.16.0-ppc/libgloss/libsysbase/wait.c +--- newlib-1.16.0/libgloss/libsysbase/wait.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/wait.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,19 @@ +/* + * Stub version of wait. @@ -5683,9 +5686,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/wait.c newlib-1.15.0-new/libgloss/ +} + +stub_warning(_wait) -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-new/libgloss/libsysbase/warning.h ---- newlib-1.15.0/libgloss/libsysbase/warning.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/warning.h Sun Feb 17 14:32:23 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/warning.h newlib-1.16.0-ppc/libgloss/libsysbase/warning.h +--- newlib-1.16.0/libgloss/libsysbase/warning.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/warning.h Fri Apr 25 13:13:32 2008 @@ -0,0 +1,43 @@ +#ifndef __WARNING_H__ +#define __WARNING_H__ @@ -5730,9 +5733,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/warning.h newlib-1.15.0-new/libglo + "warning: " #name " is not implemented and will always fail") + +#endif /* __WARNING_H__ */ -diff -Nbaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss/libsysbase/write.c ---- newlib-1.15.0/libgloss/libsysbase/write.c Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/libsysbase/write.c Sun Apr 13 20:02:04 2008 +diff -Nbaur newlib-1.16.0/libgloss/libsysbase/write.c newlib-1.16.0-ppc/libgloss/libsysbase/write.c +--- newlib-1.16.0/libgloss/libsysbase/write.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/libsysbase/write.c Fri Apr 25 13:13:32 2008 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -5747,14 +5750,14 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss +_ssize_t _DEFUN(_write_r,(r, fileDesc, ptr, len), + struct _reent * r _AND + int fileDesc _AND -+ void *ptr _AND ++ const void *ptr _AND + size_t len) { +//--------------------------------------------------------------------------------- +#else +//--------------------------------------------------------------------------------- +int _DEFUN (_write, (fileDesc, ptr, len), + int fileDesc _AND -+ char *ptr _AND ++ const char *ptr _AND + int len) { +//--------------------------------------------------------------------------------- + struct _reent *r = _REENT; @@ -5782,9 +5785,9 @@ diff -Nbaur newlib-1.15.0/libgloss/libsysbase/write.c newlib-1.15.0-new/libgloss + } + return ret; +} -diff -Nbaur newlib-1.15.0/libgloss/rs6000/Makefile.in newlib-1.15.0-new/libgloss/rs6000/Makefile.in ---- newlib-1.15.0/libgloss/rs6000/Makefile.in Tue Aug 30 17:11:27 2005 -+++ newlib-1.15.0-new/libgloss/rs6000/Makefile.in Mon Apr 14 00:25:45 2008 +diff -Nbaur newlib-1.16.0/libgloss/rs6000/Makefile.in newlib-1.16.0-ppc/libgloss/rs6000/Makefile.in +--- newlib-1.16.0/libgloss/rs6000/Makefile.in Tue Aug 30 17:11:27 2005 ++++ newlib-1.16.0-ppc/libgloss/rs6000/Makefile.in Fri Apr 25 13:13:32 2008 @@ -121,6 +121,9 @@ MBX_TEST = mbx-test MBX_INSTALL = install-mbx @@ -5832,9 +5835,9 @@ diff -Nbaur newlib-1.15.0/libgloss/rs6000/Makefile.in newlib-1.15.0-new/libgloss doc: info: -diff -Nbaur newlib-1.15.0/libgloss/rs6000/crtmain.S newlib-1.15.0-new/libgloss/rs6000/crtmain.S ---- newlib-1.15.0/libgloss/rs6000/crtmain.S Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/libgloss/rs6000/crtmain.S Mon Apr 14 00:41:46 2008 +diff -Nbaur newlib-1.16.0/libgloss/rs6000/crtmain.S newlib-1.16.0-ppc/libgloss/rs6000/crtmain.S +--- newlib-1.16.0/libgloss/rs6000/crtmain.S Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/libgloss/rs6000/crtmain.S Fri Apr 25 13:13:32 2008 @@ -0,0 +1,6 @@ +.globl __crtmain +__crtmain: @@ -5842,10 +5845,10 @@ diff -Nbaur newlib-1.15.0/libgloss/rs6000/crtmain.S newlib-1.15.0-new/libgloss/r + bl SYS_PreMain + bl main + b exit -diff -Nbaur newlib-1.15.0/newlib/configure.host newlib-1.15.0-new/newlib/configure.host ---- newlib-1.15.0/newlib/configure.host Mon Dec 18 21:49:14 2006 -+++ newlib-1.15.0-new/newlib/configure.host Sun Feb 17 09:13:18 2008 -@@ -651,6 +651,11 @@ +diff -Nbaur newlib-1.16.0/newlib/configure.host newlib-1.16.0-ppc/newlib/configure.host +--- newlib-1.16.0/newlib/configure.host Wed Nov 7 21:42:24 2007 ++++ newlib-1.16.0-ppc/newlib/configure.host Fri Apr 25 13:13:32 2008 +@@ -669,6 +669,11 @@ default_newlib_io_long_long="yes" newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" ;; @@ -5857,21 +5860,9 @@ diff -Nbaur newlib-1.15.0/newlib/configure.host newlib-1.15.0-new/newlib/configu powerpc*-*-eabi* | \ powerpc*-*-elf* | \ powerpc*-*-linux* | \ -diff -Nbaur newlib-1.15.0/newlib/libc/include/reent.h newlib-1.15.0-new/newlib/libc/include/reent.h ---- newlib-1.15.0/newlib/libc/include/reent.h Wed Aug 27 17:24:57 2003 -+++ newlib-1.15.0-new/newlib/libc/include/reent.h Fri Apr 13 02:55:00 2007 -@@ -77,7 +77,7 @@ - extern _CLOCK_T_ _times_r _PARAMS ((struct _reent *, struct tms *)); - extern int _unlink_r _PARAMS ((struct _reent *, const char *)); - extern int _wait_r _PARAMS ((struct _reent *, int *)); --extern _ssize_t _write_r _PARAMS ((struct _reent *, int, const void *, size_t)); -+extern _ssize_t _write_r _PARAMS ((struct _reent *, int, void *, size_t)); - - /* This one is not guaranteed to be available on all targets. */ - extern int _gettimeofday_r _PARAMS ((struct _reent *, struct timeval *tp, struct timezone *tzp)); -diff -Nbaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-new/newlib/libc/include/stdint.h ---- newlib-1.15.0/newlib/libc/include/stdint.h Wed Aug 16 22:39:43 2006 -+++ newlib-1.15.0-new/newlib/libc/include/stdint.h Tue Jan 8 04:11:30 2008 +diff -Nbaur newlib-1.16.0/newlib/libc/include/stdint.h newlib-1.16.0-ppc/newlib/libc/include/stdint.h +--- newlib-1.16.0/newlib/libc/include/stdint.h Wed Aug 16 22:39:43 2006 ++++ newlib-1.16.0-ppc/newlib/libc/include/stdint.h Fri Apr 25 13:13:32 2008 @@ -79,13 +79,13 @@ #endif #endif @@ -5891,28 +5882,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/stdint.h newlib-1.15.0-new/newlib/ #define __int32_t_defined 1 #elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL typedef signed short int32_t; -diff -Nbaur newlib-1.15.0/newlib/libc/include/stdio.h newlib-1.15.0-new/newlib/libc/include/stdio.h ---- newlib-1.15.0/newlib/libc/include/stdio.h Tue Sep 26 22:22:19 2006 -+++ newlib-1.15.0-new/newlib/libc/include/stdio.h Fri Feb 16 09:13:45 2007 -@@ -179,6 +179,7 @@ - int _EXFUN(printf, (const char *, ...)); - int _EXFUN(scanf, (const char *, ...)); - int _EXFUN(sscanf, (const char *, const char *, ...)); -+int _EXFUN(siscanf, (const char *, const char *, ...)); - int _EXFUN(vfprintf, (FILE *, const char *, __VALIST)); - int _EXFUN(vprintf, (const char *, __VALIST)); - int _EXFUN(vsprintf, (char *, const char *, __VALIST)); -@@ -252,6 +253,7 @@ - int _EXFUN(vfscanf, (FILE *, const char *, __VALIST)); - int _EXFUN(viprintf, (const char *, __VALIST)); - int _EXFUN(viscanf, (const char *, __VALIST)); -+int _EXFUN(viprintf, (const char *, __VALIST)); - int _EXFUN(vscanf, (const char *, __VALIST)); - int _EXFUN(vsiscanf, (const char *, const char *, __VALIST)); - int _EXFUN(vsscanf, (const char *, const char *, __VALIST)); -diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-new/newlib/libc/include/sys/dir.h ---- newlib-1.15.0/newlib/libc/include/sys/dir.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/newlib/libc/include/sys/dir.h Fri Feb 16 09:13:45 2007 +diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/dir.h newlib-1.16.0-ppc/newlib/libc/include/sys/dir.h +--- newlib-1.16.0/newlib/libc/include/sys/dir.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/newlib/libc/include/sys/dir.h Fri Apr 25 13:13:32 2008 @@ -0,0 +1,32 @@ +/* + @@ -5946,9 +5918,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/dir.h newlib-1.15.0-new/newlib +#endif + +#endif // _dir_h_ -diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-new/newlib/libc/include/sys/iosupport.h ---- newlib-1.15.0/newlib/libc/include/sys/iosupport.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/newlib/libc/include/sys/iosupport.h Tue Feb 19 12:51:19 2008 +diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/iosupport.h newlib-1.16.0-ppc/newlib/libc/include/sys/iosupport.h +--- newlib-1.16.0/newlib/libc/include/sys/iosupport.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/newlib/libc/include/sys/iosupport.h Fri Apr 25 13:13:32 2008 @@ -0,0 +1,78 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ @@ -6028,9 +6000,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/iosupport.h newlib-1.15.0-new/ +//--------------------------------------------------------------------------------- +#endif // __iosupp_h__ +//--------------------------------------------------------------------------------- -diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-new/newlib/libc/include/sys/statvfs.h ---- newlib-1.15.0/newlib/libc/include/sys/statvfs.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/newlib/libc/include/sys/statvfs.h Fri Oct 26 03:44:59 2007 +diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/statvfs.h newlib-1.16.0-ppc/newlib/libc/include/sys/statvfs.h +--- newlib-1.16.0/newlib/libc/include/sys/statvfs.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/newlib/libc/include/sys/statvfs.h Fri Apr 25 13:13:32 2008 @@ -0,0 +1,35 @@ +#ifndef _SYS_STATVFS_H +#define _SYS_STATVFS_H @@ -6068,9 +6040,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/statvfs.h newlib-1.15.0-new/ne + +#endif // _SYS_STATVFS_H \ No newline at end of file -diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newlib/libc/include/sys/types.h ---- newlib-1.15.0/newlib/libc/include/sys/types.h Wed Sep 13 23:09:27 2006 -+++ newlib-1.15.0-new/newlib/libc/include/sys/types.h Mon Aug 27 11:10:04 2007 +diff -Nbaur newlib-1.16.0/newlib/libc/include/sys/types.h newlib-1.16.0-ppc/newlib/libc/include/sys/types.h +--- newlib-1.16.0/newlib/libc/include/sys/types.h Tue Sep 18 21:05:17 2007 ++++ newlib-1.16.0-ppc/newlib/libc/include/sys/types.h Fri Apr 25 13:13:32 2008 @@ -130,7 +130,7 @@ defined(__sparc__) || defined(__SPU__) typedef unsigned long ino_t; @@ -6080,16 +6052,7 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newl #endif #endif /*__CYGWIN__*/ -@@ -163,7 +163,7 @@ - typedef unsigned long long dev_t; - #else - #ifndef __CYGWIN__ --typedef short dev_t; -+typedef int dev_t; - #endif - #endif - -@@ -261,6 +261,9 @@ +@@ -252,6 +252,9 @@ typedef unsigned long useconds_t; typedef long suseconds_t; @@ -6099,9 +6062,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/include/sys/types.h newlib-1.15.0-new/newl #include -diff -Nbaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-new/newlib/libc/locale/locale.c ---- newlib-1.15.0/newlib/libc/locale/locale.c Fri Apr 23 22:44:21 2004 -+++ newlib-1.15.0-new/newlib/libc/locale/locale.c Sat Nov 3 18:13:01 2007 +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 Fri Apr 23 22:44:21 2004 ++++ newlib-1.16.0-ppc/newlib/libc/locale/locale.c Fri Apr 25 13:13:32 2008 @@ -95,7 +95,7 @@ #ifdef __CYGWIN__ int __declspec(dllexport) __mb_cur_max = 1; @@ -6144,9 +6107,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/locale/locale.c newlib-1.15.0-new/newlib/l } if (category == LC_CTYPE) -diff -Nbaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/lock.h ---- newlib-1.15.0/newlib/libc/machine/powerpc/sys/lock.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/lock.h Fri Feb 15 00:50:23 2008 +diff -Nbaur newlib-1.16.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.16.0-ppc/newlib/libc/machine/powerpc/sys/lock.h +--- newlib-1.16.0/newlib/libc/machine/powerpc/sys/lock.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/newlib/libc/machine/powerpc/sys/lock.h Fri Apr 25 13:13:32 2008 @@ -0,0 +1,53 @@ +#ifndef __SYS_LOCK_H__ +#define __SYS_LOCK_H__ @@ -6201,9 +6164,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.15.0-n +extern int __libc_lock_release(int*); + +#endif /* __SYS_LOCK_H__ */ -diff -Nbaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/stdio.h ---- newlib-1.15.0/newlib/libc/machine/powerpc/sys/stdio.h Thu Jan 1 00:00:00 1970 -+++ newlib-1.15.0-new/newlib/libc/machine/powerpc/sys/stdio.h Fri Feb 15 00:50:58 2008 +diff -Nbaur newlib-1.16.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.16.0-ppc/newlib/libc/machine/powerpc/sys/stdio.h +--- newlib-1.16.0/newlib/libc/machine/powerpc/sys/stdio.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.16.0-ppc/newlib/libc/machine/powerpc/sys/stdio.h Fri Apr 25 13:13:32 2008 @@ -0,0 +1,25 @@ +#ifndef _NEWLIB_STDIO_H +#define _NEWLIB_STDIO_H @@ -6230,9 +6193,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.15.0- + +#endif /* _NEWLIB_STDIO_H */ + -diff -Nbaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-new/newlib/libc/misc/init.c ---- newlib-1.15.0/newlib/libc/misc/init.c Fri Jan 7 18:04:39 2005 -+++ newlib-1.15.0-new/newlib/libc/misc/init.c Mon Jul 30 19:49:28 2007 +diff -Nbaur newlib-1.16.0/newlib/libc/misc/init.c newlib-1.16.0-ppc/newlib/libc/misc/init.c +--- newlib-1.16.0/newlib/libc/misc/init.c Fri Jan 7 18:04:39 2005 ++++ newlib-1.16.0-ppc/newlib/libc/misc/init.c Fri Apr 25 13:13:32 2008 @@ -57,4 +57,8 @@ _fini (); @@ -6242,32 +6205,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/misc/init.c newlib-1.15.0-new/newlib/libc/ +#error why am I not defined + #endif -diff -Nbaur newlib-1.15.0/newlib/libc/stdio/vfprintf.c newlib-1.15.0-new/newlib/libc/stdio/vfprintf.c ---- newlib-1.15.0/newlib/libc/stdio/vfprintf.c Tue Nov 14 21:29:26 2006 -+++ newlib-1.15.0-new/newlib/libc/stdio/vfprintf.c Tue Oct 16 07:13:40 2007 -@@ -1000,10 +1000,17 @@ - case 's': - case 'S': - sign = '\0'; -- if ((cp = GET_ARG (N, ap, char_ptr_t)) == NULL) { -+ cp = GET_ARG (N, ap, char_ptr_t); -+#ifndef __OPTIMIZE_SIZE__ -+ /* Behavior is undefined if the user passed a -+ NULL string when precision is not 0. -+ However, if we are not optimizing for size, -+ we might as well mirror glibc behavior. */ -+ if (cp == NULL) { - cp = "(null)"; -- size = 6; -+ size = ((unsigned) prec > 6U) ? 6 : prec; - } -+#endif /* __OPTIMIZE_SIZE__ */ - else if (ch == 'S' || (flags & LONGINT)) { - mbstate_t ps; - _CONST wchar_t *wcp; -diff -Nbaur newlib-1.15.0/newlib/libc/stdlib/mlock.c newlib-1.15.0-new/newlib/libc/stdlib/mlock.c ---- newlib-1.15.0/newlib/libc/stdlib/mlock.c Fri Oct 28 22:21:07 2005 -+++ newlib-1.15.0-new/newlib/libc/stdlib/mlock.c Sat Feb 16 01:12:43 2008 +diff -Nbaur newlib-1.16.0/newlib/libc/stdlib/mlock.c newlib-1.16.0-ppc/newlib/libc/stdlib/mlock.c +--- newlib-1.16.0/newlib/libc/stdlib/mlock.c Fri Oct 28 22:21:07 2005 ++++ newlib-1.16.0-ppc/newlib/libc/stdlib/mlock.c Fri Apr 25 13:13:32 2008 @@ -39,6 +39,7 @@ #include #include @@ -6283,9 +6223,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/stdlib/mlock.c newlib-1.15.0-new/newlib/li - +*/ #endif -diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/Makefile.am newlib-1.15.0-new/newlib/libc/syscalls/Makefile.am ---- newlib-1.15.0/newlib/libc/syscalls/Makefile.am Mon May 1 23:01:07 2006 -+++ newlib-1.15.0-new/newlib/libc/syscalls/Makefile.am Fri Feb 16 09:13:45 2007 +diff -Nbaur newlib-1.16.0/newlib/libc/syscalls/Makefile.am newlib-1.16.0-ppc/newlib/libc/syscalls/Makefile.am +--- newlib-1.16.0/newlib/libc/syscalls/Makefile.am Mon May 1 23:01:07 2006 ++++ newlib-1.16.0-ppc/newlib/libc/syscalls/Makefile.am Fri Apr 25 13:13:32 2008 @@ -21,7 +21,6 @@ sysunlink.c \ syswrite.c @@ -6294,9 +6234,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/Makefile.am newlib-1.15.0-new/new ## Weed out EL/IX level 3 interfaces if necessary if ELIX_LEVEL_1 ELIX_SOURCES = -diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-new/newlib/libc/syscalls/syslink.c ---- newlib-1.15.0/newlib/libc/syscalls/syslink.c Tue Jun 3 20:48:08 2003 -+++ newlib-1.15.0-new/newlib/libc/syscalls/syslink.c Fri Feb 16 09:13:45 2007 +diff -Nbaur newlib-1.16.0/newlib/libc/syscalls/syslink.c newlib-1.16.0-ppc/newlib/libc/syscalls/syslink.c +--- newlib-1.16.0/newlib/libc/syscalls/syslink.c Tue Jun 3 20:48:08 2003 ++++ newlib-1.16.0-ppc/newlib/libc/syscalls/syslink.c Fri Apr 25 13:13:32 2008 @@ -4,8 +4,8 @@ int @@ -6308,9 +6248,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/syslink.c newlib-1.15.0-new/newli { #ifdef REENTRANT_SYSCALLS_PROVIDED return _link_r (_REENT, old, new); -diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-new/newlib/libc/syscalls/sysunlink.c ---- newlib-1.15.0/newlib/libc/syscalls/sysunlink.c Tue Jun 3 20:48:08 2003 -+++ newlib-1.15.0-new/newlib/libc/syscalls/sysunlink.c Fri Feb 16 09:13:45 2007 +diff -Nbaur newlib-1.16.0/newlib/libc/syscalls/sysunlink.c newlib-1.16.0-ppc/newlib/libc/syscalls/sysunlink.c +--- newlib-1.16.0/newlib/libc/syscalls/sysunlink.c Tue Jun 3 20:48:08 2003 ++++ newlib-1.16.0-ppc/newlib/libc/syscalls/sysunlink.c Fri Apr 25 13:13:32 2008 @@ -4,7 +4,7 @@ int @@ -6320,9 +6260,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/syscalls/sysunlink.c newlib-1.15.0-new/new { #ifdef REENTRANT_SYSCALLS_PROVIDED return _unlink_r (_REENT, file); -diff -Nbaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-new/newlib/libc/time/asctime_r.c ---- newlib-1.15.0/newlib/libc/time/asctime_r.c Wed May 10 18:58:29 2000 -+++ newlib-1.15.0-new/newlib/libc/time/asctime_r.c Sun Feb 10 06:48:03 2008 +diff -Nbaur newlib-1.16.0/newlib/libc/time/asctime_r.c newlib-1.16.0-ppc/newlib/libc/time/asctime_r.c +--- newlib-1.16.0/newlib/libc/time/asctime_r.c Wed May 10 18:58:29 2000 ++++ newlib-1.16.0-ppc/newlib/libc/time/asctime_r.c Fri Apr 25 13:13:32 2008 @@ -18,7 +18,7 @@ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; @@ -6332,9 +6272,9 @@ diff -Nbaur newlib-1.15.0/newlib/libc/time/asctime_r.c newlib-1.15.0-new/newlib/ day_name[tim_p->tm_wday], mon_name[tim_p->tm_mon], tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min, -diff -Nbaur newlib-1.15.0/newlib/libc/time/strftime.c newlib-1.15.0-new/newlib/libc/time/strftime.c ---- newlib-1.15.0/newlib/libc/time/strftime.c Fri Feb 25 22:31:21 2005 -+++ newlib-1.15.0-new/newlib/libc/time/strftime.c Sun Feb 10 06:50:43 2008 +diff -Nbaur newlib-1.16.0/newlib/libc/time/strftime.c newlib-1.16.0-ppc/newlib/libc/time/strftime.c +--- newlib-1.16.0/newlib/libc/time/strftime.c Fri Feb 25 22:31:21 2005 ++++ newlib-1.16.0-ppc/newlib/libc/time/strftime.c Fri Apr 25 13:13:32 2008 @@ -424,7 +424,7 @@ int century = tim_p->tm_year >= 0 ? tim_p->tm_year / 100 + YEAR_BASE / 100