diff --git a/dkarm-eabi/patches/newlib-1.19.0.patch b/dkarm-eabi/patches/newlib-1.19.0.patch index 58fc825..666038e 100644 --- a/dkarm-eabi/patches/newlib-1.19.0.patch +++ b/dkarm-eabi/patches/newlib-1.19.0.patch @@ -70,7 +70,7 @@ diff -Nbaur newlib-1.19.0/libgloss/configure.in newlib-1.19.0-arm/libgloss/confi AS=${AS-as} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/Makefile.in newlib-1.19.0-arm/libgloss/libsysbase/Makefile.in --- newlib-1.19.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-arm/libgloss/libsysbase/Makefile.in 2010-12-18 14:40:27.000000000 +0000 ++++ newlib-1.19.0-arm/libgloss/libsysbase/Makefile.in 2011-01-19 20:38:50.000000000 +0000 @@ -0,0 +1,148 @@ +# Copyright (c) 1998 Cygnus Support +# @@ -142,7 +142,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/Makefile.in newlib-1.19.0-arm/libg +OBJS = abort.o iosupport.o close.o environ.o execve.o fork.o fstat.o getpid.o gettod.o \ + isatty.o kill.o link.o lseek.o open.o read.o sbrk.o stat.o times.o \ + unlink.o wait.o write.o _exit.o malloc_vars.o \ -+ chdir.o mkdir.o dir.o rename.o build_argv.o statvfs.o \ ++ chdir.o mkdir.o rename.o build_argv.o statvfs.o \ + flock.o syscall_support.o handle_manager.o truncate.o ftruncate.o dirent.o fsync.o \ + fchmod.o chmod.o + @@ -4723,18 +4723,18 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/configure.in newlib-1.19.0-arm/lib +AC_OUTPUT + + -diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-arm/libgloss/libsysbase/dir.c ---- newlib-1.19.0/libgloss/libsysbase/dir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-arm/libgloss/libsysbase/dir.c 2010-12-18 15:27:28.000000000 +0000 -@@ -0,0 +1,93 @@ -+#include +diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libgloss/libsysbase/dirent.c +--- newlib-1.19.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-arm/libgloss/libsysbase/dirent.c 2011-01-19 22:13:21.000000000 +0000 +@@ -0,0 +1,246 @@ ++#include +#include -+#include +#include -+#include ++#include ++#include ++#include + -+ -+DIR_ITER * diropen (const char *path) { ++static DIR_ITER * __diropen (const char *path) { + struct _reent *r = _REENT; + DIR_ITER *handle = NULL; + DIR_ITER *dir = NULL; @@ -4767,7 +4767,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-arm/libgloss/l + return handle; +} + -+int dirreset (DIR_ITER *dirState) { ++static int __dirreset (DIR_ITER *dirState) { + struct _reent *r = _REENT; + int ret = -1; + int dev = 0; @@ -4784,7 +4784,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-arm/libgloss/l + return ret; +} + -+int dirnext (DIR_ITER *dirState, char *filename, struct stat *filestat) { ++static int __dirnext (DIR_ITER *dirState, char *filename, struct stat *filestat) { + struct _reent *r = _REENT; + int ret = -1; + int dev = 0; @@ -4801,7 +4801,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-arm/libgloss/l + return ret; +} + -+int dirclose (DIR_ITER *dirState) { ++static int __dirclose (DIR_ITER *dirState) { + struct _reent *r = _REENT; + int ret = -1; + int dev = 0; @@ -4820,16 +4820,8 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-arm/libgloss/l + return ret; +} + -diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libgloss/libsysbase/dirent.c ---- newlib-1.19.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-arm/libgloss/libsysbase/dirent.c 2010-12-18 15:27:50.000000000 +0000 -@@ -0,0 +1,157 @@ -+#include -+#include -+#include -+#include -+#include -+#include ++ ++ + +DIR* opendir (const char *dirname) { + DIR* dirp = malloc (sizeof(DIR)); @@ -4838,7 +4830,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libglos + return NULL; + } + -+ dirp->dirData = diropen (dirname); ++ dirp->dirData = __diropen (dirname); + if (!dirp->dirData) { + free (dirp); + return NULL; @@ -4860,7 +4852,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libglos + return -1; + } + -+ res = dirclose (dirp->dirData); ++ res = __dirclose (dirp->dirData); + free (dirp); + return res; +} @@ -4877,7 +4869,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libglos + return NULL; + } + -+ res = dirnext (dirp->dirData, filename, &st); ++ res = __dirnext (dirp->dirData, filename, &st); + + if (res < 0) { + if (errno == ENOENT) { @@ -4912,7 +4904,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libglos + return EBADF; + } + -+ res = dirnext (dirp->dirData, filename, &st); ++ res = __dirnext (dirp->dirData, filename, &st); + + if (res < 0) { + res = errno; @@ -4946,7 +4938,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libglos + return; + } + -+ dirreset (dirp->dirData); ++ __dirreset (dirp->dirData); + dirp->position = 0; +} + @@ -4961,13 +4953,13 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-arm/libglos + if (dirp->position > loc) { + // The entry we want is before the one we have, + // so we have to start again from the begining -+ dirreset (dirp->dirData); ++ __dirreset (dirp->dirData); + dirp->position = 0; + } + + // Keep reading entries until we reach the one we want + while ((dirp->position < loc) && -+ (dirnext (dirp->dirData, filename, NULL) >= 0)) ++ (__dirnext (dirp->dirData, filename, NULL) >= 0)) + { + dirp->position += 1; + } @@ -6702,8 +6694,8 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/dirent.h newlib-1.19.0-arm/new \ No newline at end of file diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/iosupport.h newlib-1.19.0-arm/newlib/libc/include/sys/iosupport.h --- newlib-1.19.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-arm/newlib/libc/include/sys/iosupport.h 2010-12-18 16:49:59.000000000 +0000 -@@ -0,0 +1,93 @@ ++++ newlib-1.19.0-arm/newlib/libc/include/sys/iosupport.h 2011-01-19 20:42:05.000000000 +0000 +@@ -0,0 +1,88 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ +#define __iosupp_h__ @@ -6784,11 +6776,6 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/iosupport.h newlib-1.19.0-arm/ +int RemoveDevice(const char* name); +void setDefaultDevice( int device ); +const devoptab_t* GetDeviceOpTab (const char *name); -+ -+DIR_ITER* diropen (const char *path); -+int dirreset (DIR_ITER *dirState); -+int dirnext (DIR_ITER *dirState, char *filename, struct stat *filestat); -+int dirclose (DIR_ITER *dirState); + +#ifdef __cplusplus +} diff --git a/dkppc/patches/newlib-1.19.0.patch b/dkppc/patches/newlib-1.19.0.patch index 007970d..919fef9 100644 --- a/dkppc/patches/newlib-1.19.0.patch +++ b/dkppc/patches/newlib-1.19.0.patch @@ -1,6 +1,6 @@ diff -Nbaur newlib-1.19.0/libgloss/configure newlib-1.19.0-ppc/libgloss/configure --- newlib-1.19.0/libgloss/configure 2010-12-02 19:35:47.000000000 +0000 -+++ newlib-1.19.0-ppc/libgloss/configure 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/configure 2011-01-13 13:58:53.000000000 +0000 @@ -1822,6 +1822,7 @@ @@ -30,7 +30,7 @@ diff -Nbaur newlib-1.19.0/libgloss/configure newlib-1.19.0-ppc/libgloss/configur ac_cs_awk_cr='\\r' diff -Nbaur newlib-1.19.0/libgloss/configure.in newlib-1.19.0-ppc/libgloss/configure.in --- newlib-1.19.0/libgloss/configure.in 2010-12-02 19:35:47.000000000 +0000 -+++ newlib-1.19.0-ppc/libgloss/configure.in 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/configure.in 2011-01-13 13:58:53.000000000 +0000 @@ -2,6 +2,7 @@ AC_PREREQ(2.59) AC_INIT([libgloss],[LIBGLOSS_VERSION]) @@ -60,9 +60,184 @@ diff -Nbaur newlib-1.19.0/libgloss/configure.in newlib-1.19.0-ppc/libgloss/confi LIB_AC_PROG_CC AS=${AS-as} AC_SUBST(AS) +diff -Nbaur newlib-1.19.0/libgloss/libsysbase/Makefile.in newlib-1.19.0-ppc/libgloss/libsysbase/Makefile.in +--- newlib-1.19.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/Makefile.in 2011-01-19 18:25:38.000000000 +0000 +@@ -0,0 +1,148 @@ ++# Copyright (c) 1998 Cygnus Support ++# ++# The authors hereby grant permission to use, copy, modify, distribute, ++# and license this software and its documentation for any purpose, provided ++# that existing copyright notices are retained in all copies and that this ++# notice is included verbatim in any distributions. No written agreement, ++# license, or royalty fee is required for any of the authorized uses. ++# Modifications to this software may be copyrighted by their authors ++# and need not follow the licensing terms described here, provided that ++# the new terms are clearly indicated on the first page of each file where ++# they apply. ++ ++DESTDIR = ++VPATH = @srcdir@ ++srcdir = @srcdir@ ++objdir = . ++srcroot = $(srcdir)/../.. ++objroot = $(objdir)/../.. ++ ++prefix = @prefix@ ++exec_prefix = @exec_prefix@ ++ ++host_alias = @host_alias@ ++target_alias = @target_alias@ ++program_transform_name = @program_transform_name@ ++ ++bindir = @bindir@ ++libdir = @libdir@ ++tooldir = $(exec_prefix)/$(target_alias) ++ ++# Multilib support variables. ++# TOP is used instead of MULTI{BUILD,SRC}TOP. ++MULTIDIRS = ++MULTISUBDIR = ++MULTIDO = true ++MULTICLEAN = true ++ ++INSTALL = @INSTALL@ ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ ++INSTALL_DATA = @INSTALL_DATA@ ++ ++SHELL = /bin/sh ++ ++CC = @CC@ ++ ++#AS = @AS@ ++AS = `if [ -f ${objroot}/../gas/as.new ] ; \ ++ then echo ${objroot}/../gas/as.new ; \ ++ else echo as ; fi` ++ ++AR = @AR@ ++ ++#LD = @LD@ ++LD = `if [ -f ${objroot}/../ld/ld.new ] ; \ ++ then echo ${objroot}/../ld/ld.new ; \ ++ else echo ld ; fi` ++ ++RANLIB = @RANLIB@ ++ ++OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ ++ then echo ${objroot}/../binutils/objdump ; \ ++ else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` ++OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ ++ then echo ${objroot}/../binutils/objcopy ; \ ++ else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` ++ ++# object files needed ++OBJS = abort.o iosupport.o close.o environ.o execve.o fork.o fstat.o getpid.o gettod.o \ ++ isatty.o kill.o link.o lseek.o open.o read.o sbrk.o stat.o \ ++ unlink.o wait.o write.o _exit.o malloc_vars.o \ ++ chdir.o mkdir.o rename.o build_argv.o statvfs.o \ ++ flock.o syscall_support.o handle_manager.o truncate.o ftruncate.o dirent.o fsync.o \ ++ fchmod.o chmod.o ++ ++# Object files specific to particular targets. ++EVALOBJS = ${OBJS} ++ ++GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \ ++ then echo -L${objroot}/../gcc ; fi` ++ ++OUTPUTS = libsysbase.a ++ ++NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` ++NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi` ++ ++INCLUDES = -I. -I$(srcdir)/.. ++# Note that when building the library, ${MULTILIB} is not the way multilib ++# options are passed; they're passed in $(CFLAGS). ++CFLAGS_FOR_TARGET = ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} ++LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS} ++AR_FLAGS = qc ++ ++.c.o: ++ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< ++ ++.C.o: ++ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< ++.s.o: ++ $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< ++ ++# ++# GCC knows to run the preprocessor on .S files before it assembles them. ++# ++.S.o: ++ $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< ++ ++# ++# this is a bogus target that'll produce an assembler from the ++# C source with the right compiler options. this is so we can ++# track down code generation or debug symbol bugs. ++# ++.c.s: ++ $(CC) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $(CFLAGS) $< ++ ++all: ${OUTPUTS} ++ ++# ++# here's where we build the library for each target ++# ++ ++libsysbase.a: $(EVALOBJS) ++ ${AR} ${ARFLAGS} $@ $(EVALOBJS) ++ ${RANLIB} $@ ++ ++doc: ++ ++clean mostlyclean: ++ rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x ++ ++distclean maintainer-clean realclean: clean ++ rm -f Makefile config.status $(OUTPUTS) ++ ++.PHONY: install info install-info clean-info ++install: ++ @for outputs in ${OUTPUTS}; do\ ++ mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ ++ $(INSTALL_PROGRAM) $${outputs} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ ++ done ++ ++info: ++install-info: ++clean-info: ++ ++Makefile: Makefile.in config.status @host_makefile_frag_path@ ++ $(SHELL) config.status ++ ++config.status: configure ++ $(SHELL) config.status --recheck +diff -Nbaur newlib-1.19.0/libgloss/libsysbase/_exit.c newlib-1.19.0-ppc/libgloss/libsysbase/_exit.c +--- newlib-1.19.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/_exit.c 2011-01-13 13:58:53.000000000 +0000 +@@ -0,0 +1,19 @@ ++/* Stub version of _exit. */ ++ ++#include ++#include "config.h" ++#include <_ansi.h> ++#include <_syslist.h> ++#include ++ ++_VOID ++_DEFUN (_exit, (rc), ++ int rc) ++{ ++ ++ if ( __syscalls.exit ) { ++ __syscalls.exit(rc); ++ } ++ ++ while(1); ++} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/abort.c newlib-1.19.0-ppc/libgloss/libsysbase/abort.c --- newlib-1.19.0/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/abort.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/abort.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,8 @@ +#include +#include @@ -74,7 +249,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/abort.c newlib-1.19.0-ppc/libgloss + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/acconfig.h newlib-1.19.0-ppc/libgloss/libsysbase/acconfig.h --- newlib-1.19.0/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/acconfig.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/acconfig.h 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,29 @@ +/* Name of package. */ +#undef PACKAGE @@ -107,7 +282,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/acconfig.h newlib-1.19.0-ppc/libgl +#undef __SYMBOL_PREFIX diff -Nbaur newlib-1.19.0/libgloss/libsysbase/aclocal.m4 newlib-1.19.0-ppc/libgloss/libsysbase/aclocal.m4 --- newlib-1.19.0/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/aclocal.m4 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/aclocal.m4 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,344 @@ +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- + @@ -455,7 +630,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/aclocal.m4 newlib-1.19.0-ppc/libgl +m4_include([../acinclude.m4]) diff -Nbaur newlib-1.19.0/libgloss/libsysbase/build_argv.c newlib-1.19.0-ppc/libgloss/libsysbase/build_argv.c --- newlib-1.19.0/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/build_argv.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/build_argv.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,31 @@ +struct __argv { + int argvMagic; @@ -490,7 +665,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/build_argv.c newlib-1.19.0-ppc/lib +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/chdir.c newlib-1.19.0-ppc/libgloss/libsysbase/chdir.c --- newlib-1.19.0/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/chdir.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/chdir.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,176 @@ +#include +#include @@ -670,7 +845,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/chdir.c newlib-1.19.0-ppc/libgloss +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/chmod.c newlib-1.19.0-ppc/libgloss/libsysbase/chmod.c --- newlib-1.19.0/libgloss/libsysbase/chmod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/chmod.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/chmod.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,25 @@ +#include "config.h" +#include <_ansi.h> @@ -699,7 +874,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/chmod.c newlib-1.19.0-ppc/libgloss + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/close.c newlib-1.19.0-ppc/libgloss/libsysbase/close.c --- newlib-1.19.0/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/close.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/close.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,42 @@ +#include "config.h" +#include <_ansi.h> @@ -745,7 +920,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/close.c newlib-1.19.0-ppc/libgloss +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/config.h.in newlib-1.19.0-ppc/libgloss/libsysbase/config.h.in --- newlib-1.19.0/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/config.h.in 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/config.h.in 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,25 @@ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + @@ -774,7 +949,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/config.h.in newlib-1.19.0-ppc/libg +#undef __SYMBOL_PREFIX diff -Nbaur newlib-1.19.0/libgloss/libsysbase/configure newlib-1.19.0-ppc/libgloss/libsysbase/configure --- newlib-1.19.0/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/configure 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/configure 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,3549 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. @@ -4327,7 +4502,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/configure newlib-1.19.0-ppc/libglo + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/configure.in newlib-1.19.0-ppc/libgloss/libsysbase/configure.in --- newlib-1.19.0/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/configure.in 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/configure.in 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,207 @@ +# Copyright (c) 1995, 1996 Cygnus Support +# @@ -4536,19 +4711,18 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/configure.in newlib-1.19.0-ppc/lib +AC_OUTPUT + + -diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-ppc/libgloss/libsysbase/dir.c ---- newlib-1.19.0/libgloss/libsysbase/dir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/dir.c 2011-01-17 13:18:08.000000000 +0000 -@@ -0,0 +1,94 @@ -+#include +diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libgloss/libsysbase/dirent.c +--- newlib-1.19.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/dirent.c 2011-01-19 22:14:23.000000000 +0000 +@@ -0,0 +1,246 @@ ++#include +#include -+#include +#include -+#include -+#include ++#include ++#include ++#include + -+ -+DIR_ITER * diropen (const char *path) { ++static DIR_ITER * __diropen (const char *path) { + struct _reent *r = _REENT; + DIR_ITER *handle = NULL; + DIR_ITER *dir = NULL; @@ -4581,7 +4755,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-ppc/libgloss/l + return handle; +} + -+int dirreset (DIR_ITER *dirState) { ++static int __dirreset (DIR_ITER *dirState) { + struct _reent *r = _REENT; + int ret = -1; + int dev = 0; @@ -4598,7 +4772,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-ppc/libgloss/l + return ret; +} + -+int dirnext (DIR_ITER *dirState, char *filename, struct stat *filestat) { ++static int __dirnext (DIR_ITER *dirState, char *filename, struct stat *filestat) { + struct _reent *r = _REENT; + int ret = -1; + int dev = 0; @@ -4615,7 +4789,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-ppc/libgloss/l + return ret; +} + -+int dirclose (DIR_ITER *dirState) { ++static int __dirclose (DIR_ITER *dirState) { + struct _reent *r = _REENT; + int ret = -1; + int dev = 0; @@ -4634,16 +4808,8 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dir.c newlib-1.19.0-ppc/libgloss/l + return ret; +} + -diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libgloss/libsysbase/dirent.c ---- newlib-1.19.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/dirent.c 2011-01-17 13:18:08.000000000 +0000 -@@ -0,0 +1,157 @@ -+#include -+#include -+#include -+#include -+#include -+#include ++ ++ + +DIR* opendir (const char *dirname) { + DIR* dirp = malloc (sizeof(DIR)); @@ -4652,7 +4818,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libglos + return NULL; + } + -+ dirp->dirData = diropen (dirname); ++ dirp->dirData = __diropen (dirname); + if (!dirp->dirData) { + free (dirp); + return NULL; @@ -4674,7 +4840,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libglos + return -1; + } + -+ res = dirclose (dirp->dirData); ++ res = __dirclose (dirp->dirData); + free (dirp); + return res; +} @@ -4691,7 +4857,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libglos + return NULL; + } + -+ res = dirnext (dirp->dirData, filename, &st); ++ res = __dirnext (dirp->dirData, filename, &st); + + if (res < 0) { + if (errno == ENOENT) { @@ -4726,7 +4892,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libglos + return EBADF; + } + -+ res = dirnext (dirp->dirData, filename, &st); ++ res = __dirnext (dirp->dirData, filename, &st); + + if (res < 0) { + res = errno; @@ -4760,7 +4926,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libglos + return; + } + -+ dirreset (dirp->dirData); ++ __dirreset (dirp->dirData); + dirp->position = 0; +} + @@ -4775,13 +4941,13 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libglos + if (dirp->position > loc) { + // The entry we want is before the one we have, + // so we have to start again from the begining -+ dirreset (dirp->dirData); ++ __dirreset (dirp->dirData); + dirp->position = 0; + } + + // Keep reading entries until we reach the one we want + while ((dirp->position < loc) && -+ (dirnext (dirp->dirData, filename, NULL) >= 0)) ++ (__dirnext (dirp->dirData, filename, NULL) >= 0)) + { + dirp->position += 1; + } @@ -4797,7 +4963,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/dirent.c newlib-1.19.0-ppc/libglos +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/environ.c newlib-1.19.0-ppc/libgloss/libsysbase/environ.c --- newlib-1.19.0/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/environ.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/environ.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,6 @@ +/* + * Version of environ for no OS. @@ -4807,7 +4973,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/environ.c newlib-1.19.0-ppc/libglo +char **environ = __env; diff -Nbaur newlib-1.19.0/libgloss/libsysbase/execve.c newlib-1.19.0-ppc/libgloss/libsysbase/execve.c --- newlib-1.19.0/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/execve.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/execve.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,31 @@ +/* + * Stub version of execve. @@ -4840,32 +5006,9 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/execve.c newlib-1.19.0-ppc/libglos + return -1; +} + -diff -Nbaur newlib-1.19.0/libgloss/libsysbase/_exit.c newlib-1.19.0-ppc/libgloss/libsysbase/_exit.c ---- newlib-1.19.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/_exit.c 2011-01-17 13:18:08.000000000 +0000 -@@ -0,0 +1,19 @@ -+/* Stub version of _exit. */ -+ -+#include -+#include "config.h" -+#include <_ansi.h> -+#include <_syslist.h> -+#include -+ -+_VOID -+_DEFUN (_exit, (rc), -+ int rc) -+{ -+ -+ if ( __syscalls.exit ) { -+ __syscalls.exit(rc); -+ } -+ -+ while(1); -+} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fchmod.c newlib-1.19.0-ppc/libgloss/libsysbase/fchmod.c --- newlib-1.19.0/libgloss/libsysbase/fchmod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/fchmod.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/fchmod.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,30 @@ +#include "config.h" +#include <_ansi.h> @@ -4899,7 +5042,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fchmod.c newlib-1.19.0-ppc/libglos +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/flock.c newlib-1.19.0-ppc/libgloss/libsysbase/flock.c --- newlib-1.19.0/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/flock.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/flock.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,21 @@ +#include +#include <_ansi.h> @@ -4924,7 +5067,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/flock.c newlib-1.19.0-ppc/libgloss +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fork.c newlib-1.19.0-ppc/libgloss/libsysbase/fork.c --- newlib-1.19.0/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/fork.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/fork.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,25 @@ +/* + * Stub version of fork. @@ -4953,7 +5096,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fork.c newlib-1.19.0-ppc/libgloss/ +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fstat.c newlib-1.19.0-ppc/libgloss/libsysbase/fstat.c --- newlib-1.19.0/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/fstat.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/fstat.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,50 @@ +#include "config.h" +#include <_ansi.h> @@ -5007,7 +5150,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fstat.c newlib-1.19.0-ppc/libgloss +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fsync.c newlib-1.19.0-ppc/libgloss/libsysbase/fsync.c --- newlib-1.19.0/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/fsync.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/fsync.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,36 @@ +#include "config.h" +#include <_ansi.h> @@ -5047,7 +5190,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/fsync.c newlib-1.19.0-ppc/libgloss +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/ftruncate.c newlib-1.19.0-ppc/libgloss/libsysbase/ftruncate.c --- newlib-1.19.0/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/ftruncate.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/ftruncate.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5088,7 +5231,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/ftruncate.c newlib-1.19.0-ppc/libg +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/getpid.c newlib-1.19.0-ppc/libgloss/libsysbase/getpid.c --- newlib-1.19.0/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/getpid.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/getpid.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,21 @@ +#include "config.h" +#include <_ansi.h> @@ -5113,7 +5256,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/getpid.c newlib-1.19.0-ppc/libglos + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/gettod.c newlib-1.19.0-ppc/libgloss/libsysbase/gettod.c --- newlib-1.19.0/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/gettod.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/gettod.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,39 @@ +/* + * Stub version of gettimeofday. @@ -5156,7 +5299,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/gettod.c newlib-1.19.0-ppc/libglos + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/handle_manager.c newlib-1.19.0-ppc/libgloss/libsysbase/handle_manager.c --- newlib-1.19.0/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/handle_manager.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/handle_manager.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,49 @@ +#include +#include @@ -5209,7 +5352,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/handle_manager.c newlib-1.19.0-ppc +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/handle_manager.h newlib-1.19.0-ppc/libgloss/libsysbase/handle_manager.h --- newlib-1.19.0/libgloss/libsysbase/handle_manager.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/handle_manager.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/handle_manager.h 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,10 @@ +#ifndef __HANDLE_MANAGER_H__ +#define __HANDLE_MANAGER_H__ @@ -5223,7 +5366,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/handle_manager.h newlib-1.19.0-ppc +#endif diff -Nbaur newlib-1.19.0/libgloss/libsysbase/iosupport.c newlib-1.19.0-ppc/libgloss/libsysbase/iosupport.c --- newlib-1.19.0/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/iosupport.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/iosupport.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,122 @@ +#include +#include @@ -5349,7 +5492,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/iosupport.c newlib-1.19.0-ppc/libg + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/isatty.c newlib-1.19.0-ppc/libgloss/libsysbase/isatty.c --- newlib-1.19.0/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/isatty.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/isatty.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,15 @@ +#include "config.h" +#include <_ansi.h> @@ -5368,7 +5511,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/isatty.c newlib-1.19.0-ppc/libglos +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/kill.c newlib-1.19.0-ppc/libgloss/libsysbase/kill.c --- newlib-1.19.0/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/kill.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/kill.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,23 @@ +/* + * Stub version of kill. @@ -5395,7 +5538,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/kill.c newlib-1.19.0-ppc/libgloss/ +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/link.c newlib-1.19.0-ppc/libgloss/libsysbase/link.c --- newlib-1.19.0/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/link.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/link.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5436,7 +5579,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/link.c newlib-1.19.0-ppc/libgloss/ + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/lseek.c newlib-1.19.0-ppc/libgloss/libsysbase/lseek.c --- newlib-1.19.0/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/lseek.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/lseek.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,55 @@ +#include "config.h" +#include <_ansi.h> @@ -5493,167 +5636,15 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/lseek.c newlib-1.19.0-ppc/libgloss + return ret; + +} -diff -Nbaur newlib-1.19.0/libgloss/libsysbase/Makefile.in newlib-1.19.0-ppc/libgloss/libsysbase/Makefile.in ---- newlib-1.19.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/Makefile.in 2011-01-17 13:18:08.000000000 +0000 -@@ -0,0 +1,148 @@ -+# Copyright (c) 1998 Cygnus Support -+# -+# The authors hereby grant permission to use, copy, modify, distribute, -+# and license this software and its documentation for any purpose, provided -+# that existing copyright notices are retained in all copies and that this -+# notice is included verbatim in any distributions. No written agreement, -+# license, or royalty fee is required for any of the authorized uses. -+# Modifications to this software may be copyrighted by their authors -+# and need not follow the licensing terms described here, provided that -+# the new terms are clearly indicated on the first page of each file where -+# they apply. -+ -+DESTDIR = -+VPATH = @srcdir@ -+srcdir = @srcdir@ -+objdir = . -+srcroot = $(srcdir)/../.. -+objroot = $(objdir)/../.. -+ -+prefix = @prefix@ -+exec_prefix = @exec_prefix@ -+ -+host_alias = @host_alias@ -+target_alias = @target_alias@ -+program_transform_name = @program_transform_name@ -+ -+bindir = @bindir@ -+libdir = @libdir@ -+tooldir = $(exec_prefix)/$(target_alias) -+ -+# Multilib support variables. -+# TOP is used instead of MULTI{BUILD,SRC}TOP. -+MULTIDIRS = -+MULTISUBDIR = -+MULTIDO = true -+MULTICLEAN = true -+ -+INSTALL = @INSTALL@ -+INSTALL_PROGRAM = @INSTALL_PROGRAM@ -+INSTALL_DATA = @INSTALL_DATA@ -+ -+SHELL = /bin/sh -+ -+CC = @CC@ -+ -+#AS = @AS@ -+AS = `if [ -f ${objroot}/../gas/as.new ] ; \ -+ then echo ${objroot}/../gas/as.new ; \ -+ else echo as ; fi` -+ -+AR = @AR@ -+ -+#LD = @LD@ -+LD = `if [ -f ${objroot}/../ld/ld.new ] ; \ -+ then echo ${objroot}/../ld/ld.new ; \ -+ else echo ld ; fi` -+ -+RANLIB = @RANLIB@ -+ -+OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ -+ then echo ${objroot}/../binutils/objdump ; \ -+ else t='$(program_transform_name)'; echo objdump | sed -e $$t ; fi` -+OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \ -+ then echo ${objroot}/../binutils/objcopy ; \ -+ else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi` -+ -+# object files needed -+OBJS = abort.o iosupport.o close.o environ.o execve.o fork.o fstat.o getpid.o gettod.o \ -+ isatty.o kill.o link.o lseek.o open.o read.o sbrk.o stat.o \ -+ unlink.o wait.o write.o _exit.o malloc_vars.o \ -+ chdir.o mkdir.o dir.o rename.o build_argv.o statvfs.o \ -+ flock.o syscall_support.o handle_manager.o truncate.o ftruncate.o dirent.o fsync.o \ -+ fchmod.o chmod.o -+ -+# Object files specific to particular targets. -+EVALOBJS = ${OBJS} -+ -+GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \ -+ then echo -L${objroot}/../gcc ; fi` -+ -+OUTPUTS = libsysbase.a -+ -+NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` -+NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi` -+ -+INCLUDES = -I. -I$(srcdir)/.. -+# Note that when building the library, ${MULTILIB} is not the way multilib -+# options are passed; they're passed in $(CFLAGS). -+CFLAGS_FOR_TARGET = ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} -+LDFLAGS_FOR_TARGET = ${MULTILIB} ${NEWLIB_LDFLAGS} -+AR_FLAGS = qc -+ -+.c.o: -+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< -+ -+.C.o: -+ $(CC) $(CFLAGS_FOR_TARGET) -O2 $(INCLUDES) -c $(CFLAGS) $< -+.s.o: -+ $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< -+ -+# -+# GCC knows to run the preprocessor on .S files before it assembles them. -+# -+.S.o: -+ $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) $(CFLAGS) -c $< -+ -+# -+# this is a bogus target that'll produce an assembler from the -+# C source with the right compiler options. this is so we can -+# track down code generation or debug symbol bugs. -+# -+.c.s: -+ $(CC) $(CFLAGS_FOR_TARGET) -S $(INCLUDES) $(CFLAGS) $< -+ -+all: ${OUTPUTS} -+ -+# -+# here's where we build the library for each target -+# -+ -+libsysbase.a: $(EVALOBJS) -+ ${AR} ${ARFLAGS} $@ $(EVALOBJS) -+ ${RANLIB} $@ -+ -+doc: -+ -+clean mostlyclean: -+ rm -f $(OUTPUTS) *.i *~ *.o *-test *.srec *.dis *.map *.x -+ -+distclean maintainer-clean realclean: clean -+ rm -f Makefile config.status $(OUTPUTS) -+ -+.PHONY: install info install-info clean-info -+install: -+ @for outputs in ${OUTPUTS}; do\ -+ mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ -+ $(INSTALL_PROGRAM) $${outputs} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \ -+ done -+ -+info: -+install-info: -+clean-info: -+ -+Makefile: Makefile.in config.status @host_makefile_frag_path@ -+ $(SHELL) config.status -+ -+config.status: configure -+ $(SHELL) config.status --recheck diff -Nbaur newlib-1.19.0/libgloss/libsysbase/malloc_vars.c newlib-1.19.0-ppc/libgloss/libsysbase/malloc_vars.c --- newlib-1.19.0/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/malloc_vars.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/malloc_vars.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,2 @@ +char *fake_heap_end = (char*)0; +char *fake_heap_start = (char*)0; diff -Nbaur newlib-1.19.0/libgloss/libsysbase/mkdir.c newlib-1.19.0-ppc/libgloss/libsysbase/mkdir.c --- newlib-1.19.0/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/mkdir.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/mkdir.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,18 @@ +#include +#include @@ -5675,7 +5666,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/mkdir.c newlib-1.19.0-ppc/libgloss +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/open.c newlib-1.19.0-ppc/libgloss/libsysbase/open.c --- newlib-1.19.0/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/open.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/open.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,57 @@ +#include "config.h" +#include <_ansi.h> @@ -5736,7 +5727,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/open.c newlib-1.19.0-ppc/libgloss/ +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/read.c newlib-1.19.0-ppc/libgloss/libsysbase/read.c --- newlib-1.19.0/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/read.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/read.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -5788,7 +5779,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/read.c newlib-1.19.0-ppc/libgloss/ + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/rename.c newlib-1.19.0-ppc/libgloss/libsysbase/rename.c --- newlib-1.19.0/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/rename.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/rename.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,39 @@ +#include +#include @@ -5831,7 +5822,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/rename.c newlib-1.19.0-ppc/libglos +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/sbrk.c newlib-1.19.0-ppc/libgloss/libsysbase/sbrk.c --- newlib-1.19.0/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/sbrk.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/sbrk.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,26 @@ +#include "config.h" +#include @@ -5861,7 +5852,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/sbrk.c newlib-1.19.0-ppc/libgloss/ +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/stat.c newlib-1.19.0-ppc/libgloss/libsysbase/stat.c --- newlib-1.19.0/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/stat.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/stat.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,39 @@ +#include "config.h" +#include <_ansi.h> @@ -5904,7 +5895,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/stat.c newlib-1.19.0-ppc/libgloss/ + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/statvfs.c newlib-1.19.0-ppc/libgloss/libsysbase/statvfs.c --- newlib-1.19.0/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/statvfs.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/statvfs.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,23 @@ +#include +#include @@ -5931,7 +5922,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/statvfs.c newlib-1.19.0-ppc/libglo +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/syscall_support.c newlib-1.19.0-ppc/libgloss/libsysbase/syscall_support.c --- newlib-1.19.0/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/syscall_support.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/syscall_support.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,66 @@ +#include + @@ -6001,7 +5992,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/syscall_support.c newlib-1.19.0-pp + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/truncate.c newlib-1.19.0-ppc/libgloss/libsysbase/truncate.c --- newlib-1.19.0/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/truncate.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/truncate.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,59 @@ +#include "config.h" +#include <_ansi.h> @@ -6064,7 +6055,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/truncate.c newlib-1.19.0-ppc/libgl +} diff -Nbaur newlib-1.19.0/libgloss/libsysbase/unlink.c newlib-1.19.0-ppc/libgloss/libsysbase/unlink.c --- newlib-1.19.0/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/unlink.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/unlink.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,33 @@ +#include "config.h" +#include <_ansi.h> @@ -6101,7 +6092,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/unlink.c newlib-1.19.0-ppc/libglos + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/wait.c newlib-1.19.0-ppc/libgloss/libsysbase/wait.c --- newlib-1.19.0/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/wait.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/wait.c 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,28 @@ +/* + * Stub version of wait. @@ -6133,7 +6124,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/wait.c newlib-1.19.0-ppc/libgloss/ + diff -Nbaur newlib-1.19.0/libgloss/libsysbase/warning.h newlib-1.19.0-ppc/libgloss/libsysbase/warning.h --- newlib-1.19.0/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/warning.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/warning.h 2011-01-13 13:58:53.000000000 +0000 @@ -0,0 +1,43 @@ +#ifndef __WARNING_H__ +#define __WARNING_H__ @@ -6180,7 +6171,7 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/warning.h newlib-1.19.0-ppc/libglo +#endif /* __WARNING_H__ */ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-ppc/libgloss/libsysbase/write.c --- newlib-1.19.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/libsysbase/write.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/libsysbase/write.c 2011-01-13 16:27:13.000000000 +0000 @@ -0,0 +1,49 @@ +#include "config.h" +#include <_ansi.h> @@ -6231,31 +6222,9 @@ diff -Nbaur newlib-1.19.0/libgloss/libsysbase/write.c newlib-1.19.0-ppc/libgloss + } + return ret; +} -diff -Nbaur newlib-1.19.0/libgloss/rs6000/crtmain.c newlib-1.19.0-ppc/libgloss/rs6000/crtmain.c ---- newlib-1.19.0/libgloss/rs6000/crtmain.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/rs6000/crtmain.c 2011-01-17 13:18:08.000000000 +0000 -@@ -0,0 +1,18 @@ -+#include -+ -+struct __argv { -+ int argvMagic; //!< argv magic number, set to 0x5f617267 ('_arg') if valid -+ char *commandLine; //!< base address of command line, set of null terminated strings -+ int length;//!< total length of command line -+ int argc; -+ char **argv; -+}; -+ -+extern struct __argv *__system_argv; -+void __init(); -+void SYS_PreMain(); -+ -+void __crtmain() { -+ SYS_PreMain(); -+ exit ( main(__system_argv->argc,__system_argv->argv) ); -+} diff -Nbaur newlib-1.19.0/libgloss/rs6000/Makefile.in newlib-1.19.0-ppc/libgloss/rs6000/Makefile.in --- newlib-1.19.0/libgloss/rs6000/Makefile.in 2010-05-03 16:15:53.000000000 +0100 -+++ newlib-1.19.0-ppc/libgloss/rs6000/Makefile.in 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/libgloss/rs6000/Makefile.in 2011-01-13 13:58:53.000000000 +0000 @@ -129,6 +129,9 @@ XIL_TEST = xil-test XIL_INSTALL = install-xil @@ -6303,9 +6272,31 @@ diff -Nbaur newlib-1.19.0/libgloss/rs6000/Makefile.in newlib-1.19.0-ppc/libgloss doc: info: install-info: +diff -Nbaur newlib-1.19.0/libgloss/rs6000/crtmain.c newlib-1.19.0-ppc/libgloss/rs6000/crtmain.c +--- newlib-1.19.0/libgloss/rs6000/crtmain.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-ppc/libgloss/rs6000/crtmain.c 2011-01-13 13:58:53.000000000 +0000 +@@ -0,0 +1,18 @@ ++#include ++ ++struct __argv { ++ int argvMagic; //!< argv magic number, set to 0x5f617267 ('_arg') if valid ++ char *commandLine; //!< base address of command line, set of null terminated strings ++ int length;//!< total length of command line ++ int argc; ++ char **argv; ++}; ++ ++extern struct __argv *__system_argv; ++void __init(); ++void SYS_PreMain(); ++ ++void __crtmain() { ++ SYS_PreMain(); ++ exit ( main(__system_argv->argc,__system_argv->argv) ); ++} diff -Nbaur newlib-1.19.0/newlib/configure.host newlib-1.19.0-ppc/newlib/configure.host --- newlib-1.19.0/newlib/configure.host 2010-12-02 19:30:46.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/configure.host 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/configure.host 2011-01-13 13:58:53.000000000 +0000 @@ -727,7 +727,12 @@ default_newlib_io_long_long="yes" newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" @@ -6685,7 +6676,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/pthread.h newlib-1.19.0-ppc/newlib -/* end of include file */ diff -Nbaur newlib-1.19.0/newlib/libc/include/stdint.h newlib-1.19.0-ppc/newlib/libc/include/stdint.h --- newlib-1.19.0/newlib/libc/include/stdint.h 2009-04-24 22:55:07.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/include/stdint.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/include/stdint.h 2011-01-13 13:58:56.000000000 +0000 @@ -75,14 +75,14 @@ #endif #endif @@ -6708,8 +6699,8 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/stdint.h newlib-1.19.0-ppc/newlib/ typedef unsigned short uint32_t; diff -Nbaur newlib-1.19.0/newlib/libc/include/stdio.h newlib-1.19.0-ppc/newlib/libc/include/stdio.h --- newlib-1.19.0/newlib/libc/include/stdio.h 2010-02-26 09:41:43.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/include/stdio.h 2011-01-17 14:27:34.000000000 +0000 -@@ -209,13 +209,13 @@ ++++ newlib-1.19.0-ppc/newlib/libc/include/stdio.h 2011-01-13 14:22:40.000000000 +0000 +@@ -209,7 +209,7 @@ #else int _EXFUN(fgetpos, (FILE *, fpos_t *)); #endif @@ -6718,28 +6709,18 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/stdio.h newlib-1.19.0-ppc/newlib/l #ifdef _COMPILING_NEWLIB int _EXFUN(fsetpos, (FILE *, const _fpos_t *)); #else - int _EXFUN(fsetpos, (FILE *, const fpos_t *)); - #endif --long _EXFUN(ftell, ( FILE *)); -+off_t _EXFUN(ftell, ( FILE *)); - void _EXFUN(rewind, (FILE *)); - void _EXFUN(clearerr, (FILE *)); - int _EXFUN(feof, (FILE *)); -@@ -394,9 +394,9 @@ +@@ -394,7 +394,7 @@ size_t _EXFUN(_fread_r, (struct _reent *, _PTR, size_t _size, size_t _n, FILE *)); int _EXFUN(_fscanf_r, (struct _reent *, FILE *, const char *, ...) _ATTRIBUTE ((__format__ (__scanf__, 3, 4)))); -int _EXFUN(_fseek_r, (struct _reent *, FILE *, long, int)); +int _EXFUN(_fseek_r, (struct _reent *, FILE *, off_t, int)); int _EXFUN(_fseeko_r,(struct _reent *, FILE *, _off_t, int)); --long _EXFUN(_ftell_r, (struct _reent *, FILE *)); -+_off_t _EXFUN(_ftell_r, (struct _reent *, FILE *)); + long _EXFUN(_ftell_r, (struct _reent *, FILE *)); _off_t _EXFUN(_ftello_r,(struct _reent *, FILE *)); - void _EXFUN(_rewind_r, (struct _reent *, FILE *)); - size_t _EXFUN(_fwrite_r, (struct _reent *, const _PTR , size_t _size, size_t _n, FILE *)); diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/dirent.h newlib-1.19.0-ppc/newlib/libc/include/sys/dirent.h --- newlib-1.19.0/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/include/sys/dirent.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/include/sys/dirent.h 2011-01-13 14:15:14.000000000 +0000 @@ -4,10 +4,39 @@ not support , we will get this file which uses #error to force an error. */ @@ -6784,8 +6765,8 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/dirent.h newlib-1.19.0-ppc/new \ No newline at end of file diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/iosupport.h newlib-1.19.0-ppc/newlib/libc/include/sys/iosupport.h --- newlib-1.19.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/include/sys/iosupport.h 2011-01-17 13:18:08.000000000 +0000 -@@ -0,0 +1,99 @@ ++++ newlib-1.19.0-ppc/newlib/libc/include/sys/iosupport.h 2011-01-19 18:06:31.000000000 +0000 +@@ -0,0 +1,94 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ +#define __iosupp_h__ @@ -6872,11 +6853,6 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/iosupport.h newlib-1.19.0-ppc/ +int RemoveDevice(const char* name); +void setDefaultDevice( int device ); +const devoptab_t* GetDeviceOpTab (const char *name); -+ -+DIR_ITER* diropen (const char *path); -+int dirreset (DIR_ITER *dirState); -+int dirnext (DIR_ITER *dirState, char *filename, struct stat *filestat); -+int dirclose (DIR_ITER *dirState); + +#ifdef __cplusplus +} @@ -6887,7 +6863,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/iosupport.h newlib-1.19.0-ppc/ +//--------------------------------------------------------------------------------- diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/reent.h newlib-1.19.0-ppc/newlib/libc/include/sys/reent.h --- newlib-1.19.0/newlib/libc/include/sys/reent.h 2010-06-09 16:15:35.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/include/sys/reent.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/include/sys/reent.h 2011-01-13 13:58:57.000000000 +0000 @@ -203,7 +203,7 @@ /* Unix stdio files get aligned to block boundaries on fseek() */ @@ -6899,7 +6875,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/reent.h newlib-1.19.0-ppc/newl struct _reent *_data; /* Here for binary compatibility? Remove? */ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/statvfs.h newlib-1.19.0-ppc/newlib/libc/include/sys/statvfs.h --- newlib-1.19.0/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/include/sys/statvfs.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/include/sys/statvfs.h 2011-01-13 13:58:57.000000000 +0000 @@ -0,0 +1,35 @@ +#ifndef _SYS_STATVFS_H +#define _SYS_STATVFS_H @@ -6939,7 +6915,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/statvfs.h newlib-1.19.0-ppc/ne \ No newline at end of file diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/syslimits.h newlib-1.19.0-ppc/newlib/libc/include/sys/syslimits.h --- newlib-1.19.0/newlib/libc/include/sys/syslimits.h 2002-08-23 02:56:03.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/include/sys/syslimits.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/include/sys/syslimits.h 2011-01-13 13:58:57.000000000 +0000 @@ -44,7 +44,7 @@ #define LINK_MAX 32767 /* max file link count */ #define MAX_CANON 255 /* max bytes in term canon input line */ @@ -6951,7 +6927,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/syslimits.h newlib-1.19.0-ppc/ #define OPEN_MAX 64 /* max open files per process */ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/types.h newlib-1.19.0-ppc/newlib/libc/include/sys/types.h --- newlib-1.19.0/newlib/libc/include/sys/types.h 2010-12-08 14:44:06.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/include/sys/types.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/include/sys/types.h 2011-01-13 13:58:57.000000000 +0000 @@ -130,7 +130,7 @@ defined(__sparc__) || defined(__SPU__) typedef unsigned long ino_t; @@ -6973,7 +6949,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/types.h newlib-1.19.0-ppc/newl diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/unistd.h newlib-1.19.0-ppc/newlib/libc/include/sys/unistd.h --- newlib-1.19.0/newlib/libc/include/sys/unistd.h 2010-10-08 16:28:49.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/include/sys/unistd.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/include/sys/unistd.h 2011-01-13 13:58:57.000000000 +0000 @@ -216,12 +216,10 @@ int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); #endif @@ -6989,7 +6965,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/unistd.h newlib-1.19.0-ppc/new int _EXFUN(getdtablesize, (void)); diff -Nbaur newlib-1.19.0/newlib/libc/locale/locale.c newlib-1.19.0-ppc/newlib/libc/locale/locale.c --- newlib-1.19.0/newlib/libc/locale/locale.c 2010-11-19 10:02:36.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/locale/locale.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/locale/locale.c 2011-01-13 14:00:34.000000000 +0000 @@ -187,7 +187,6 @@ #define _LC_LAST 7 #define ENCODING_LEN 31 @@ -7036,7 +7012,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/locale/locale.c newlib-1.19.0-ppc/newlib/l strcpy (charset, "ASCII"); diff -Nbaur newlib-1.19.0/newlib/libc/machine/powerpc/machine/_types.h newlib-1.19.0-ppc/newlib/libc/machine/powerpc/machine/_types.h --- newlib-1.19.0/newlib/libc/machine/powerpc/machine/_types.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/machine/powerpc/machine/_types.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/machine/powerpc/machine/_types.h 2011-01-13 13:58:57.000000000 +0000 @@ -0,0 +1,15 @@ +/* + * $Id: newlib-1.16.0.patch,v 1.8 2008-11-29 12:08:00 wntrmute Exp $ @@ -7055,7 +7031,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/machine/powerpc/machine/_types.h newlib-1. +#endif // _MACHINE__TYPES_H diff -Nbaur newlib-1.19.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.19.0-ppc/newlib/libc/machine/powerpc/sys/lock.h --- newlib-1.19.0/newlib/libc/machine/powerpc/sys/lock.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/machine/powerpc/sys/lock.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/machine/powerpc/sys/lock.h 2011-01-13 13:58:57.000000000 +0000 @@ -0,0 +1,53 @@ +#ifndef __SYS_LOCK_H__ +#define __SYS_LOCK_H__ @@ -7112,7 +7088,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/machine/powerpc/sys/lock.h newlib-1.19.0-p +#endif /* __SYS_LOCK_H__ */ diff -Nbaur newlib-1.19.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.19.0-ppc/newlib/libc/machine/powerpc/sys/stdio.h --- newlib-1.19.0/newlib/libc/machine/powerpc/sys/stdio.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/machine/powerpc/sys/stdio.h 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/machine/powerpc/sys/stdio.h 2011-01-13 13:58:57.000000000 +0000 @@ -0,0 +1,25 @@ +#ifndef _NEWLIB_STDIO_H +#define _NEWLIB_STDIO_H @@ -7141,7 +7117,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/machine/powerpc/sys/stdio.h newlib-1.19.0- + diff -Nbaur newlib-1.19.0/newlib/libc/misc/init.c newlib-1.19.0-ppc/newlib/libc/misc/init.c --- newlib-1.19.0/newlib/libc/misc/init.c 2010-06-04 16:30:40.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/misc/init.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/misc/init.c 2011-01-13 13:58:57.000000000 +0000 @@ -40,4 +40,8 @@ for (i = 0; i < count; i++) __init_array_start[i] (); @@ -7153,7 +7129,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/misc/init.c newlib-1.19.0-ppc/newlib/libc/ #endif diff -Nbaur newlib-1.19.0/newlib/libc/stdio/findfp.c newlib-1.19.0-ppc/newlib/libc/stdio/findfp.c --- newlib-1.19.0/newlib/libc/stdio/findfp.c 2008-12-10 23:43:12.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/stdio/findfp.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdio/findfp.c 2011-01-13 13:58:57.000000000 +0000 @@ -222,7 +222,8 @@ /* POSIX requires stderr to be opened for reading and writing, even @@ -7166,7 +7142,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdio/findfp.c newlib-1.19.0-ppc/newlib/li } diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fopen.c newlib-1.19.0-ppc/newlib/libc/stdio/fopen.c --- newlib-1.19.0/newlib/libc/stdio/fopen.c 2004-06-11 21:37:10.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/stdio/fopen.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdio/fopen.c 2011-01-13 13:58:57.000000000 +0000 @@ -151,6 +151,9 @@ _flockfile (fp); @@ -7179,7 +7155,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fopen.c newlib-1.19.0-ppc/newlib/lib fp->_cookie = (_PTR) fp; diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fseek.c newlib-1.19.0-ppc/newlib/libc/stdio/fseek.c --- newlib-1.19.0/newlib/libc/stdio/fseek.c 2009-12-17 19:43:43.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/stdio/fseek.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdio/fseek.c 2011-01-13 14:22:54.000000000 +0000 @@ -120,7 +120,7 @@ _DEFUN(_fseek_r, (ptr, fp, offset, whence), struct _reent *ptr _AND @@ -7200,7 +7176,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fseek.c newlib-1.19.0-ppc/newlib/lib return _fseek_r (_REENT, fp, offset, whence); diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fseeko.c newlib-1.19.0-ppc/newlib/libc/stdio/fseeko.c --- newlib-1.19.0/newlib/libc/stdio/fseeko.c 2004-04-23 21:01:55.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/stdio/fseeko.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdio/fseeko.c 2011-01-13 15:29:40.000000000 +0000 @@ -26,7 +26,7 @@ _off_t offset _AND int whence) @@ -7219,30 +7195,9 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fseeko.c newlib-1.19.0-ppc/newlib/li } #endif /* !_REENT_ONLY */ -diff -Nbaur newlib-1.19.0/newlib/libc/stdio/ftell.c newlib-1.19.0-ppc/newlib/libc/stdio/ftell.c ---- newlib-1.19.0/newlib/libc/stdio/ftell.c 2008-03-04 02:22:36.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/stdio/ftell.c 2011-01-17 14:28:09.000000000 +0000 -@@ -98,7 +98,7 @@ - #include - #include "local.h" - --long -+_off_t - _DEFUN(_ftell_r, (ptr, fp), - struct _reent *ptr _AND - register FILE * fp) -@@ -167,7 +167,7 @@ - - #ifndef _REENT_ONLY - --long -+off_t - _DEFUN(ftell, (fp), - register FILE * fp) - { diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fvwrite.c newlib-1.19.0-ppc/newlib/libc/stdio/fvwrite.c --- newlib-1.19.0/newlib/libc/stdio/fvwrite.c 2007-07-13 21:37:53.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/stdio/fvwrite.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdio/fvwrite.c 2011-01-13 13:58:57.000000000 +0000 @@ -98,7 +98,8 @@ do { @@ -7255,7 +7210,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdio/fvwrite.c newlib-1.19.0-ppc/newlib/l p += w; diff -Nbaur newlib-1.19.0/newlib/libc/stdlib/mbtowc_r.c newlib-1.19.0-ppc/newlib/libc/stdlib/mbtowc_r.c --- newlib-1.19.0/newlib/libc/stdlib/mbtowc_r.c 2010-01-17 09:39:06.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/stdlib/mbtowc_r.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdlib/mbtowc_r.c 2011-01-13 14:01:14.000000000 +0000 @@ -9,7 +9,7 @@ int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t, @@ -7267,7 +7222,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdlib/mbtowc_r.c newlib-1.19.0-ppc/newlib #else diff -Nbaur newlib-1.19.0/newlib/libc/stdlib/mlock.c newlib-1.19.0-ppc/newlib/libc/stdlib/mlock.c --- newlib-1.19.0/newlib/libc/stdlib/mlock.c 2005-10-28 22:21:07.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/stdlib/mlock.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdlib/mlock.c 2011-01-13 13:58:57.000000000 +0000 @@ -39,6 +39,7 @@ #include #include @@ -7285,7 +7240,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdlib/mlock.c newlib-1.19.0-ppc/newlib/li #endif diff -Nbaur newlib-1.19.0/newlib/libc/stdlib/wctomb_r.c newlib-1.19.0-ppc/newlib/libc/stdlib/wctomb_r.c --- newlib-1.19.0/newlib/libc/stdlib/wctomb_r.c 2010-01-17 09:39:06.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/stdlib/wctomb_r.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/stdlib/wctomb_r.c 2011-01-13 14:01:40.000000000 +0000 @@ -8,7 +8,7 @@ int (*__wctomb) (struct _reent *, char *, wchar_t, const char *charset, @@ -7297,7 +7252,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/stdlib/wctomb_r.c newlib-1.19.0-ppc/newlib #else diff -Nbaur newlib-1.19.0/newlib/libc/syscalls/Makefile.am newlib-1.19.0-ppc/newlib/libc/syscalls/Makefile.am --- newlib-1.19.0/newlib/libc/syscalls/Makefile.am 2008-01-03 22:33:37.000000000 +0000 -+++ newlib-1.19.0-ppc/newlib/libc/syscalls/Makefile.am 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/syscalls/Makefile.am 2011-01-13 13:58:57.000000000 +0000 @@ -22,7 +22,6 @@ sysunlink.c \ syswrite.c @@ -7308,7 +7263,7 @@ diff -Nbaur newlib-1.19.0/newlib/libc/syscalls/Makefile.am newlib-1.19.0-ppc/new ELIX_SOURCES = diff -Nbaur newlib-1.19.0/newlib/libc/time/asctime_r.c newlib-1.19.0-ppc/newlib/libc/time/asctime_r.c --- newlib-1.19.0/newlib/libc/time/asctime_r.c 2000-05-10 18:58:29.000000000 +0100 -+++ newlib-1.19.0-ppc/newlib/libc/time/asctime_r.c 2011-01-17 13:18:08.000000000 +0000 ++++ newlib-1.19.0-ppc/newlib/libc/time/asctime_r.c 2011-01-13 13:58:57.000000000 +0000 @@ -18,7 +18,7 @@ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };