diff --git a/dkarm-eabi/patches/newlib-1.20.0.patch b/dkarm-eabi/patches/newlib-1.20.0.patch index 61a4cff..6eb6668 100644 --- a/dkarm-eabi/patches/newlib-1.20.0.patch +++ b/dkarm-eabi/patches/newlib-1.20.0.patch @@ -1,6 +1,6 @@ diff -Nbaur newlib-1.20.0/libgloss/arm/_kill.c newlib-1.20.0-arm/libgloss/arm/_kill.c --- newlib-1.20.0/libgloss/arm/_kill.c 2007-01-03 16:55:25.000000000 +0000 -+++ newlib-1.20.0-arm/libgloss/arm/_kill.c 2012-01-06 14:45:29.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/arm/_kill.c 2012-04-05 16:52:10.000000000 +0100 @@ -1,6 +1,7 @@ #include <_ansi.h> #include @@ -22,7 +22,7 @@ diff -Nbaur newlib-1.20.0/libgloss/arm/_kill.c newlib-1.20.0-arm/libgloss/arm/_k } diff -Nbaur newlib-1.20.0/libgloss/arm/linux-syscalls0.S newlib-1.20.0-arm/libgloss/arm/linux-syscalls0.S --- newlib-1.20.0/libgloss/arm/linux-syscalls0.S 2009-10-26 10:00:41.000000000 +0000 -+++ newlib-1.20.0-arm/libgloss/arm/linux-syscalls0.S 2012-01-06 14:45:32.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/arm/linux-syscalls0.S 2012-04-05 16:52:10.000000000 +0100 @@ -7,6 +7,7 @@ */ @@ -68,7 +68,7 @@ diff -Nbaur newlib-1.20.0/libgloss/arm/linux-syscalls0.S newlib-1.20.0-arm/libgl #define SYSCALL3(name) SYSCALL4(name) diff -Nbaur newlib-1.20.0/libgloss/arm/redboot-syscalls.c newlib-1.20.0-arm/libgloss/arm/redboot-syscalls.c --- newlib-1.20.0/libgloss/arm/redboot-syscalls.c 2008-01-03 22:38:30.000000000 +0000 -+++ newlib-1.20.0-arm/libgloss/arm/redboot-syscalls.c 2012-01-06 14:45:32.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/arm/redboot-syscalls.c 2012-04-05 16:52:10.000000000 +0100 @@ -20,13 +20,18 @@ #include #include @@ -90,7 +90,7 @@ diff -Nbaur newlib-1.20.0/libgloss/arm/redboot-syscalls.c newlib-1.20.0-arm/libg #endif diff -Nbaur newlib-1.20.0/libgloss/arm/syscalls.c newlib-1.20.0-arm/libgloss/arm/syscalls.c --- newlib-1.20.0/libgloss/arm/syscalls.c 2010-08-27 12:55:36.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/arm/syscalls.c 2012-01-06 14:45:33.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/arm/syscalls.c 2012-04-05 16:52:10.000000000 +0100 @@ -16,6 +16,7 @@ #include #include @@ -369,7 +369,7 @@ diff -Nbaur newlib-1.20.0/libgloss/arm/syscalls.c newlib-1.20.0-arm/libgloss/arm } diff -Nbaur newlib-1.20.0/libgloss/configure newlib-1.20.0-arm/libgloss/configure --- newlib-1.20.0/libgloss/configure 2011-12-15 22:58:40.000000000 +0000 -+++ newlib-1.20.0-arm/libgloss/configure 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/configure 2012-04-05 16:52:10.000000000 +0100 @@ -1800,6 +1800,7 @@ @@ -389,7 +389,7 @@ diff -Nbaur newlib-1.20.0/libgloss/configure newlib-1.20.0-arm/libgloss/configur ac_config_commands="$ac_config_commands depfiles" diff -Nbaur newlib-1.20.0/libgloss/configure.in newlib-1.20.0-arm/libgloss/configure.in --- newlib-1.20.0/libgloss/configure.in 2011-12-15 22:58:40.000000000 +0000 -+++ newlib-1.20.0-arm/libgloss/configure.in 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/configure.in 2012-04-05 16:52:10.000000000 +0100 @@ -2,6 +2,7 @@ AC_PREREQ(2.59) AC_INIT([libgloss],[LIBGLOSS_VERSION]) @@ -406,184 +406,9 @@ diff -Nbaur newlib-1.20.0/libgloss/configure.in newlib-1.20.0-arm/libgloss/confi LIB_AC_PROG_CC AS=${AS-as} -diff -Nbaur newlib-1.20.0/libgloss/libsysbase/Makefile.in newlib-1.20.0-arm/libgloss/libsysbase/Makefile.in ---- newlib-1.20.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/Makefile.in 2012-01-06 14:45:34.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 times.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.20.0/libgloss/libsysbase/_exit.c newlib-1.20.0-arm/libgloss/libsysbase/_exit.c ---- newlib-1.20.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/_exit.c 2012-01-06 14:45:34.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.20.0/libgloss/libsysbase/abort.c newlib-1.20.0-arm/libgloss/libsysbase/abort.c --- newlib-1.20.0/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/abort.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/abort.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,8 @@ +#include +#include @@ -595,7 +420,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/abort.c newlib-1.20.0-arm/libgloss + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/acconfig.h newlib-1.20.0-arm/libgloss/libsysbase/acconfig.h --- newlib-1.20.0/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/acconfig.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/acconfig.h 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,29 @@ +/* Name of package. */ +#undef PACKAGE @@ -628,7 +453,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/acconfig.h newlib-1.20.0-arm/libgl +#undef __SYMBOL_PREFIX diff -Nbaur newlib-1.20.0/libgloss/libsysbase/aclocal.m4 newlib-1.20.0-arm/libgloss/libsysbase/aclocal.m4 --- newlib-1.20.0/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/aclocal.m4 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/aclocal.m4 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,344 @@ +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- + @@ -976,7 +801,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/aclocal.m4 newlib-1.20.0-arm/libgl +m4_include([../acinclude.m4]) diff -Nbaur newlib-1.20.0/libgloss/libsysbase/build_argv.c newlib-1.20.0-arm/libgloss/libsysbase/build_argv.c --- newlib-1.20.0/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/build_argv.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/build_argv.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,31 @@ +struct __argv { + int argvMagic; @@ -1011,7 +836,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/build_argv.c newlib-1.20.0-arm/lib +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/chdir.c newlib-1.20.0-arm/libgloss/libsysbase/chdir.c --- newlib-1.20.0/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/chdir.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/chdir.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,176 @@ +#include +#include @@ -1191,7 +1016,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/chdir.c newlib-1.20.0-arm/libgloss +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/chmod.c newlib-1.20.0-arm/libgloss/libsysbase/chmod.c --- newlib-1.20.0/libgloss/libsysbase/chmod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/chmod.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/chmod.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,25 @@ +#include "config.h" +#include <_ansi.h> @@ -1220,7 +1045,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/chmod.c newlib-1.20.0-arm/libgloss + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/close.c newlib-1.20.0-arm/libgloss/libsysbase/close.c --- newlib-1.20.0/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/close.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/close.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,41 @@ +#include "config.h" +#include <_ansi.h> @@ -1265,7 +1090,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/close.c newlib-1.20.0-arm/libgloss +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/config.h.in newlib-1.20.0-arm/libgloss/libsysbase/config.h.in --- newlib-1.20.0/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/config.h.in 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/config.h.in 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,25 @@ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + @@ -1294,7 +1119,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/config.h.in newlib-1.20.0-arm/libg +#undef __SYMBOL_PREFIX diff -Nbaur newlib-1.20.0/libgloss/libsysbase/configure newlib-1.20.0-arm/libgloss/libsysbase/configure --- newlib-1.20.0/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/configure 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/configure 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,3553 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. @@ -4851,7 +4676,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/configure newlib-1.20.0-arm/libglo + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/configure.in newlib-1.20.0-arm/libgloss/libsysbase/configure.in --- newlib-1.20.0/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/configure.in 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/configure.in 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,208 @@ +# Copyright (c) 1995, 1996 Cygnus Support +# @@ -5063,7 +4888,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/configure.in newlib-1.20.0-arm/lib + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/dirent.c newlib-1.20.0-arm/libgloss/libsysbase/dirent.c --- newlib-1.20.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/dirent.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/dirent.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,247 @@ +#include +#include @@ -5314,7 +5139,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/dirent.c newlib-1.20.0-arm/libglos +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/environ.c newlib-1.20.0-arm/libgloss/libsysbase/environ.c --- newlib-1.20.0/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/environ.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/environ.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,6 @@ +/* + * Version of environ for no OS. @@ -5324,7 +5149,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/environ.c newlib-1.20.0-arm/libglo +char **environ = __env; diff -Nbaur newlib-1.20.0/libgloss/libsysbase/execve.c newlib-1.20.0-arm/libgloss/libsysbase/execve.c --- newlib-1.20.0/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/execve.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/execve.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,31 @@ +/* + * Stub version of execve. @@ -5357,9 +5182,32 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/execve.c newlib-1.20.0-arm/libglos + return -1; +} + +diff -Nbaur newlib-1.20.0/libgloss/libsysbase/_exit.c newlib-1.20.0-arm/libgloss/libsysbase/_exit.c +--- newlib-1.20.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.20.0-arm/libgloss/libsysbase/_exit.c 2012-04-05 16:52:10.000000000 +0100 +@@ -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.20.0/libgloss/libsysbase/fchmod.c newlib-1.20.0-arm/libgloss/libsysbase/fchmod.c --- newlib-1.20.0/libgloss/libsysbase/fchmod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/fchmod.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/fchmod.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,30 @@ +#include "config.h" +#include <_ansi.h> @@ -5393,7 +5241,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/fchmod.c newlib-1.20.0-arm/libglos +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/flock.c newlib-1.20.0-arm/libgloss/libsysbase/flock.c --- newlib-1.20.0/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/flock.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/flock.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,21 @@ +#include +#include <_ansi.h> @@ -5418,7 +5266,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/flock.c newlib-1.20.0-arm/libgloss +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/fork.c newlib-1.20.0-arm/libgloss/libsysbase/fork.c --- newlib-1.20.0/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/fork.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/fork.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,25 @@ +/* + * Stub version of fork. @@ -5447,7 +5295,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/fork.c newlib-1.20.0-arm/libgloss/ +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/fstat.c newlib-1.20.0-arm/libgloss/libsysbase/fstat.c --- newlib-1.20.0/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/fstat.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/fstat.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -5499,7 +5347,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/fstat.c newlib-1.20.0-arm/libgloss +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/fsync.c newlib-1.20.0-arm/libgloss/libsysbase/fsync.c --- newlib-1.20.0/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/fsync.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/fsync.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,36 @@ +#include "config.h" +#include <_ansi.h> @@ -5539,7 +5387,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/fsync.c newlib-1.20.0-arm/libgloss +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/ftruncate.c newlib-1.20.0-arm/libgloss/libsysbase/ftruncate.c --- newlib-1.20.0/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/ftruncate.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/ftruncate.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5580,7 +5428,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/ftruncate.c newlib-1.20.0-arm/libg +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/getpid.c newlib-1.20.0-arm/libgloss/libsysbase/getpid.c --- newlib-1.20.0/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/getpid.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/getpid.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,21 @@ +#include "config.h" +#include <_ansi.h> @@ -5605,7 +5453,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/getpid.c newlib-1.20.0-arm/libglos + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/gettod.c newlib-1.20.0-arm/libgloss/libsysbase/gettod.c --- newlib-1.20.0/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/gettod.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/gettod.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,25 @@ +/* + * Stub version of gettimeofday. @@ -5634,7 +5482,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/gettod.c newlib-1.20.0-arm/libglos +stub_warning(_gettimeofday) diff -Nbaur newlib-1.20.0/libgloss/libsysbase/handle_manager.c newlib-1.20.0-arm/libgloss/libsysbase/handle_manager.c --- newlib-1.20.0/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/handle_manager.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/handle_manager.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,47 @@ +#include +#include @@ -5685,7 +5533,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/handle_manager.c newlib-1.20.0-arm +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/handle_manager.h newlib-1.20.0-arm/libgloss/libsysbase/handle_manager.h --- newlib-1.20.0/libgloss/libsysbase/handle_manager.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/handle_manager.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/handle_manager.h 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,10 @@ +#ifndef __HANDLE_MANAGER_H__ +#define __HANDLE_MANAGER_H__ @@ -5699,7 +5547,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/handle_manager.h newlib-1.20.0-arm +#endif diff -Nbaur newlib-1.20.0/libgloss/libsysbase/iosupport.c newlib-1.20.0-arm/libgloss/libsysbase/iosupport.c --- newlib-1.20.0/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/iosupport.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/iosupport.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,122 @@ +#include +#include @@ -5825,7 +5673,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/iosupport.c newlib-1.20.0-arm/libg + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/isatty.c newlib-1.20.0-arm/libgloss/libsysbase/isatty.c --- newlib-1.20.0/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/isatty.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/isatty.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,20 @@ +#include "config.h" +#include <_ansi.h> @@ -5849,7 +5697,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/isatty.c newlib-1.20.0-arm/libglos +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/kill.c newlib-1.20.0-arm/libgloss/libsysbase/kill.c --- newlib-1.20.0/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/kill.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/kill.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,23 @@ +/* + * Stub version of kill. @@ -5876,7 +5724,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/kill.c newlib-1.20.0-arm/libgloss/ +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/link.c newlib-1.20.0-arm/libgloss/libsysbase/link.c --- newlib-1.20.0/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/link.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/link.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -5917,7 +5765,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/link.c newlib-1.20.0-arm/libgloss/ + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/lseek.c newlib-1.20.0-arm/libgloss/libsysbase/lseek.c --- newlib-1.20.0/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/lseek.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/lseek.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,55 @@ +#include "config.h" +#include <_ansi.h> @@ -5974,15 +5822,167 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/lseek.c newlib-1.20.0-arm/libgloss + return ret; + +} +diff -Nbaur newlib-1.20.0/libgloss/libsysbase/Makefile.in newlib-1.20.0-arm/libgloss/libsysbase/Makefile.in +--- newlib-1.20.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.20.0-arm/libgloss/libsysbase/Makefile.in 2012-04-05 16:52:10.000000000 +0100 +@@ -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 times.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.20.0/libgloss/libsysbase/malloc_vars.c newlib-1.20.0-arm/libgloss/libsysbase/malloc_vars.c --- newlib-1.20.0/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/malloc_vars.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/malloc_vars.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,2 @@ +char *fake_heap_end = (char*)0; +char *fake_heap_start = (char*)0; diff -Nbaur newlib-1.20.0/libgloss/libsysbase/mkdir.c newlib-1.20.0-arm/libgloss/libsysbase/mkdir.c --- newlib-1.20.0/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/mkdir.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/mkdir.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,18 @@ +#include +#include @@ -6004,7 +6004,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/mkdir.c newlib-1.20.0-arm/libgloss +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/open.c newlib-1.20.0-arm/libgloss/libsysbase/open.c --- newlib-1.20.0/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/open.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/open.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,57 @@ +#include "config.h" +#include <_ansi.h> @@ -6065,7 +6065,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/open.c newlib-1.20.0-arm/libgloss/ +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/read.c newlib-1.20.0-arm/libgloss/libsysbase/read.c --- newlib-1.20.0/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/read.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/read.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -6117,7 +6117,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/read.c newlib-1.20.0-arm/libgloss/ + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/rename.c newlib-1.20.0-arm/libgloss/libsysbase/rename.c --- newlib-1.20.0/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/rename.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/rename.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,39 @@ +#include +#include @@ -6160,7 +6160,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/rename.c newlib-1.20.0-arm/libglos +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/sbrk.c newlib-1.20.0-arm/libgloss/libsysbase/sbrk.c --- newlib-1.20.0/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/sbrk.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/sbrk.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,59 @@ +#include <_ansi.h> +#include @@ -6223,7 +6223,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/sbrk.c newlib-1.20.0-arm/libgloss/ +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/stat.c newlib-1.20.0-arm/libgloss/libsysbase/stat.c --- newlib-1.20.0/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/stat.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/stat.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,39 @@ +#include "config.h" +#include <_ansi.h> @@ -6266,7 +6266,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/stat.c newlib-1.20.0-arm/libgloss/ + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/statvfs.c newlib-1.20.0-arm/libgloss/libsysbase/statvfs.c --- newlib-1.20.0/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/statvfs.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/statvfs.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,23 @@ +#include +#include @@ -6293,7 +6293,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/statvfs.c newlib-1.20.0-arm/libglo +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/syscall_support.c newlib-1.20.0-arm/libgloss/libsysbase/syscall_support.c --- newlib-1.20.0/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/syscall_support.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/syscall_support.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,9 @@ +#include + @@ -6306,7 +6306,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/syscall_support.c newlib-1.20.0-ar + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/times.c newlib-1.20.0-arm/libgloss/libsysbase/times.c --- newlib-1.20.0/libgloss/libsysbase/times.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/times.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/times.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,47 @@ +#include <_ansi.h> +#include <_syslist.h> @@ -6358,7 +6358,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/times.c newlib-1.20.0-arm/libgloss \ No newline at end of file diff -Nbaur newlib-1.20.0/libgloss/libsysbase/truncate.c newlib-1.20.0-arm/libgloss/libsysbase/truncate.c --- newlib-1.20.0/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/truncate.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/truncate.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,59 @@ +#include "config.h" +#include <_ansi.h> @@ -6421,7 +6421,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/truncate.c newlib-1.20.0-arm/libgl +} diff -Nbaur newlib-1.20.0/libgloss/libsysbase/unlink.c newlib-1.20.0-arm/libgloss/libsysbase/unlink.c --- newlib-1.20.0/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/unlink.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/unlink.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,33 @@ +#include "config.h" +#include <_ansi.h> @@ -6458,7 +6458,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/unlink.c newlib-1.20.0-arm/libglos + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/wait.c newlib-1.20.0-arm/libgloss/libsysbase/wait.c --- newlib-1.20.0/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/wait.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/wait.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,28 @@ +/* + * Stub version of wait. @@ -6490,7 +6490,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/wait.c newlib-1.20.0-arm/libgloss/ + diff -Nbaur newlib-1.20.0/libgloss/libsysbase/warning.h newlib-1.20.0-arm/libgloss/libsysbase/warning.h --- newlib-1.20.0/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/warning.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/warning.h 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,43 @@ +#ifndef __WARNING_H__ +#define __WARNING_H__ @@ -6537,7 +6537,7 @@ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/warning.h newlib-1.20.0-arm/libglo +#endif /* __WARNING_H__ */ diff -Nbaur newlib-1.20.0/libgloss/libsysbase/write.c newlib-1.20.0-arm/libgloss/libsysbase/write.c --- newlib-1.20.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/libgloss/libsysbase/write.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/libgloss/libsysbase/write.c 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,49 @@ +#include "config.h" +#include <_ansi.h> @@ -6953,7 +6953,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/pthread.h newlib-1.20.0-arm/newlib -/* end of include file */ diff -Nbaur newlib-1.20.0/newlib/libc/include/stdint.h newlib-1.20.0-arm/newlib/libc/include/stdint.h --- newlib-1.20.0/newlib/libc/include/stdint.h 2009-04-24 22:55:07.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/stdint.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/include/stdint.h 2012-04-05 16:52:10.000000000 +0100 @@ -75,14 +75,14 @@ #endif #endif @@ -6974,21 +6974,9 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/stdint.h newlib-1.20.0-arm/newlib/ #elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL typedef signed short int32_t; typedef unsigned short uint32_t; -diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/_types.h newlib-1.20.0-arm/newlib/libc/include/sys/_types.h ---- newlib-1.20.0/newlib/libc/include/sys/_types.h 2007-09-18 21:05:17.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/sys/_types.h 2012-01-06 14:45:34.000000000 +0000 -@@ -21,7 +21,7 @@ - typedef unsigned long long __dev_t; - #else - #ifndef __dev_t_defined --typedef short __dev_t; -+typedef int __dev_t; - #endif - #endif - diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/dirent.h newlib-1.20.0-arm/newlib/libc/include/sys/dirent.h --- newlib-1.20.0/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/sys/dirent.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/include/sys/dirent.h 2012-04-05 16:52:10.000000000 +0100 @@ -4,10 +4,49 @@ not support , we will get this file which uses #error to force an error. */ @@ -7043,7 +7031,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/dirent.h newlib-1.20.0-arm/new \ No newline at end of file diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/iosupport.h newlib-1.20.0-arm/newlib/libc/include/sys/iosupport.h --- newlib-1.20.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/sys/iosupport.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/include/sys/iosupport.h 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,88 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ @@ -7135,7 +7123,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/iosupport.h newlib-1.20.0-arm/ +//--------------------------------------------------------------------------------- diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/statvfs.h newlib-1.20.0-arm/newlib/libc/include/sys/statvfs.h --- newlib-1.20.0/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/sys/statvfs.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/include/sys/statvfs.h 2012-04-05 16:52:10.000000000 +0100 @@ -0,0 +1,35 @@ +#ifndef _SYS_STATVFS_H +#define _SYS_STATVFS_H @@ -7175,7 +7163,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/statvfs.h newlib-1.20.0-arm/ne \ No newline at end of file diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/syslimits.h newlib-1.20.0-arm/newlib/libc/include/sys/syslimits.h --- newlib-1.20.0/newlib/libc/include/sys/syslimits.h 2002-08-23 02:56:03.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/sys/syslimits.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/include/sys/syslimits.h 2012-04-05 16:52:10.000000000 +0100 @@ -44,7 +44,7 @@ #define LINK_MAX 32767 /* max file link count */ #define MAX_CANON 255 /* max bytes in term canon input line */ @@ -7185,9 +7173,21 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/syslimits.h newlib-1.20.0-arm/ #define NGROUPS_MAX 16 /* max supplemental group id's */ #ifndef OPEN_MAX #define OPEN_MAX 64 /* max open files per process */ +diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/_types.h newlib-1.20.0-arm/newlib/libc/include/sys/_types.h +--- newlib-1.20.0/newlib/libc/include/sys/_types.h 2007-09-18 21:05:17.000000000 +0100 ++++ newlib-1.20.0-arm/newlib/libc/include/sys/_types.h 2012-04-05 16:52:10.000000000 +0100 +@@ -21,7 +21,7 @@ + typedef unsigned long long __dev_t; + #else + #ifndef __dev_t_defined +-typedef short __dev_t; ++typedef int __dev_t; + #endif + #endif + diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/types.h newlib-1.20.0-arm/newlib/libc/include/sys/types.h --- newlib-1.20.0/newlib/libc/include/sys/types.h 2011-08-01 18:22:18.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/sys/types.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/include/sys/types.h 2012-04-05 16:52:10.000000000 +0100 @@ -131,7 +131,7 @@ defined(__sparc__) || defined(__SPU__) typedef unsigned long ino_t; @@ -7209,7 +7209,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/types.h newlib-1.20.0-arm/newl diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/unistd.h newlib-1.20.0-arm/newlib/libc/include/sys/unistd.h --- newlib-1.20.0/newlib/libc/include/sys/unistd.h 2011-08-19 15:29:34.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/include/sys/unistd.h 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/include/sys/unistd.h 2012-04-05 16:52:10.000000000 +0100 @@ -219,12 +219,10 @@ int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); #endif @@ -7225,7 +7225,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/include/sys/unistd.h newlib-1.20.0-arm/new int _EXFUN(getdtablesize, (void)); diff -Nbaur newlib-1.20.0/newlib/libc/locale/locale.c newlib-1.20.0-arm/newlib/libc/locale/locale.c --- newlib-1.20.0/newlib/libc/locale/locale.c 2011-05-04 09:54:34.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/locale/locale.c 2012-01-06 17:49:53.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/locale/locale.c 2012-04-05 16:52:50.000000000 +0100 @@ -188,7 +188,6 @@ #define _LC_LAST 7 #define ENCODING_LEN 31 @@ -7259,8 +7259,9 @@ diff -Nbaur newlib-1.20.0/newlib/libc/locale/locale.c newlib-1.20.0-arm/newlib/l #endif /* _MB_CAPABLE */ -#ifdef __CYGWIN__ +-static char lc_ctype_charset[ENCODING_LEN + 1] = "UTF-8"; +#ifdef __DEFAULT_UTF8__ - static char lc_ctype_charset[ENCODING_LEN + 1] = "UTF-8"; ++static char lc_ctype_charset[ENCODING_LEN + 1] = "C.UTF-8"; +int __EXPORT __mb_cur_max = 6; #else static char lc_ctype_charset[ENCODING_LEN + 1] = "ASCII"; @@ -7270,7 +7271,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/locale/locale.c newlib-1.20.0-arm/newlib/l static int lc_ctype_cjk_lang = 0; diff -Nbaur newlib-1.20.0/newlib/libc/misc/init.c newlib-1.20.0-arm/newlib/libc/misc/init.c --- newlib-1.20.0/newlib/libc/misc/init.c 2010-06-04 16:30:40.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/misc/init.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/misc/init.c 2012-04-05 16:52:10.000000000 +0100 @@ -40,4 +40,8 @@ for (i = 0; i < count; i++) __init_array_start[i] (); @@ -7282,7 +7283,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/misc/init.c newlib-1.20.0-arm/newlib/libc/ #endif diff -Nbaur newlib-1.20.0/newlib/libc/reent/gettimeofdayr.c newlib-1.20.0-arm/newlib/libc/reent/gettimeofdayr.c --- newlib-1.20.0/newlib/libc/reent/gettimeofdayr.c 2007-07-06 17:56:30.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/reent/gettimeofdayr.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/reent/gettimeofdayr.c 2012-04-05 16:52:10.000000000 +0100 @@ -59,7 +59,7 @@ Check libc.a to see if its available on yours. */ @@ -7301,7 +7302,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/reent/gettimeofdayr.c newlib-1.20.0-arm/ne #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */ diff -Nbaur newlib-1.20.0/newlib/libc/stdio/fopen.c newlib-1.20.0-arm/newlib/libc/stdio/fopen.c --- newlib-1.20.0/newlib/libc/stdio/fopen.c 2004-06-11 21:37:10.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/stdio/fopen.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/stdio/fopen.c 2012-04-05 16:52:10.000000000 +0100 @@ -151,6 +151,9 @@ _flockfile (fp); @@ -7314,7 +7315,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/stdio/fopen.c newlib-1.20.0-arm/newlib/lib fp->_cookie = (_PTR) fp; diff -Nbaur newlib-1.20.0/newlib/libc/stdio/fvwrite.c newlib-1.20.0-arm/newlib/libc/stdio/fvwrite.c --- newlib-1.20.0/newlib/libc/stdio/fvwrite.c 2011-06-14 04:56:05.000000000 +0100 -+++ newlib-1.20.0-arm/newlib/libc/stdio/fvwrite.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/stdio/fvwrite.c 2012-04-05 16:52:10.000000000 +0100 @@ -94,7 +94,8 @@ do { @@ -7327,7 +7328,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/stdio/fvwrite.c newlib-1.20.0-arm/newlib/l p += w; diff -Nbaur newlib-1.20.0/newlib/libc/stdlib/mbtowc_r.c newlib-1.20.0-arm/newlib/libc/stdlib/mbtowc_r.c --- newlib-1.20.0/newlib/libc/stdlib/mbtowc_r.c 2010-01-17 09:39:06.000000000 +0000 -+++ newlib-1.20.0-arm/newlib/libc/stdlib/mbtowc_r.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/stdlib/mbtowc_r.c 2012-04-05 16:52:10.000000000 +0100 @@ -9,7 +9,7 @@ int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t, @@ -7339,7 +7340,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/stdlib/mbtowc_r.c newlib-1.20.0-arm/newlib #else diff -Nbaur newlib-1.20.0/newlib/libc/stdlib/wctomb_r.c newlib-1.20.0-arm/newlib/libc/stdlib/wctomb_r.c --- newlib-1.20.0/newlib/libc/stdlib/wctomb_r.c 2010-01-17 09:39:06.000000000 +0000 -+++ newlib-1.20.0-arm/newlib/libc/stdlib/wctomb_r.c 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/stdlib/wctomb_r.c 2012-04-05 16:52:10.000000000 +0100 @@ -8,7 +8,7 @@ int (*__wctomb) (struct _reent *, char *, wchar_t, const char *charset, @@ -7351,7 +7352,7 @@ diff -Nbaur newlib-1.20.0/newlib/libc/stdlib/wctomb_r.c newlib-1.20.0-arm/newlib #else diff -Nbaur newlib-1.20.0/newlib/libc/syscalls/Makefile.am newlib-1.20.0-arm/newlib/libc/syscalls/Makefile.am --- newlib-1.20.0/newlib/libc/syscalls/Makefile.am 2008-01-03 22:33:37.000000000 +0000 -+++ newlib-1.20.0-arm/newlib/libc/syscalls/Makefile.am 2012-01-06 14:45:34.000000000 +0000 ++++ newlib-1.20.0-arm/newlib/libc/syscalls/Makefile.am 2012-04-05 16:52:10.000000000 +0100 @@ -20,8 +20,9 @@ sysstat.c \ systimes.c \