diff --git a/dkarm-eabi/patches/newlib-2.1.0.patch b/dkarm-eabi/patches/newlib-2.1.0.patch index f9b814e..f669d97 100644 --- a/dkarm-eabi/patches/newlib-2.1.0.patch +++ b/dkarm-eabi/patches/newlib-2.1.0.patch @@ -1,7 +1,7 @@ -diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/configure +diff -Nbaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/configure --- newlib-2.1.0/libgloss/arm/configure 2013-09-20 15:23:41.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/arm/configure 2014-12-10 19:17:29.070756000 +0000 -@@ -1,29 +1,33 @@ ++++ newlib-2.1.0-arm/libgloss/arm/configure 2014-12-16 13:13:31.158756000 +0000 +@@ -1,60 +1,81 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61. @@ -16,10 +16,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. -## --------------------- ## --## M4sh Initialization. ## --## --------------------- ## +## -------------------- ## -+## M4sh Initialization. ## + ## M4sh Initialization. ## +-## --------------------- ## +## -------------------- ## # Be more Bourne compatible @@ -46,10 +45,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -27,34 +31,51 @@ - fi - - - - -# PATH needs CR @@ -59,14 +54,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits -- --# The user is always right. --if test "${PATH_SEPARATOR+set}" != set; then -- echo "#! /bin/sh" >conf$$.sh -- echo "exit 0" >>conf$$.sh -- chmod +x conf$$.sh -- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then -- PATH_SEPARATOR=';' +as_nl=' +' +export as_nl @@ -87,8 +74,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' - else -- PATH_SEPARATOR=: ++ else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; @@ -101,20 +87,29 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' - fi -- rm -f conf$$.sh ++ fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' - fi ++fi + # The user is always right. + if test "${PATH_SEPARATOR+set}" != set; then +- echo "#! /bin/sh" >conf$$.sh +- echo "exit 0" >>conf$$.sh +- chmod +x conf$$.sh +- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +- PATH_SEPARATOR=';' +- else + PATH_SEPARATOR=: +- fi +- rm -f conf$$.sh +-fi +- -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -+# The user is always right. -+if test "${PATH_SEPARATOR+set}" != set; then -+ PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' @@ -122,7 +117,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -63,20 +84,19 @@ +@@ -63,12 +84,11 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) @@ -137,12 +132,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH - do +@@ -76,7 +96,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. -- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS @@ -359,8 +353,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - : else - as_candidate_shells= -- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do @@ -372,29 +365,16 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co /*) for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" -+ # Try only shells that exist, to save several forks. -+ as_shell=$as_dir/$as_base -+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } && -+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : -+ CONFIG_SHELL=$as_shell as_have_required=yes -+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : -+ break 2 -+fi -+fi - done;; - esac -+ as_found=false - done -+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && -+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : -+ CONFIG_SHELL=$SHELL as_have_required=yes -+fi; } - IFS=$as_save_IFS - - +- done;; +- esac +-done +-IFS=$as_save_IFS +- +- - for as_shell in $as_candidate_shells $SHELL; do -- # Try only shells that exist, to save several forks. -- if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + # Try only shells that exist, to save several forks. ++ as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh @@ -408,7 +388,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - *posix*) set -o posix ;; -esac - --fi ++ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : ++ CONFIG_SHELL=$as_shell as_have_required=yes ++ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : ++ break 2 + fi - - -: @@ -429,9 +413,18 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - *posix*) set -o posix ;; -esac - --fi -- -- + fi ++ done;; ++ esac ++ as_found=false ++done ++$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && ++ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : ++ CONFIG_SHELL=$SHELL as_have_required=yes ++fi; } ++IFS=$as_save_IFS + + -: -(as_func_return () { - (exit $1) @@ -460,25 +453,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. --fi -- --if as_func_ret_success; then -- : --else -- exitcode=1 -- echo as_func_ret_success failed. --fi -- --if as_func_ret_failure; then -- exitcode=1 -- echo as_func_ret_failure succeeded. --fi -- --if ( set x; as_func_ret_success y && test x = "$1" ); then -- : --else -- exitcode=1 -- echo positional parameters were not saved. + if test "x$CONFIG_SHELL" != x; then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a @@ -516,6 +490,30 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + exit 1 fi - +-if as_func_ret_success; then +- : +-else +- exitcode=1 +- echo as_func_ret_success failed. + fi +- +-if as_func_ret_failure; then +- exitcode=1 +- echo as_func_ret_failure succeeded. + fi ++SHELL=${CONFIG_SHELL-/bin/sh} ++export SHELL ++# Unset more variables known to interfere with behavior of common tools. ++CLICOLOR_FORCE= GREP_OPTIONS= ++unset CLICOLOR_FORCE GREP_OPTIONS + +-if ( set x; as_func_ret_success y && test x = "$1" ); then +- : +-else +- exitcode=1 +- echo positional parameters were not saved. +-fi +- -test $exitcode = 0) || { (exit 1); exit 1; } - -( @@ -527,23 +525,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -_ASEOF -}; then - break - fi -- - fi -+SHELL=${CONFIG_SHELL-/bin/sh} -+export SHELL -+# Unset more variables known to interfere with behavior of common tools. -+CLICOLOR_FORCE= GREP_OPTIONS= -+unset CLICOLOR_FORCE GREP_OPTIONS - -- done -- -- if test "x$CONFIG_SHELL" != x; then -- for as_var in BASH_ENV ENV -- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var -- done -- export CONFIG_SHELL -- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi +## --------------------- ## +## M4sh Shell Functions. ## @@ -557,6 +538,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co +} +as_unset=as_fn_unset +-fi +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. @@ -565,13 +547,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + return $1 +} # as_fn_set_status -- if test $as_have_required = no; then -- echo This script requires a shell more modern than all the -- echo shells that I found on your system. Please install a -- echo modern shell, or manually run the script under such a -- echo shell if you do have one. -- { (exit 1); exit 1; } --fi +- done +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. @@ -588,6 +564,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co +as_fn_mkdir_p () +{ +- if test "x$CONFIG_SHELL" != x; then +- for as_var in BASH_ENV ENV +- do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac @@ -623,15 +602,27 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + } + s/.*/./; q'` + test -d "$as_dir" && break -+ done + done +- export CONFIG_SHELL +- exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +-fi +- +- +- if test $as_have_required = no; then +- echo This script requires a shell more modern than all the +- echo shells that I found on your system. Please install a +- echo modern shell, or manually run the script under such a +- echo shell if you do have one. +- { (exit 1); exit 1; } +-fi + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" --fi -fi +} # as_fn_mkdir_p +-fi +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. @@ -656,7 +647,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + eval $1=\$$1\$2 + } +fi # as_fn_append -+ + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the @@ -804,7 +795,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co sed -n ' p /[$]LINENO/= -@@ -451,209 +482,189 @@ +@@ -451,9 +482,12 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || @@ -819,11 +810,10 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). -- . "./$as_me.lineno" -- # Exit status is that of the last command. -- exit --} -- +@@ -462,198 +496,175 @@ + exit + } + - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname @@ -831,17 +821,22 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - as_dirname=false -fi - --ECHO_C= ECHO_N= ECHO_T= + ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in ---n*) ++case `echo -n x` in #((((( + -n*) - case `echo 'x\c'` in -- *c*) ECHO_T=' ';; # ECHO_T is single tab character. ++ case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; -- esac;; --*) -- ECHO_N='-n';; --esac -- ++ xy) ECHO_C='\c';; ++ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ++ ECHO_T=' ';; + esac;; + *) + ECHO_N='-n';; + esac + -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr @@ -849,21 +844,25 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - as_expr=false -fi - --rm -f conf$$ conf$$.exe conf$$.file --if test -d conf$$.dir; then -- rm -f conf$$.dir/conf$$.file --else -- rm -f conf$$.dir + rm -f conf$$ conf$$.exe conf$$.file + if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file + else + rm -f conf$$.dir - mkdir conf$$.dir --fi ++ mkdir conf$$.dir 2>/dev/null + fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then -- as_ln_s='ln -s' -- # ... but there are two gotchas: -- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. -- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. ++if (echo >conf$$.file) 2>/dev/null; then ++ if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. -- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || ++ # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln @@ -1013,39 +1012,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -objtype -host_makefile_frag_path -subdirs -+ . "./$as_me.lineno" -+ # Exit status is that of the last command. -+ exit -+} -+ -+ECHO_C= ECHO_N= ECHO_T= -+case `echo -n x` in #((((( -+-n*) -+ case `echo 'xy\c'` in -+ *c*) ECHO_T=' ';; # ECHO_T is single tab character. -+ xy) ECHO_C='\c';; -+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null -+ ECHO_T=' ';; -+ esac;; -+*) -+ ECHO_N='-n';; -+esac -+ -+rm -f conf$$ conf$$.exe conf$$.file -+if test -d conf$$.dir; then -+ rm -f conf$$.dir/conf$$.file -+else -+ rm -f conf$$.dir -+ mkdir conf$$.dir 2>/dev/null -+fi -+if (echo >conf$$.file) 2>/dev/null; then -+ if ln -s conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s='ln -s' -+ # ... but there are two gotchas: -+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. -+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. -+ # In both cases, we have to default to `cp -pR'. -+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln @@ -1200,18 +1166,16 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null -@@ -719,8 +732,9 @@ +@@ -719,7 +732,8 @@ fi case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; -- *) ac_optarg=yes ;; + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; -+ *) ac_optarg=yes ;; + *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. @@ -762,13 +776,20 @@ datarootdir=$ac_optarg ;; @@ -1459,63 +1423,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files -@@ -1183,9 +1232,9 @@ - - Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX -- [$ac_default_prefix] -+ [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX -- [PREFIX] -+ [PREFIX] - - By default, \`make install' will install all the files in - \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -@@ -1195,25 +1244,25 @@ - For better control, use the options below. - - Fine tuning of the installation directories: -- --bindir=DIR user executables [EPREFIX/bin] -- --sbindir=DIR system admin executables [EPREFIX/sbin] -- --libexecdir=DIR program executables [EPREFIX/libexec] -- --sysconfdir=DIR read-only single-machine data [PREFIX/etc] -- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] -- --localstatedir=DIR modifiable single-machine data [PREFIX/var] -- --libdir=DIR object code libraries [EPREFIX/lib] -- --includedir=DIR C header files [PREFIX/include] -- --oldincludedir=DIR C header files for non-gcc [/usr/include] -- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] -- --datadir=DIR read-only architecture-independent data [DATAROOTDIR] -- --infodir=DIR info documentation [DATAROOTDIR/info] -- --localedir=DIR locale-dependent data [DATAROOTDIR/locale] -- --mandir=DIR man documentation [DATAROOTDIR/man] -- --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] -- --htmldir=DIR html documentation [DOCDIR] -- --dvidir=DIR dvi documentation [DOCDIR] -- --pdfdir=DIR pdf documentation [DOCDIR] -- --psdir=DIR ps documentation [DOCDIR] -+ --bindir=DIR user executables [EPREFIX/bin] -+ --sbindir=DIR system admin executables [EPREFIX/sbin] -+ --libexecdir=DIR program executables [EPREFIX/libexec] -+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] -+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] -+ --localstatedir=DIR modifiable single-machine data [PREFIX/var] -+ --libdir=DIR object code libraries [EPREFIX/lib] -+ --includedir=DIR C header files [PREFIX/include] -+ --oldincludedir=DIR C header files for non-gcc [/usr/include] -+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] -+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR] -+ --infodir=DIR info documentation [DATAROOTDIR/info] -+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale] -+ --mandir=DIR man documentation [DATAROOTDIR/man] -+ --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] -+ --htmldir=DIR html documentation [DOCDIR] -+ --dvidir=DIR dvi documentation [DOCDIR] -+ --pdfdir=DIR pdf documentation [DOCDIR] -+ --psdir=DIR ps documentation [DOCDIR] - _ACEOF - - cat <<\_ACEOF @@ -1235,6 +1284,7 @@ cat <<\_ACEOF @@ -1887,14 +1794,13 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} -- ac_cache_corrupted=: + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} -+ ac_cache_corrupted=: + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} @@ -2120,7 +2026,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # Find a good install program. We prefer a C program (faster), -@@ -1886,22 +1964,23 @@ +@@ -1886,11 +1964,12 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. @@ -2137,13 +2043,12 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH - do +@@ -1898,10 +1977,10 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. -- # Account for people who put trailing slashes in PATH elements. + # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ -+ # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ @@ -2165,8 +2070,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co # program-specific install script used by HP pwplus--don't use. : else -- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" -- break 3 + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two @@ -2176,11 +2079,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then -+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" -+ break 3 -+ fi + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 fi fi ++ fi done done ;; @@ -2247,13 +2150,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. -@@ -2043,35 +2134,35 @@ - do +@@ -2044,34 +2135,34 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. -- for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then -+ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 @@ -2321,13 +2222,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. -@@ -2192,18 +2283,18 @@ - do +@@ -2193,17 +2284,17 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. -- for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then -+ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes @@ -2454,13 +2353,12 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -- CFLAGS="" + CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -+ CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -2492,9 +2390,8 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : -- ac_c_werror_flag=$ac_save_c_werror_flag +else -+ ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ @@ -2505,7 +2402,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co /* end confdefs.h. */ int -@@ -2367,37 +2406,13 @@ +@@ -2367,42 +2406,18 @@ return 0; } _ACEOF @@ -2544,10 +2441,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -@@ -2401,8 +2416,8 @@ - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag - fi -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 @@ -2570,13 +2463,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -@@ -2452,25 +2467,25 @@ - do +@@ -2453,24 +2468,24 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. -- for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then -+ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 @@ -2619,13 +2510,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -@@ -2492,25 +2507,25 @@ - do +@@ -2493,24 +2508,24 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. -- for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then -+ for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 @@ -2805,25 +2694,22 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. -@@ -2722,29 +2748,32 @@ - +@@ -2723,59 +2749,79 @@ debug=false ac_cs_recheck=false --ac_cs_silent=false + ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -+ac_cs_silent=false -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## --## M4sh Initialization. ## --## --------------------- ## +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## -+## M4sh Initialization. ## + ## M4sh Initialization. ## +-## --------------------- ## +## -------------------- ## # Be more Bourne compatible @@ -2850,10 +2736,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -2748,34 +2777,51 @@ - fi - - - - -# PATH needs CR @@ -2863,14 +2745,6 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits -- --# The user is always right. --if test "${PATH_SEPARATOR+set}" != set; then -- echo "#! /bin/sh" >conf$$.sh -- echo "exit 0" >>conf$$.sh -- chmod +x conf$$.sh -- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then -- PATH_SEPARATOR=';' +as_nl=' +' +export as_nl @@ -2891,8 +2765,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' - else -- PATH_SEPARATOR=: ++ else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; @@ -2905,20 +2778,29 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' - fi -- rm -f conf$$.sh ++ fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' - fi ++fi + # The user is always right. + if test "${PATH_SEPARATOR+set}" != set; then +- echo "#! /bin/sh" >conf$$.sh +- echo "exit 0" >>conf$$.sh +- chmod +x conf$$.sh +- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then +- PATH_SEPARATOR=';' +- else + PATH_SEPARATOR=: +- fi +- rm -f conf$$.sh +-fi +- -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -+# The user is always right. -+if test "${PATH_SEPARATOR+set}" != set; then -+ PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' @@ -2926,7 +2808,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -@@ -2784,20 +2830,19 @@ +@@ -2784,12 +2830,11 @@ # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) @@ -2941,12 +2823,11 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH - do +@@ -2797,7 +2842,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. -- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS @@ -3197,26 +3078,20 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then -- as_ln_s='ln -s' -- # ... but there are two gotchas: -- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. -- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. -- # In both cases, we have to default to `cp -p'. -- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || -- as_ln_s='cp -p' --elif ln conf$$.file conf$$ 2>/dev/null; then -- as_ln_s=ln +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s='ln -s' -+ # ... but there are two gotchas: -+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. -+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- # In both cases, we have to default to `cp -p'. + # In both cases, we have to default to `cp -pR'. -+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -p' +-elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln + as_ln_s=ln + else + as_ln_s='cp -pR' + fi @@ -3340,7 +3215,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS -@@ -3021,27 +3142,36 @@ +@@ -3021,23 +3142,32 @@ _ACEOF @@ -3378,13 +3253,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co + do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions -- --file=FILE[:TEMPLATE] -- instantiate the configuration file FILE -+ --file=FILE[:TEMPLATE] -+ instantiate the configuration file FILE - - Configuration files: - $config_files + --file=FILE[:TEMPLATE] @@ -3049,36 +3179,42 @@ Configuration commands: $config_commands @@ -4041,7 +3910,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co p q } -@@ -3565,36 +3706,37 @@ +@@ -3565,14 +3706,14 @@ /@docdir@/p /@infodir@/p /@localedir@/p @@ -4061,14 +3930,7 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g -- s&\\\${datarootdir}&$datarootdir&g' ;; -+ s&\\\${datarootdir}&$datarootdir&g' ;; - esac - _ACEOF - +@@ -3586,15 +3727,16 @@ # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? @@ -4234,9 +4096,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure newlib-2.1.0-arm/libgloss/arm/co fi -diff -NBaur newlib-2.1.0/libgloss/arm/configure.in newlib-2.1.0-arm/libgloss/arm/configure.in +diff -Nbaur newlib-2.1.0/libgloss/arm/configure.in newlib-2.1.0-arm/libgloss/arm/configure.in --- newlib-2.1.0/libgloss/arm/configure.in 2013-09-20 15:23:41.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/arm/configure.in 2014-12-10 19:17:29.070756000 +0000 ++++ newlib-2.1.0-arm/libgloss/arm/configure.in 2014-12-16 13:13:31.162756000 +0000 @@ -59,7 +59,7 @@ AC_SUBST(objtype) @@ -4246,9 +4108,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/configure.in newlib-2.1.0-arm/libgloss/arm dnl We have to assign the same value to other variables because autoconf dnl doesn't provide a mechanism to substitute a replacement keyword with -diff -NBaur newlib-2.1.0/libgloss/arm/_kill.c newlib-2.1.0-arm/libgloss/arm/_kill.c +diff -Nbaur newlib-2.1.0/libgloss/arm/_kill.c newlib-2.1.0-arm/libgloss/arm/_kill.c --- newlib-2.1.0/libgloss/arm/_kill.c 2007-01-03 16:55:25.000000000 +0000 -+++ newlib-2.1.0-arm/libgloss/arm/_kill.c 2014-12-10 19:17:29.054756000 +0000 ++++ newlib-2.1.0-arm/libgloss/arm/_kill.c 2014-12-16 13:13:31.162756000 +0000 @@ -1,6 +1,7 @@ #include <_ansi.h> #include @@ -4268,9 +4130,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/_kill.c newlib-2.1.0-arm/libgloss/arm/_kil #endif +#endif } -diff -NBaur newlib-2.1.0/libgloss/arm/linux-syscalls0.S newlib-2.1.0-arm/libgloss/arm/linux-syscalls0.S +diff -Nbaur newlib-2.1.0/libgloss/arm/linux-syscalls0.S newlib-2.1.0-arm/libgloss/arm/linux-syscalls0.S --- newlib-2.1.0/libgloss/arm/linux-syscalls0.S 2009-10-26 10:00:41.000000000 +0000 -+++ newlib-2.1.0-arm/libgloss/arm/linux-syscalls0.S 2014-12-10 19:17:29.070756000 +0000 ++++ newlib-2.1.0-arm/libgloss/arm/linux-syscalls0.S 2014-12-16 13:13:31.162756000 +0000 @@ -7,6 +7,7 @@ */ @@ -4314,9 +4176,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/linux-syscalls0.S newlib-2.1.0-arm/libglos #define SYSCALL0(name) SYSCALL3(name) #define SYSCALL3(name) SYSCALL4(name) -diff -NBaur newlib-2.1.0/libgloss/arm/redboot-syscalls.c newlib-2.1.0-arm/libgloss/arm/redboot-syscalls.c +diff -Nbaur newlib-2.1.0/libgloss/arm/redboot-syscalls.c newlib-2.1.0-arm/libgloss/arm/redboot-syscalls.c --- newlib-2.1.0/libgloss/arm/redboot-syscalls.c 2008-01-03 22:38:30.000000000 +0000 -+++ newlib-2.1.0-arm/libgloss/arm/redboot-syscalls.c 2014-12-10 19:17:29.070756000 +0000 ++++ newlib-2.1.0-arm/libgloss/arm/redboot-syscalls.c 2014-12-16 13:13:31.162756000 +0000 @@ -20,13 +20,18 @@ #include #include @@ -4336,9 +4198,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/redboot-syscalls.c newlib-2.1.0-arm/libglo #else asm ("swi 0x180001\n"); #endif -diff -NBaur newlib-2.1.0/libgloss/arm/syscalls.c newlib-2.1.0-arm/libgloss/arm/syscalls.c +diff -Nbaur newlib-2.1.0/libgloss/arm/syscalls.c newlib-2.1.0-arm/libgloss/arm/syscalls.c --- newlib-2.1.0/libgloss/arm/syscalls.c 2010-08-27 12:55:36.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/arm/syscalls.c 2014-12-10 19:17:29.070756000 +0000 ++++ newlib-2.1.0-arm/libgloss/arm/syscalls.c 2014-12-16 13:13:31.162756000 +0000 @@ -16,6 +16,7 @@ #include #include @@ -4615,9 +4477,9 @@ diff -NBaur newlib-2.1.0/libgloss/arm/syscalls.c newlib-2.1.0-arm/libgloss/arm/s return checkerror (r0); #endif } -diff -NBaur newlib-2.1.0/libgloss/configure newlib-2.1.0-arm/libgloss/configure +diff -Nbaur newlib-2.1.0/libgloss/configure newlib-2.1.0-arm/libgloss/configure --- newlib-2.1.0/libgloss/configure 2013-07-16 08:48:53.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/configure 2014-12-10 19:17:29.074756000 +0000 ++++ newlib-2.1.0-arm/libgloss/configure 2014-12-16 13:13:31.162756000 +0000 @@ -2568,6 +2568,8 @@ fi @@ -4627,9 +4489,9 @@ diff -NBaur newlib-2.1.0/libgloss/configure newlib-2.1.0-arm/libgloss/configure DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" -diff -NBaur newlib-2.1.0/libgloss/configure.in newlib-2.1.0-arm/libgloss/configure.in +diff -Nbaur newlib-2.1.0/libgloss/configure.in newlib-2.1.0-arm/libgloss/configure.in --- newlib-2.1.0/libgloss/configure.in 2013-07-16 08:48:53.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/configure.in 2014-12-10 19:17:29.074756000 +0000 ++++ newlib-2.1.0-arm/libgloss/configure.in 2014-12-16 13:13:31.162756000 +0000 @@ -2,6 +2,7 @@ AC_PREREQ(2.59) AC_INIT([libgloss],[LIBGLOSS_VERSION]) @@ -4646,9 +4508,9 @@ diff -NBaur newlib-2.1.0/libgloss/configure.in newlib-2.1.0-arm/libgloss/configu LIB_AC_PROG_CC AS=${AS-as} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/abort.c newlib-2.1.0-arm/libgloss/libsysbase/abort.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/abort.c newlib-2.1.0-arm/libgloss/libsysbase/abort.c --- newlib-2.1.0/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/abort.c 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/abort.c 2014-12-16 13:13:31.162756000 +0000 @@ -0,0 +1,8 @@ +#include +#include @@ -4658,9 +4520,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/abort.c newlib-2.1.0-arm/libgloss/l + _exit (1); +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/acconfig.h newlib-2.1.0-arm/libgloss/libsysbase/acconfig.h +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/acconfig.h newlib-2.1.0-arm/libgloss/libsysbase/acconfig.h --- newlib-2.1.0/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/acconfig.h 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/acconfig.h 2014-12-16 13:13:31.162756000 +0000 @@ -0,0 +1,29 @@ +/* Name of package. */ +#undef PACKAGE @@ -4691,9 +4553,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/acconfig.h newlib-2.1.0-arm/libglos + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -NBaur newlib-2.1.0/libgloss/libsysbase/aclocal.m4 newlib-2.1.0-arm/libgloss/libsysbase/aclocal.m4 +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/aclocal.m4 newlib-2.1.0-arm/libgloss/libsysbase/aclocal.m4 --- newlib-2.1.0/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/aclocal.m4 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/aclocal.m4 2014-12-16 13:13:31.162756000 +0000 @@ -0,0 +1,344 @@ +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- + @@ -5039,9 +4901,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/aclocal.m4 newlib-2.1.0-arm/libglos +]) + +m4_include([../acinclude.m4]) -diff -NBaur newlib-2.1.0/libgloss/libsysbase/build_argv.c newlib-2.1.0-arm/libgloss/libsysbase/build_argv.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/build_argv.c newlib-2.1.0-arm/libgloss/libsysbase/build_argv.c --- newlib-2.1.0/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/build_argv.c 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/build_argv.c 2014-12-16 13:13:31.166756000 +0000 @@ -0,0 +1,31 @@ +struct __argv { + int argvMagic; @@ -5074,9 +4936,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/build_argv.c newlib-2.1.0-arm/libgl + argstruct->argc = argCount; + argstruct->endARGV = &argv[argCount]; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/chdir.c newlib-2.1.0-arm/libgloss/libsysbase/chdir.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/chdir.c newlib-2.1.0-arm/libgloss/libsysbase/chdir.c --- newlib-2.1.0/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/chdir.c 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/chdir.c 2014-12-16 13:13:31.166756000 +0000 @@ -0,0 +1,192 @@ +#include +#include @@ -5270,9 +5132,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/chdir.c newlib-2.1.0-arm/libgloss/l + + return buf; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/chmod.c newlib-2.1.0-arm/libgloss/libsysbase/chmod.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/chmod.c newlib-2.1.0-arm/libgloss/libsysbase/chmod.c --- newlib-2.1.0/libgloss/libsysbase/chmod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/chmod.c 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/chmod.c 2014-12-16 13:13:31.166756000 +0000 @@ -0,0 +1,28 @@ +#include "config.h" +#include <_ansi.h> @@ -5302,9 +5164,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/chmod.c newlib-2.1.0-arm/libgloss/l + return ret; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/close.c newlib-2.1.0-arm/libgloss/libsysbase/close.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/close.c newlib-2.1.0-arm/libgloss/libsysbase/close.c --- newlib-2.1.0/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/close.c 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/close.c 2014-12-17 21:20:46.430756000 +0000 @@ -0,0 +1,43 @@ +#include "config.h" +#include <_ansi.h> @@ -5312,7 +5174,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/close.c newlib-2.1.0-arm/libgloss/l +#include +#include + -+#include "handle_manager.h" ++#include + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -5349,9 +5211,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/close.c newlib-2.1.0-arm/libgloss/l + } + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/config.h.in newlib-2.1.0-arm/libgloss/libsysbase/config.h.in +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/config.h.in newlib-2.1.0-arm/libgloss/libsysbase/config.h.in --- newlib-2.1.0/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/config.h.in 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/config.h.in 2014-12-16 13:13:31.166756000 +0000 @@ -0,0 +1,25 @@ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + @@ -5378,9 +5240,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/config.h.in newlib-2.1.0-arm/libglo + +/* symbol prefix */ +#undef __SYMBOL_PREFIX -diff -NBaur newlib-2.1.0/libgloss/libsysbase/configure newlib-2.1.0-arm/libgloss/libsysbase/configure +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/configure newlib-2.1.0-arm/libgloss/libsysbase/configure --- newlib-2.1.0/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/configure 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/configure 2014-12-16 13:13:31.166756000 +0000 @@ -0,0 +1,4170 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. @@ -9552,9 +9414,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/configure newlib-2.1.0-arm/libgloss + + + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/configure.in newlib-2.1.0-arm/libgloss/libsysbase/configure.in +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/configure.in newlib-2.1.0-arm/libgloss/libsysbase/configure.in --- newlib-2.1.0/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/configure.in 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/configure.in 2014-12-16 13:13:31.170756000 +0000 @@ -0,0 +1,210 @@ +# Copyright (c) 1995, 1996 Cygnus Support +# @@ -9766,9 +9628,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/configure.in newlib-2.1.0-arm/libgl +AC_OUTPUT + + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/dirent.c newlib-2.1.0-arm/libgloss/libsysbase/dirent.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/dirent.c newlib-2.1.0-arm/libgloss/libsysbase/dirent.c --- newlib-2.1.0/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/dirent.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/dirent.c 2014-12-16 13:13:31.170756000 +0000 @@ -0,0 +1,250 @@ +#include +#include @@ -10020,9 +9882,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/dirent.c newlib-2.1.0-arm/libgloss/ + + return dirp->position; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/environ.c newlib-2.1.0-arm/libgloss/libsysbase/environ.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/environ.c newlib-2.1.0-arm/libgloss/libsysbase/environ.c --- newlib-2.1.0/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/environ.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/environ.c 2014-12-16 13:13:31.170756000 +0000 @@ -0,0 +1,6 @@ +/* + * Version of environ for no OS. @@ -10030,9 +9892,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/environ.c newlib-2.1.0-arm/libgloss + +char *__env[1] = { 0 }; +char **environ = __env; -diff -NBaur newlib-2.1.0/libgloss/libsysbase/execve.c newlib-2.1.0-arm/libgloss/libsysbase/execve.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/execve.c newlib-2.1.0-arm/libgloss/libsysbase/execve.c --- newlib-2.1.0/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/execve.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/execve.c 2014-12-16 13:13:31.170756000 +0000 @@ -0,0 +1,31 @@ +/* + * Stub version of execve. @@ -10065,9 +9927,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/execve.c newlib-2.1.0-arm/libgloss/ + return -1; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/_exit.c newlib-2.1.0-arm/libgloss/libsysbase/_exit.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/_exit.c newlib-2.1.0-arm/libgloss/libsysbase/_exit.c --- newlib-2.1.0/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/_exit.c 2014-12-10 19:17:29.078756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/_exit.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,19 @@ +/* Stub version of _exit. */ + @@ -10088,9 +9950,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/_exit.c newlib-2.1.0-arm/libgloss/l + + while(1); +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/fchmod.c newlib-2.1.0-arm/libgloss/libsysbase/fchmod.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/fchmod.c newlib-2.1.0-arm/libgloss/libsysbase/fchmod.c --- newlib-2.1.0/libgloss/libsysbase/fchmod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/fchmod.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/fchmod.c 2014-12-17 21:21:54.750756000 +0000 @@ -0,0 +1,31 @@ +#include "config.h" +#include <_ansi.h> @@ -10100,7 +9962,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/fchmod.c newlib-2.1.0-arm/libgloss/ +#include +#include + -+#include "handle_manager.h" ++#include + +int fchmod(int fd, mode_t mode) { + int ret = -1, dev; @@ -10123,9 +9985,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/fchmod.c newlib-2.1.0-arm/libgloss/ + } + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/flock.c newlib-2.1.0-arm/libgloss/libsysbase/flock.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/flock.c newlib-2.1.0-arm/libgloss/libsysbase/flock.c --- newlib-2.1.0/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/flock.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/flock.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,21 @@ +#include +#include <_ansi.h> @@ -10148,9 +10010,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/flock.c newlib-2.1.0-arm/libgloss/l +{ + __lock_release_recursive(*(_LOCK_RECURSIVE_T*)&fp->_lock); +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/fork.c newlib-2.1.0-arm/libgloss/libsysbase/fork.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/fork.c newlib-2.1.0-arm/libgloss/libsysbase/fork.c --- newlib-2.1.0/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/fork.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/fork.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,25 @@ +/* + * Stub version of fork. @@ -10177,9 +10039,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/fork.c newlib-2.1.0-arm/libgloss/li + r->_errno = ENOSYS; + return -1; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/fstat.c newlib-2.1.0-arm/libgloss/libsysbase/fstat.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/fstat.c newlib-2.1.0-arm/libgloss/libsysbase/fstat.c --- newlib-2.1.0/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/fstat.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/fstat.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,48 @@ +#include "config.h" +#include <_ansi.h> @@ -10229,9 +10091,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/fstat.c newlib-2.1.0-arm/libgloss/l + } + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/fsync.c newlib-2.1.0-arm/libgloss/libsysbase/fsync.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/fsync.c newlib-2.1.0-arm/libgloss/libsysbase/fsync.c --- newlib-2.1.0/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/fsync.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/fsync.c 2014-12-17 21:22:42.414756000 +0000 @@ -0,0 +1,39 @@ +#include "config.h" +#include <_ansi.h> @@ -10240,7 +10102,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/fsync.c newlib-2.1.0-arm/libgloss/l +#include +#include + -+#include "handle_manager.h" ++#include + +int _DEFUN (fsync,(fileDesc), + int fileDesc ) { @@ -10272,9 +10134,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/fsync.c newlib-2.1.0-arm/libgloss/l + + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/ftruncate.c newlib-2.1.0-arm/libgloss/libsysbase/ftruncate.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/ftruncate.c newlib-2.1.0-arm/libgloss/libsysbase/ftruncate.c --- newlib-2.1.0/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/ftruncate.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/ftruncate.c 2014-12-17 21:23:02.914756000 +0000 @@ -0,0 +1,40 @@ +#include "config.h" +#include <_ansi.h> @@ -10283,7 +10145,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/ftruncate.c newlib-2.1.0-arm/libglo +#include +#include + -+#include "handle_manager.h" ++#include + +int _DEFUN (ftruncate,(fileDesc, len), + int fileDesc _AND @@ -10316,9 +10178,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/ftruncate.c newlib-2.1.0-arm/libglo + + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/getpid.c newlib-2.1.0-arm/libgloss/libsysbase/getpid.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/getpid.c newlib-2.1.0-arm/libgloss/libsysbase/getpid.c --- newlib-2.1.0/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/getpid.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/getpid.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,21 @@ +#include "config.h" +#include <_ansi.h> @@ -10341,9 +10203,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/getpid.c newlib-2.1.0-arm/libgloss/ + return -1; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/getreent.c newlib-2.1.0-arm/libgloss/libsysbase/getreent.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/getreent.c newlib-2.1.0-arm/libgloss/libsysbase/getreent.c --- newlib-2.1.0/libgloss/libsysbase/getreent.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/getreent.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/getreent.c 2014-12-17 21:18:32.458756000 +0000 @@ -0,0 +1,22 @@ + +/* default reentrant pointer when multithread enabled */ @@ -10359,17 +10221,17 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/getreent.c newlib-2.1.0-arm/libglos +struct _reent * +_DEFUN_VOID(__getreent) +{ -+ if ( __syscalls.__getreent ) { -+ return __syscalls.__getreent(); ++ if ( __syscalls.getreent ) { ++ return __syscalls.getreent(); + } else { + return _impure_ptr; + } +} + + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/gettod.c newlib-2.1.0-arm/libgloss/libsysbase/gettod.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/gettod.c newlib-2.1.0-arm/libgloss/libsysbase/gettod.c --- newlib-2.1.0/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/gettod.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/gettod.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,35 @@ +#include "config.h" +#include <_ansi.h> @@ -10406,14 +10268,14 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/gettod.c newlib-2.1.0-arm/libgloss/ + +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/handle_manager.c newlib-2.1.0-arm/libgloss/libsysbase/handle_manager.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/handle_manager.c newlib-2.1.0-arm/libgloss/libsysbase/handle_manager.c --- newlib-2.1.0/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/handle_manager.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/handle_manager.c 2014-12-17 21:16:19.778756000 +0000 @@ -0,0 +1,52 @@ +#include +#include + -+#include "handle_manager.h" ++#include + +#define MAX_HANDLES 1024 + @@ -10434,7 +10296,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/handle_manager.c newlib-2.1.0-arm/l + +} + -+int __alloc_handle(int size) { ++int __alloc_handle(size_t size) { + + int i, ret = -1; + @@ -10462,24 +10324,10 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/handle_manager.c newlib-2.1.0-arm/l + +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/handle_manager.h newlib-2.1.0-arm/libgloss/libsysbase/handle_manager.h ---- newlib-2.1.0/libgloss/libsysbase/handle_manager.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/handle_manager.h 2014-12-10 19:17:29.082756000 +0000 -@@ -0,0 +1,10 @@ -+#ifndef __HANDLE_MANAGER_H__ -+#define __HANDLE_MANAGER_H__ -+ -+#include -+ -+void __release_handle(int fd); -+int __alloc_handle(int size); -+__handle *__get_handle(int fd); -+ -+#endif -diff -NBaur newlib-2.1.0/libgloss/libsysbase/iosupport.c newlib-2.1.0-arm/libgloss/libsysbase/iosupport.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/iosupport.c newlib-2.1.0-arm/libgloss/libsysbase/iosupport.c --- newlib-2.1.0/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/iosupport.c 2014-12-10 19:17:29.082756000 +0000 -@@ -0,0 +1,122 @@ ++++ newlib-2.1.0-arm/libgloss/libsysbase/iosupport.c 2014-12-16 14:09:29.914756000 +0000 +@@ -0,0 +1,139 @@ +#include +#include +#include @@ -10498,7 +10346,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/iosupport.c newlib-2.1.0-arm/libglo +const devoptab_t dotab_stdnull = { +//--------------------------------------------------------------------------------- + "stdnull", // device name -+ 0, // size of file structure ++ 0, // size of file structure + NULL, // device open + NULL, // device close + NULL, // device write @@ -10511,7 +10359,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/iosupport.c newlib-2.1.0-arm/libglo + NULL, // device chdir + NULL, // device rename + NULL, // device mkdir -+ 0, // dirStateSize ++ 0, // dirStateSize + NULL, // device diropen_r + NULL, // device dirreset_r + NULL, // device dirnext_r @@ -10519,7 +10367,11 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/iosupport.c newlib-2.1.0-arm/libglo + NULL, // device statvfs_r + NULL, // device ftruncate_r + NULL, // device fsync_r -+ NULL // deviceData ++ NULL, // deviceData ++ NULL, // chmod_r ++ NULL, // fchmod_r ++ NULL, // rmdir_r ++ false // stdioUnbuffered +}; + +//--------------------------------------------------------------------------------- @@ -10602,9 +10454,22 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/iosupport.c newlib-2.1.0-arm/libglo + } +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/isatty.c newlib-2.1.0-arm/libgloss/libsysbase/isatty.c ++//--------------------------------------------------------------------------------- ++bool WantUnbufferedIO(const char *name) { ++//--------------------------------------------------------------------------------- ++ const devoptab_t *optab = GetDeviceOpTab(name); ++ ++ if (NULL != optab) { ++ return optab->stdioUnbuffered; ++ } ++ ++ return false; ++} ++ ++ +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/isatty.c newlib-2.1.0-arm/libgloss/libsysbase/isatty.c --- newlib-2.1.0/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/isatty.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/isatty.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,20 @@ +#include "config.h" +#include <_ansi.h> @@ -10626,9 +10491,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/isatty.c newlib-2.1.0-arm/libgloss/ +#endif + return 0; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/kill.c newlib-2.1.0-arm/libgloss/libsysbase/kill.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/kill.c newlib-2.1.0-arm/libgloss/libsysbase/kill.c --- newlib-2.1.0/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/kill.c 2014-12-10 19:17:29.082756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/kill.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,23 @@ +/* + * Stub version of kill. @@ -10653,9 +10518,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/kill.c newlib-2.1.0-arm/libgloss/li + ptr->_errno = ENOSYS; + return -1; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/link.c newlib-2.1.0-arm/libgloss/libsysbase/link.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/link.c newlib-2.1.0-arm/libgloss/libsysbase/link.c --- newlib-2.1.0/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/link.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/link.c 2014-12-16 13:13:31.174756000 +0000 @@ -0,0 +1,37 @@ +#include "config.h" +#include <_ansi.h> @@ -10694,9 +10559,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/link.c newlib-2.1.0-arm/libgloss/li + return ret; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/lseek.c newlib-2.1.0-arm/libgloss/libsysbase/lseek.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/lseek.c newlib-2.1.0-arm/libgloss/libsysbase/lseek.c --- newlib-2.1.0/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/lseek.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/lseek.c 2014-12-17 21:21:34.790756000 +0000 @@ -0,0 +1,57 @@ +#include "config.h" +#include <_ansi.h> @@ -10705,7 +10570,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/lseek.c newlib-2.1.0-arm/libgloss/l + +#include + -+#include "handle_manager.h" ++#include + +//--------------------------------------------------------------------------------- +#ifdef REENTRANT_SYSCALLS_PROVIDED @@ -10755,9 +10620,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/lseek.c newlib-2.1.0-arm/libgloss/l + return ret; + +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/Makefile.in newlib-2.1.0-arm/libgloss/libsysbase/Makefile.in +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/Makefile.in newlib-2.1.0-arm/libgloss/libsysbase/Makefile.in --- newlib-2.1.0/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/Makefile.in 2014-12-10 19:17:29.074756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/Makefile.in 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,148 @@ +# Copyright (c) 1998 Cygnus Support +# @@ -10907,15 +10772,15 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/Makefile.in newlib-2.1.0-arm/libglo + +config.status: configure + $(SHELL) config.status --recheck -diff -NBaur newlib-2.1.0/libgloss/libsysbase/malloc_vars.c newlib-2.1.0-arm/libgloss/libsysbase/malloc_vars.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/malloc_vars.c newlib-2.1.0-arm/libgloss/libsysbase/malloc_vars.c --- newlib-2.1.0/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/malloc_vars.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/malloc_vars.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,2 @@ +char *fake_heap_end = (char*)0; +char *fake_heap_start = (char*)0; -diff -NBaur newlib-2.1.0/libgloss/libsysbase/mkdir.c newlib-2.1.0-arm/libgloss/libsysbase/mkdir.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/mkdir.c newlib-2.1.0-arm/libgloss/libsysbase/mkdir.c --- newlib-2.1.0/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/mkdir.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/mkdir.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,18 @@ +#include +#include @@ -10935,9 +10800,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/mkdir.c newlib-2.1.0-arm/libgloss/l + + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/open.c newlib-2.1.0-arm/libgloss/libsysbase/open.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/open.c newlib-2.1.0-arm/libgloss/libsysbase/open.c --- newlib-2.1.0/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/open.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/open.c 2014-12-17 21:19:07.126756000 +0000 @@ -0,0 +1,60 @@ +#include "config.h" +#include <_ansi.h> @@ -10947,7 +10812,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/open.c newlib-2.1.0-arm/libgloss/li +#include +#include + -+#include "handle_manager.h" ++#include + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -10979,7 +10844,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/open.c newlib-2.1.0-arm/libgloss/li + if ( -1 != fd ) { + handle = __get_handle(fd); + handle->device = dev; -+ handle->fileStruct = ((void *)handle) + sizeof(__handle); ++ handle->fileStruct = (void *)(handle+1); + + ret = devoptab_list[dev]->open_r(r, handle->fileStruct, file, flags, mode); + @@ -10999,9 +10864,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/open.c newlib-2.1.0-arm/libgloss/li + + return fd; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/read.c newlib-2.1.0-arm/libgloss/libsysbase/read.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/read.c newlib-2.1.0-arm/libgloss/libsysbase/read.c --- newlib-2.1.0/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/read.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/read.c 2014-12-17 21:21:00.574756000 +0000 @@ -0,0 +1,50 @@ +#include "config.h" +#include <_ansi.h> @@ -11009,7 +10874,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/read.c newlib-2.1.0-arm/libgloss/li +#include +#include + -+#include "handle_manager.h" ++#include + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -11053,9 +10918,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/read.c newlib-2.1.0-arm/libgloss/li + return ret; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/rename.c newlib-2.1.0-arm/libgloss/libsysbase/rename.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/rename.c newlib-2.1.0-arm/libgloss/libsysbase/rename.c --- newlib-2.1.0/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/rename.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/rename.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,40 @@ +#include "config.h" +#include @@ -11097,9 +10962,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/rename.c newlib-2.1.0-arm/libgloss/ + + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/rmdir.c newlib-2.1.0-arm/libgloss/libsysbase/rmdir.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/rmdir.c newlib-2.1.0-arm/libgloss/libsysbase/rmdir.c --- newlib-2.1.0/libgloss/libsysbase/rmdir.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/rmdir.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/rmdir.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,24 @@ +#include "config.h" +#include <_ansi.h> @@ -11125,9 +10990,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/rmdir.c newlib-2.1.0-arm/libgloss/l + + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/sbrk.c newlib-2.1.0-arm/libgloss/libsysbase/sbrk.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/sbrk.c newlib-2.1.0-arm/libgloss/libsysbase/sbrk.c --- newlib-2.1.0/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/sbrk.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/sbrk.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,60 @@ +#include "config.h" +#include <_ansi.h> @@ -11189,9 +11054,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/sbrk.c newlib-2.1.0-arm/libgloss/li + heap_start += incr; + return (caddr_t) prev_heap_start; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/stat.c newlib-2.1.0-arm/libgloss/libsysbase/stat.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/stat.c newlib-2.1.0-arm/libgloss/libsysbase/stat.c --- newlib-2.1.0/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/stat.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/stat.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,43 @@ +#include "config.h" +#include <_ansi.h> @@ -11236,9 +11101,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/stat.c newlib-2.1.0-arm/libgloss/li + return ret; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/statvfs.c newlib-2.1.0-arm/libgloss/libsysbase/statvfs.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/statvfs.c newlib-2.1.0-arm/libgloss/libsysbase/statvfs.c --- newlib-2.1.0/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/statvfs.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/statvfs.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,23 @@ +#include +#include @@ -11263,9 +11128,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/statvfs.c newlib-2.1.0-arm/libgloss + + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/syscall_support.c newlib-2.1.0-arm/libgloss/libsysbase/syscall_support.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/syscall_support.c newlib-2.1.0-arm/libgloss/libsysbase/syscall_support.c --- newlib-2.1.0/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/syscall_support.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/syscall_support.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,51 @@ +#include + @@ -11318,9 +11183,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/syscall_support.c newlib-2.1.0-arm/ + return 0; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/times.c newlib-2.1.0-arm/libgloss/libsysbase/times.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/times.c newlib-2.1.0-arm/libgloss/libsysbase/times.c --- newlib-2.1.0/libgloss/libsysbase/times.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/times.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/times.c 2014-12-16 13:13:31.178756000 +0000 @@ -0,0 +1,21 @@ +#include "config.h" +#include <_ansi.h> @@ -11343,9 +11208,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/times.c newlib-2.1.0-arm/libgloss/l + return (clock_t)-1; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/truncate.c newlib-2.1.0-arm/libgloss/libsysbase/truncate.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/truncate.c newlib-2.1.0-arm/libgloss/libsysbase/truncate.c --- newlib-2.1.0/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/truncate.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/truncate.c 2014-12-17 21:22:21.522756000 +0000 @@ -0,0 +1,59 @@ +#include "config.h" +#include <_ansi.h> @@ -11354,7 +11219,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/truncate.c newlib-2.1.0-arm/libglos +#include +#include + -+#include "handle_manager.h" ++#include + +int _DEFUN (truncate, (file, len), + const char *file _AND @@ -11406,9 +11271,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/truncate.c newlib-2.1.0-arm/libglos + + return ret; +} -diff -NBaur newlib-2.1.0/libgloss/libsysbase/unlink.c newlib-2.1.0-arm/libgloss/libsysbase/unlink.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/unlink.c newlib-2.1.0-arm/libgloss/libsysbase/unlink.c --- newlib-2.1.0/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/unlink.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/unlink.c 2014-12-16 13:13:31.182756000 +0000 @@ -0,0 +1,36 @@ +#include "config.h" +#include <_ansi.h> @@ -11446,9 +11311,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/unlink.c newlib-2.1.0-arm/libgloss/ + return ret; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/wait.c newlib-2.1.0-arm/libgloss/libsysbase/wait.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/wait.c newlib-2.1.0-arm/libgloss/libsysbase/wait.c --- newlib-2.1.0/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/wait.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/wait.c 2014-12-16 13:13:31.182756000 +0000 @@ -0,0 +1,28 @@ +/* + * Stub version of wait. @@ -11478,9 +11343,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/wait.c newlib-2.1.0-arm/libgloss/li + return -1; +} + -diff -NBaur newlib-2.1.0/libgloss/libsysbase/warning.h newlib-2.1.0-arm/libgloss/libsysbase/warning.h +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/warning.h newlib-2.1.0-arm/libgloss/libsysbase/warning.h --- newlib-2.1.0/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/warning.h 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/warning.h 2014-12-16 13:13:31.182756000 +0000 @@ -0,0 +1,43 @@ +#ifndef __WARNING_H__ +#define __WARNING_H__ @@ -11525,9 +11390,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/warning.h newlib-2.1.0-arm/libgloss + "warning: " #name " is not implemented and will always fail") + +#endif /* __WARNING_H__ */ -diff -NBaur newlib-2.1.0/libgloss/libsysbase/write.c newlib-2.1.0-arm/libgloss/libsysbase/write.c +diff -Nbaur newlib-2.1.0/libgloss/libsysbase/write.c newlib-2.1.0-arm/libgloss/libsysbase/write.c --- newlib-2.1.0/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/libgloss/libsysbase/write.c 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/libgloss/libsysbase/write.c 2014-12-17 21:21:22.158756000 +0000 @@ -0,0 +1,51 @@ +#include "config.h" +#include <_ansi.h> @@ -11535,7 +11400,7 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/write.c newlib-2.1.0-arm/libgloss/l +#include +#include + -+#include "handle_manager.h" ++#include + +#ifdef REENTRANT_SYSCALLS_PROVIDED +//--------------------------------------------------------------------------------- @@ -11580,9 +11445,9 @@ diff -NBaur newlib-2.1.0/libgloss/libsysbase/write.c newlib-2.1.0-arm/libgloss/l + } + return ret; +} -diff -NBaur newlib-2.1.0/newlib/configure.host newlib-2.1.0-arm/newlib/configure.host +diff -Nbaur newlib-2.1.0/newlib/configure.host newlib-2.1.0-arm/newlib/configure.host --- newlib-2.1.0/newlib/configure.host 2013-12-20 10:27:49.000000000 +0000 -+++ newlib-2.1.0-arm/newlib/configure.host 2014-12-10 19:17:29.086756000 +0000 ++++ newlib-2.1.0-arm/newlib/configure.host 2014-12-16 13:13:31.182756000 +0000 @@ -589,6 +589,14 @@ arc-*-*) syscall_dir=syscalls @@ -11598,7 +11463,7 @@ diff -NBaur newlib-2.1.0/newlib/configure.host newlib-2.1.0-arm/newlib/configure arm*-*-pe) syscall_dir=syscalls ;; -diff -NBaur newlib-2.1.0/newlib/libc/include/pthread.h newlib-2.1.0-arm/newlib/libc/include/pthread.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/pthread.h newlib-2.1.0-arm/newlib/libc/include/pthread.h --- newlib-2.1.0/newlib/libc/include/pthread.h 2013-11-29 23:35:34.000000000 +0000 +++ newlib-2.1.0-arm/newlib/libc/include/pthread.h 1970-01-01 01:00:00.000000000 +0100 @@ -1,431 +0,0 @@ @@ -12033,9 +11898,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/pthread.h newlib-2.1.0-arm/newlib/l - -#endif -/* end of include file */ -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/config.h newlib-2.1.0-arm/newlib/libc/include/sys/config.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/config.h newlib-2.1.0-arm/newlib/libc/include/sys/config.h --- newlib-2.1.0/newlib/libc/include/sys/config.h 2013-10-23 11:04:42.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/config.h 2014-12-10 19:17:29.094756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/include/sys/config.h 2014-12-16 13:13:31.206756000 +0000 @@ -4,6 +4,9 @@ #include /* floating point macros */ #include /* POSIX defs */ @@ -12046,9 +11911,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/config.h newlib-2.1.0-arm/newli #ifdef __aarch64__ #define MALLOC_ALIGNMENT 16 #endif -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/dirent.h newlib-2.1.0-arm/newlib/libc/include/sys/dirent.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/dirent.h newlib-2.1.0-arm/newlib/libc/include/sys/dirent.h --- newlib-2.1.0/newlib/libc/include/sys/dirent.h 2005-10-04 21:47:39.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/dirent.h 2014-12-10 19:17:29.094756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/include/sys/dirent.h 2014-12-16 13:13:31.206756000 +0000 @@ -4,10 +4,49 @@ not support , we will get this file which uses #error to force an error. */ @@ -12101,10 +11966,10 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/dirent.h newlib-2.1.0-arm/newli + +#endif // _dirent_h_ \ No newline at end of file -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/newlib/libc/include/sys/iosupport.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/newlib/libc/include/sys/iosupport.h --- newlib-2.1.0/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/iosupport.h 2014-12-10 19:17:29.094756000 +0000 -@@ -0,0 +1,95 @@ ++++ newlib-2.1.0-arm/newlib/libc/include/sys/iosupport.h 2014-12-17 21:15:58.214756000 +0000 +@@ -0,0 +1,105 @@ +//--------------------------------------------------------------------------------- +#ifndef __iosupp_h__ +#define __iosupp_h__ @@ -12118,6 +11983,8 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne +#include +#include + ++#include ++ +enum { + STD_IN, + STD_OUT, @@ -12139,7 +12006,7 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne + +typedef struct { + const char *name; -+ int structSize; ++ size_t structSize; + int (*open_r)(struct _reent *r, void *fileStruct, const char *path, int flags, int mode); + int (*close_r)(struct _reent *r, int fd); + ssize_t (*write_r)(struct _reent *r, int fd, const char *ptr, size_t len); @@ -12153,7 +12020,7 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne + int (*rename_r) (struct _reent *r, const char *oldName, const char *newName); + int (*mkdir_r) (struct _reent *r, const char *path, int mode); + -+ int dirStateSize; ++ size_t dirStateSize; + + DIR_ITER* (*diropen_r)(struct _reent *r, DIR_ITER *dirState, const char *path); + int (*dirreset_r)(struct _reent *r, DIR_ITER *dirState); @@ -12169,6 +12036,8 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne + int (*fchmod_r)(struct _reent *r, int fd, mode_t mode); + int (*rmdir_r)(struct _reent *r, const char *name); + ++ bool stdioUnbuffered; ++ +} devoptab_t; + +extern const devoptab_t *devoptab_list[]; @@ -12182,7 +12051,7 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne + int (*lock_close) (_LOCK_T *lock); + int (*lock_release) (_LOCK_T *lock); + int (*lock_acquire) (_LOCK_T *lock); -+ struct _reent *(*__getreent) (); ++ struct _reent *(*getreent) (); +} __syscalls_t; + +extern __syscalls_t __syscalls; @@ -12192,7 +12061,13 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne +int RemoveDevice(const char* name); +void setDefaultDevice( int device ); +const devoptab_t* GetDeviceOpTab (const char *name); -+ ++bool WantUnbufferedIO(const char *name); ++ ++void __release_handle(int fd); ++int __alloc_handle(size_t size); ++__handle *__get_handle(int fd); ++ ++ +#ifdef __cplusplus +} +#endif @@ -12200,9 +12075,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/iosupport.h newlib-2.1.0-arm/ne +//--------------------------------------------------------------------------------- +#endif // __iosupp_h__ +//--------------------------------------------------------------------------------- -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/statvfs.h newlib-2.1.0-arm/newlib/libc/include/sys/statvfs.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/statvfs.h newlib-2.1.0-arm/newlib/libc/include/sys/statvfs.h --- newlib-2.1.0/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/statvfs.h 2014-12-10 19:17:29.094756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/include/sys/statvfs.h 2014-12-16 13:13:31.206756000 +0000 @@ -0,0 +1,35 @@ +#ifndef _SYS_STATVFS_H +#define _SYS_STATVFS_H @@ -12240,9 +12115,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/statvfs.h newlib-2.1.0-arm/newl + +#endif // _SYS_STATVFS_H \ No newline at end of file -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/syslimits.h newlib-2.1.0-arm/newlib/libc/include/sys/syslimits.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/syslimits.h newlib-2.1.0-arm/newlib/libc/include/sys/syslimits.h --- newlib-2.1.0/newlib/libc/include/sys/syslimits.h 2002-08-23 02:56:03.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/syslimits.h 2014-12-10 19:17:29.094756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/include/sys/syslimits.h 2014-12-16 13:13:31.206756000 +0000 @@ -44,12 +44,12 @@ #define LINK_MAX 32767 /* max file link count */ #define MAX_CANON 255 /* max bytes in term canon input line */ @@ -12258,9 +12133,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/syslimits.h newlib-2.1.0-arm/ne #define PIPE_BUF 512 /* max bytes for atomic pipe writes */ #define IOV_MAX 1024 /* max elements in i/o vector */ -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/_types.h newlib-2.1.0-arm/newlib/libc/include/sys/_types.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/_types.h newlib-2.1.0-arm/newlib/libc/include/sys/_types.h --- newlib-2.1.0/newlib/libc/include/sys/_types.h 2013-10-15 18:37:37.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/_types.h 2014-12-10 19:17:29.094756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/include/sys/_types.h 2014-12-16 13:13:31.206756000 +0000 @@ -17,7 +17,7 @@ #endif @@ -12270,9 +12145,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/_types.h newlib-2.1.0-arm/newli #endif #ifndef __uid_t_defined -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/types.h newlib-2.1.0-arm/newlib/libc/include/sys/types.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/types.h newlib-2.1.0-arm/newlib/libc/include/sys/types.h --- newlib-2.1.0/newlib/libc/include/sys/types.h 2013-11-29 23:14:57.000000000 +0000 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/types.h 2014-12-10 19:17:29.094756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/include/sys/types.h 2014-12-16 13:13:31.206756000 +0000 @@ -152,7 +152,7 @@ defined(__sparc__) || defined(__SPU__) typedef unsigned long ino_t; @@ -12292,10 +12167,20 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/types.h newlib-2.1.0-arm/newlib #include -diff -NBaur newlib-2.1.0/newlib/libc/include/sys/unistd.h newlib-2.1.0-arm/newlib/libc/include/sys/unistd.h +diff -Nbaur newlib-2.1.0/newlib/libc/include/sys/unistd.h newlib-2.1.0-arm/newlib/libc/include/sys/unistd.h --- newlib-2.1.0/newlib/libc/include/sys/unistd.h 2013-11-22 22:39:51.000000000 +0000 -+++ newlib-2.1.0-arm/newlib/libc/include/sys/unistd.h 2014-12-10 19:17:29.098756000 +0000 -@@ -222,12 +222,10 @@ ++++ newlib-2.1.0-arm/newlib/libc/include/sys/unistd.h 2014-12-16 13:14:35.526756000 +0000 +@@ -84,9 +84,7 @@ + gid_t _EXFUN(getgid, (void )); + #endif + int _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] )); +-#if defined(__CYGWIN__) + long _EXFUN(gethostid, (void)); +-#endif + char * _EXFUN(getlogin, (void )); + #if defined(_POSIX_THREAD_SAFE_FUNCTIONS) + int _EXFUN(getlogin_r, (char *name, size_t namesize) ); +@@ -222,12 +220,10 @@ int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); #endif @@ -12308,9 +12193,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/include/sys/unistd.h newlib-2.1.0-arm/newli #if defined(__CYGWIN__) || defined(__rtems__) int _EXFUN(getdtablesize, (void)); -diff -NBaur newlib-2.1.0/newlib/libc/locale/locale.c newlib-2.1.0-arm/newlib/libc/locale/locale.c +diff -Nbaur newlib-2.1.0/newlib/libc/locale/locale.c newlib-2.1.0-arm/newlib/libc/locale/locale.c --- newlib-2.1.0/newlib/libc/locale/locale.c 2012-03-29 21:27:15.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/locale/locale.c 2014-12-10 19:17:29.098756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/locale/locale.c 2014-12-16 13:13:31.206756000 +0000 @@ -188,7 +188,12 @@ #define _LC_LAST 7 #define ENCODING_LEN 31 @@ -12343,9 +12228,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/locale/locale.c newlib-2.1.0-arm/newlib/lib static char lc_ctype_charset[ENCODING_LEN + 1] = "UTF-8"; #else static char lc_ctype_charset[ENCODING_LEN + 1] = "ASCII"; -diff -NBaur newlib-2.1.0/newlib/libc/machine/arm/sys/lock.h newlib-2.1.0-arm/newlib/libc/machine/arm/sys/lock.h +diff -Nbaur newlib-2.1.0/newlib/libc/machine/arm/sys/lock.h newlib-2.1.0-arm/newlib/libc/machine/arm/sys/lock.h --- newlib-2.1.0/newlib/libc/machine/arm/sys/lock.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/machine/arm/sys/lock.h 2014-12-10 19:17:29.098756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/machine/arm/sys/lock.h 2014-12-16 13:13:31.210756000 +0000 @@ -0,0 +1,78 @@ +#ifndef __SYS_LOCK_H__ +#define __SYS_LOCK_H__ @@ -12425,9 +12310,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/machine/arm/sys/lock.h newlib-2.1.0-arm/new + + +#endif /* __SYS_LOCK_H__ */ -diff -NBaur newlib-2.1.0/newlib/libc/machine/arm/sys/stdio.h newlib-2.1.0-arm/newlib/libc/machine/arm/sys/stdio.h +diff -Nbaur newlib-2.1.0/newlib/libc/machine/arm/sys/stdio.h newlib-2.1.0-arm/newlib/libc/machine/arm/sys/stdio.h --- newlib-2.1.0/newlib/libc/machine/arm/sys/stdio.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/machine/arm/sys/stdio.h 2014-12-10 19:17:29.098756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/machine/arm/sys/stdio.h 2014-12-16 13:13:31.210756000 +0000 @@ -0,0 +1,27 @@ +#ifndef _NEWLIB_STDIO_H +#define _NEWLIB_STDIO_H @@ -12456,9 +12341,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/machine/arm/sys/stdio.h newlib-2.1.0-arm/ne +#endif + +#endif /* _NEWLIB_STDIO_H */ -diff -NBaur newlib-2.1.0/newlib/libc/misc/init.c newlib-2.1.0-arm/newlib/libc/misc/init.c +diff -Nbaur newlib-2.1.0/newlib/libc/misc/init.c newlib-2.1.0-arm/newlib/libc/misc/init.c --- newlib-2.1.0/newlib/libc/misc/init.c 2010-06-04 16:30:40.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/misc/init.c 2014-12-10 19:17:29.098756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/misc/init.c 2014-12-16 13:13:31.210756000 +0000 @@ -40,4 +40,8 @@ for (i = 0; i < count; i++) __init_array_start[i] (); @@ -12468,9 +12353,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/misc/init.c newlib-2.1.0-arm/newlib/libc/mi +#error why am I not defined + #endif -diff -NBaur newlib-2.1.0/newlib/libc/reent/getreent.c newlib-2.1.0-arm/newlib/libc/reent/getreent.c +diff -Nbaur newlib-2.1.0/newlib/libc/reent/getreent.c newlib-2.1.0-arm/newlib/libc/reent/getreent.c --- newlib-2.1.0/newlib/libc/reent/getreent.c 2007-09-07 01:45:55.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/reent/getreent.c 2014-12-10 19:17:29.102756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/reent/getreent.c 2014-12-16 13:13:31.210756000 +0000 @@ -1,3 +1,4 @@ +#if 0 /* default reentrant pointer when multithread enabled */ @@ -12482,9 +12367,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/reent/getreent.c newlib-2.1.0-arm/newlib/li } + +#endif -diff -NBaur newlib-2.1.0/newlib/libc/reent/gettimeofdayr.c newlib-2.1.0-arm/newlib/libc/reent/gettimeofdayr.c +diff -Nbaur newlib-2.1.0/newlib/libc/reent/gettimeofdayr.c newlib-2.1.0-arm/newlib/libc/reent/gettimeofdayr.c --- newlib-2.1.0/newlib/libc/reent/gettimeofdayr.c 2007-07-06 17:56:30.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/reent/gettimeofdayr.c 2014-12-10 19:17:29.102756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/reent/gettimeofdayr.c 2014-12-16 13:13:31.210756000 +0000 @@ -59,7 +59,7 @@ Check libc.a to see if its available on yours. */ @@ -12501,9 +12386,38 @@ diff -NBaur newlib-2.1.0/newlib/libc/reent/gettimeofdayr.c newlib-2.1.0-arm/newl - +*/ #endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */ -diff -NBaur newlib-2.1.0/newlib/libc/stdlib/mbtowc_r.c newlib-2.1.0-arm/newlib/libc/stdlib/mbtowc_r.c +diff -Nbaur newlib-2.1.0/newlib/libc/stdio/fopen.c newlib-2.1.0-arm/newlib/libc/stdio/fopen.c +--- newlib-2.1.0/newlib/libc/stdio/fopen.c 2013-11-18 17:28:05.000000000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/stdio/fopen.c 2014-12-16 13:29:20.502756000 +0000 +@@ -121,8 +121,12 @@ + #ifdef __CYGWIN__ + #include + #endif ++ ++#include ++ + #include "local.h" + ++ + FILE * + _DEFUN(_fopen_r, (ptr, file, mode), + struct _reent *ptr _AND +@@ -151,6 +155,12 @@ + + _newlib_flockfile_start (fp); + ++ if (WantUnbufferedIO(file)) ++ { ++ flags &= ~(__SLBF | __SNBF | __SMBF); ++ flags |= __SNBF; ++ } ++ + fp->_file = f; + fp->_flags = flags; + fp->_cookie = (_PTR) fp; +diff -Nbaur newlib-2.1.0/newlib/libc/stdlib/mbtowc_r.c newlib-2.1.0-arm/newlib/libc/stdlib/mbtowc_r.c --- newlib-2.1.0/newlib/libc/stdlib/mbtowc_r.c 2013-11-18 17:26:51.000000000 +0000 -+++ newlib-2.1.0-arm/newlib/libc/stdlib/mbtowc_r.c 2014-12-10 19:17:29.102756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/stdlib/mbtowc_r.c 2014-12-16 13:13:31.214756000 +0000 @@ -9,7 +9,7 @@ int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t, @@ -12513,9 +12427,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/stdlib/mbtowc_r.c newlib-2.1.0-arm/newlib/l /* Cygwin starts up in UTF-8 mode. */ = __utf8_mbtowc; #else -diff -NBaur newlib-2.1.0/newlib/libc/stdlib/wctomb_r.c newlib-2.1.0-arm/newlib/libc/stdlib/wctomb_r.c +diff -Nbaur newlib-2.1.0/newlib/libc/stdlib/wctomb_r.c newlib-2.1.0-arm/newlib/libc/stdlib/wctomb_r.c --- newlib-2.1.0/newlib/libc/stdlib/wctomb_r.c 2012-08-08 12:04:18.000000000 +0100 -+++ newlib-2.1.0-arm/newlib/libc/stdlib/wctomb_r.c 2014-12-10 19:17:29.102756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/stdlib/wctomb_r.c 2014-12-16 13:13:31.214756000 +0000 @@ -8,7 +8,7 @@ int (*__wctomb) (struct _reent *, char *, wchar_t, const char *charset, @@ -12525,9 +12439,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/stdlib/wctomb_r.c newlib-2.1.0-arm/newlib/l /* Cygwin starts up in UTF-8 mode. */ = __utf8_wctomb; #else -diff -NBaur newlib-2.1.0/newlib/libc/sys/arm/sys/param.h newlib-2.1.0-arm/newlib/libc/sys/arm/sys/param.h +diff -Nbaur newlib-2.1.0/newlib/libc/sys/arm/sys/param.h newlib-2.1.0-arm/newlib/libc/sys/arm/sys/param.h --- newlib-2.1.0/newlib/libc/sys/arm/sys/param.h 2005-02-02 19:00:30.000000000 +0000 -+++ newlib-2.1.0-arm/newlib/libc/sys/arm/sys/param.h 2014-12-10 19:19:15.174756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/sys/arm/sys/param.h 2014-12-16 13:13:31.214756000 +0000 @@ -3,10 +3,17 @@ #ifndef _SYS_PARAM_H # define _SYS_PARAM_H @@ -12548,9 +12462,9 @@ diff -NBaur newlib-2.1.0/newlib/libc/sys/arm/sys/param.h newlib-2.1.0-arm/newlib #define BIG_ENDIAN 4321 #define LITTLE_ENDIAN 1234 -diff -NBaur newlib-2.1.0/newlib/libc/syscalls/Makefile.am newlib-2.1.0-arm/newlib/libc/syscalls/Makefile.am +diff -Nbaur newlib-2.1.0/newlib/libc/syscalls/Makefile.am newlib-2.1.0-arm/newlib/libc/syscalls/Makefile.am --- newlib-2.1.0/newlib/libc/syscalls/Makefile.am 2008-01-03 22:33:37.000000000 +0000 -+++ newlib-2.1.0-arm/newlib/libc/syscalls/Makefile.am 2014-12-10 19:17:29.102756000 +0000 ++++ newlib-2.1.0-arm/newlib/libc/syscalls/Makefile.am 2014-12-16 13:13:31.214756000 +0000 @@ -20,8 +20,9 @@ sysstat.c \ systimes.c \