fixup findDevice

This commit is contained in:
Dave Murphy 2016-05-16 11:05:45 +01:00
parent c4f89e210b
commit 2a7de310e1

View File

@ -1,6 +1,6 @@
diff -NBaur newlib-2.3.0.20160104/libgloss/configure newlib-2.3.0.20160104-arm/libgloss/configure
--- newlib-2.3.0.20160104/libgloss/configure 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/configure 2016-01-26 13:06:41.564000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/configure 2016-05-13 15:25:17.673019640 +0100
@@ -2589,6 +2589,8 @@
fi
@ -12,7 +12,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/configure newlib-2.3.0.20160104-arm/l
ac_config_commands="$ac_config_commands depfiles"
diff -NBaur newlib-2.3.0.20160104/libgloss/configure.in newlib-2.3.0.20160104-arm/libgloss/configure.in
--- newlib-2.3.0.20160104/libgloss/configure.in 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/configure.in 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/configure.in 2016-05-13 15:25:17.673019640 +0100
@@ -2,6 +2,7 @@
AC_PREREQ(2.59)
AC_INIT([libgloss],[LIBGLOSS_VERSION])
@ -31,7 +31,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/configure.in newlib-2.3.0.20160104-ar
AS=${AS-as}
diff -NBaur newlib-2.3.0.20160104/libgloss/configure.in.orig newlib-2.3.0.20160104-arm/libgloss/configure.in.orig
--- newlib-2.3.0.20160104/libgloss/configure.in.orig 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/configure.in.orig 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/configure.in.orig 2016-05-13 15:25:17.673019640 +0100
@@ -0,0 +1,232 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.59)
@ -267,7 +267,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/configure.in.orig newlib-2.3.0.201601
+
diff -NBaur newlib-2.3.0.20160104/libgloss/configure.orig newlib-2.3.0.20160104-arm/libgloss/configure.orig
--- newlib-2.3.0.20160104/libgloss/configure.orig 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/configure.orig 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/configure.orig 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,4622 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
@ -4893,7 +4893,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/configure.orig newlib-2.3.0.20160104-
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/abort.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/abort.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/abort.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/abort.c 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/abort.c 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,8 @@
+#include <stdlib.h>
+#include <unistd.h>
@ -4905,7 +4905,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/abort.c newlib-2.3.0.20160
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/acconfig.h newlib-2.3.0.20160104-arm/libgloss/libsysbase/acconfig.h
--- newlib-2.3.0.20160104/libgloss/libsysbase/acconfig.h 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/acconfig.h 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/acconfig.h 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,29 @@
+/* Name of package. */
+#undef PACKAGE
@ -4938,7 +4938,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/acconfig.h newlib-2.3.0.20
+#undef __SYMBOL_PREFIX
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/aclocal.m4 newlib-2.3.0.20160104-arm/libgloss/libsysbase/aclocal.m4
--- newlib-2.3.0.20160104/libgloss/libsysbase/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/aclocal.m4 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/aclocal.m4 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,344 @@
+# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
+
@ -5286,7 +5286,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/aclocal.m4 newlib-2.3.0.20
+m4_include([../acinclude.m4])
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/build_argv.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/build_argv.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/build_argv.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/build_argv.c 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/build_argv.c 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,31 @@
+struct __argv {
+ int argvMagic;
@ -5321,7 +5321,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/build_argv.c newlib-2.3.0.
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/chdir.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/chdir.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/chdir.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/chdir.c 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/chdir.c 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,199 @@
+#include <unistd.h>
+#include <limits.h>
@ -5524,7 +5524,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/chdir.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/chmod.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/chmod.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/chmod.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/chmod.c 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/chmod.c 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,28 @@
+#include "config.h"
+#include <_ansi.h>
@ -5556,7 +5556,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/chmod.c newlib-2.3.0.20160
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/close.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/close.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/close.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/close.c 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/close.c 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,49 @@
+#include "config.h"
+#include <_ansi.h>
@ -5609,7 +5609,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/close.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/config.h.in newlib-2.3.0.20160104-arm/libgloss/libsysbase/config.h.in
--- newlib-2.3.0.20160104/libgloss/libsysbase/config.h.in 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/config.h.in 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/config.h.in 2016-05-13 15:25:17.677019640 +0100
@@ -0,0 +1,25 @@
+/* config.h.in. Generated automatically from configure.in by autoheader. */
+
@ -5638,7 +5638,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/config.h.in newlib-2.3.0.2
+#undef __SYMBOL_PREFIX
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/configure newlib-2.3.0.20160104-arm/libgloss/libsysbase/configure
--- newlib-2.3.0.20160104/libgloss/libsysbase/configure 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/configure 2016-01-26 13:06:41.576000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/configure 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,4170 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
@ -9812,7 +9812,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/configure newlib-2.3.0.201
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/configure.in newlib-2.3.0.20160104-arm/libgloss/libsysbase/configure.in
--- newlib-2.3.0.20160104/libgloss/libsysbase/configure.in 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/configure.in 2016-01-26 13:06:41.576000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/configure.in 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,210 @@
+# Copyright (c) 1995, 1996 Cygnus Support
+#
@ -10026,7 +10026,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/configure.in newlib-2.3.0.
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/dirent.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/dirent.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/dirent.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/dirent.c 2016-01-26 13:06:41.576000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/dirent.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,250 @@
+#include <malloc.h>
+#include <errno.h>
@ -10280,7 +10280,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/dirent.c newlib-2.3.0.2016
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/environ.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/environ.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/environ.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/environ.c 2016-01-26 13:06:41.576000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/environ.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,6 @@
+/*
+ * Version of environ for no OS.
@ -10290,7 +10290,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/environ.c newlib-2.3.0.201
+char **environ = __env;
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/execve.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/execve.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/execve.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/execve.c 2016-01-26 13:06:41.576000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/execve.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,31 @@
+/*
+ * Stub version of execve.
@ -10325,7 +10325,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/execve.c newlib-2.3.0.2016
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/_exit.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/_exit.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/_exit.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/_exit.c 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/_exit.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,19 @@
+/* Stub version of _exit. */
+
@ -10348,7 +10348,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/_exit.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fchmod.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/fchmod.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/fchmod.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fchmod.c 2016-01-26 13:06:41.576000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fchmod.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,31 @@
+#include "config.h"
+#include <_ansi.h>
@ -10383,7 +10383,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fchmod.c newlib-2.3.0.2016
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/flock.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/flock.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/flock.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/flock.c 2016-01-26 13:06:41.576000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/flock.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,21 @@
+#include <config.h>
+#include <_ansi.h>
@ -10408,7 +10408,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/flock.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fork.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/fork.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/fork.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fork.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fork.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,25 @@
+/*
+ * Stub version of fork.
@ -10437,7 +10437,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fork.c newlib-2.3.0.201601
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fstat.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/fstat.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/fstat.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fstat.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fstat.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,45 @@
+#include "config.h"
+#include <_ansi.h>
@ -10486,7 +10486,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fstat.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fsync.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/fsync.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/fsync.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fsync.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/fsync.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,35 @@
+#include "config.h"
+#include <_ansi.h>
@ -10525,7 +10525,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/fsync.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/ftruncate.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/ftruncate.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/ftruncate.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/ftruncate.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/ftruncate.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,36 @@
+#include "config.h"
+#include <_ansi.h>
@ -10565,7 +10565,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/ftruncate.c newlib-2.3.0.2
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/getpid.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/getpid.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/getpid.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/getpid.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/getpid.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,21 @@
+#include "config.h"
+#include <_ansi.h>
@ -10590,7 +10590,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/getpid.c newlib-2.3.0.2016
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/getreent.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/getreent.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/getreent.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/getreent.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/getreent.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,22 @@
+
+/* default reentrant pointer when multithread enabled */
@ -10616,7 +10616,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/getreent.c newlib-2.3.0.20
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/gettod.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/gettod.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/gettod.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/gettod.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/gettod.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,35 @@
+#include "config.h"
+#include <_ansi.h>
@ -10655,7 +10655,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/gettod.c newlib-2.3.0.2016
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/handle_manager.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/handle_manager.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/handle_manager.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/handle_manager.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/handle_manager.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,158 @@
+#include <stdlib.h>
+#include <stdio.h>
@ -10817,8 +10817,8 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/handle_manager.c newlib-2.
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/iosupport.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/iosupport.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/iosupport.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/iosupport.c 2016-01-26 13:06:41.580000000 +0000
@@ -0,0 +1,133 @@
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/iosupport.c 2016-05-13 15:34:36.441019640 +0100
@@ -0,0 +1,138 @@
+#include <stdlib.h>
+#include <string.h>
+#include <ctype.h>
@ -10883,14 +10883,19 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/iosupport.c newlib-2.3.0.2
+//---------------------------------------------------------------------------------
+int FindDevice(const char* name) {
+//---------------------------------------------------------------------------------
+ int i = 0, namelen, dev = -1;
+ int i = 0, namelen, dev_namelen, dev = -1;
+ char *separator;
+
+ if (strchr(name, ':') == NULL) return defaultDevice;
+ separator = strchr(name, ':');
+
+ if (separator == NULL) return defaultDevice;
+
+ dev_namelen = separator - name;
+
+ while(i<STD_MAX) {
+ if(devoptab_list[i]) {
+ namelen = strlen(devoptab_list[i]->name);
+ if(strncmp(devoptab_list[i]->name,name,namelen)==0 ) {
+ if(dev_namelen == namelen && strncmp(devoptab_list[i]->name,name,namelen)==0 ) {
+ if ( name[namelen] == ':' || (isdigit(name[namelen]) && name[namelen+1] ==':' )) {
+ dev = i;
+ break;
@ -10954,7 +10959,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/iosupport.c newlib-2.3.0.2
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/isatty.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/isatty.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/isatty.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/isatty.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/isatty.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,20 @@
+#include "config.h"
+#include <_ansi.h>
@ -10978,7 +10983,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/isatty.c newlib-2.3.0.2016
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/kill.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/kill.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/kill.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/kill.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/kill.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,23 @@
+/*
+ * Stub version of kill.
@ -11005,7 +11010,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/kill.c newlib-2.3.0.201601
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/link.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/link.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/link.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/link.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/link.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,37 @@
+#include "config.h"
+#include <_ansi.h>
@ -11046,7 +11051,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/link.c newlib-2.3.0.201601
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/lseek.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/lseek.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/lseek.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/lseek.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/lseek.c 2016-05-13 15:25:17.681019640 +0100
@@ -0,0 +1,53 @@
+#include "config.h"
+#include <_ansi.h>
@ -11103,7 +11108,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/lseek.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/Makefile.in newlib-2.3.0.20160104-arm/libgloss/libsysbase/Makefile.in
--- newlib-2.3.0.20160104/libgloss/libsysbase/Makefile.in 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/Makefile.in 2016-01-26 13:06:41.568000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/Makefile.in 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,148 @@
+# Copyright (c) 1998 Cygnus Support
+#
@ -11255,13 +11260,13 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/Makefile.in newlib-2.3.0.2
+ $(SHELL) config.status --recheck
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/malloc_vars.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/malloc_vars.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/malloc_vars.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/malloc_vars.c 2016-01-26 13:06:41.580000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/malloc_vars.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,2 @@
+char *fake_heap_end = (char*)0;
+char *fake_heap_start = (char*)0;
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/mkdir.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/mkdir.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/mkdir.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/mkdir.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/mkdir.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,18 @@
+#include <reent.h>
+#include <sys/iosupport.h>
@ -11283,7 +11288,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/mkdir.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/open.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/open.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/open.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/open.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/open.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,60 @@
+#include "config.h"
+#include <_ansi.h>
@ -11347,7 +11352,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/open.c newlib-2.3.0.201601
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/read.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/read.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/read.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/read.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/read.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,47 @@
+#include "config.h"
+#include <_ansi.h>
@ -11398,7 +11403,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/read.c newlib-2.3.0.201601
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/rename.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/rename.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/rename.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/rename.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/rename.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,40 @@
+#include "config.h"
+#include <reent.h>
@ -11442,7 +11447,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/rename.c newlib-2.3.0.2016
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/rmdir.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/rmdir.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/rmdir.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/rmdir.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/rmdir.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,24 @@
+#include "config.h"
+#include <_ansi.h>
@ -11470,7 +11475,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/rmdir.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/sbrk.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/sbrk.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/sbrk.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/sbrk.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/sbrk.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,60 @@
+#include "config.h"
+#include <_ansi.h>
@ -11534,7 +11539,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/sbrk.c newlib-2.3.0.201601
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/stat.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/stat.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/stat.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/stat.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/stat.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,43 @@
+#include "config.h"
+#include <_ansi.h>
@ -11581,7 +11586,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/stat.c newlib-2.3.0.201601
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/statvfs.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/statvfs.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/statvfs.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/statvfs.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/statvfs.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,23 @@
+#include <reent.h>
+#include <sys/iosupport.h>
@ -11608,7 +11613,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/statvfs.c newlib-2.3.0.201
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/syscall_support.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/syscall_support.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/syscall_support.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/syscall_support.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/syscall_support.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,99 @@
+#include <sys/iosupport.h>
+
@ -11711,7 +11716,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/syscall_support.c newlib-2
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/times.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/times.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/times.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/times.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/times.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,21 @@
+#include "config.h"
+#include <_ansi.h>
@ -11736,7 +11741,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/times.c newlib-2.3.0.20160
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/truncate.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/truncate.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/truncate.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/truncate.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/truncate.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,57 @@
+#include "config.h"
+#include <_ansi.h>
@ -11797,7 +11802,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/truncate.c newlib-2.3.0.20
+}
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/unlink.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/unlink.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/unlink.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/unlink.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/unlink.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,36 @@
+#include "config.h"
+#include <_ansi.h>
@ -11837,7 +11842,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/unlink.c newlib-2.3.0.2016
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/wait.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/wait.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/wait.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/wait.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/wait.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,28 @@
+/*
+ * Stub version of wait.
@ -11869,7 +11874,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/wait.c newlib-2.3.0.201601
+
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/warning.h newlib-2.3.0.20160104-arm/libgloss/libsysbase/warning.h
--- newlib-2.3.0.20160104/libgloss/libsysbase/warning.h 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/warning.h 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/warning.h 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,43 @@
+#ifndef __WARNING_H__
+#define __WARNING_H__
@ -11916,7 +11921,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/warning.h newlib-2.3.0.201
+#endif /* __WARNING_H__ */
diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/write.c newlib-2.3.0.20160104-arm/libgloss/libsysbase/write.c
--- newlib-2.3.0.20160104/libgloss/libsysbase/write.c 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/write.c 2016-01-26 13:06:41.584000000 +0000
+++ newlib-2.3.0.20160104-arm/libgloss/libsysbase/write.c 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,46 @@
+#include "config.h"
+#include <_ansi.h>
@ -11966,7 +11971,7 @@ diff -NBaur newlib-2.3.0.20160104/libgloss/libsysbase/write.c newlib-2.3.0.20160
+}
diff -NBaur newlib-2.3.0.20160104/newlib/configure.host newlib-2.3.0.20160104-arm/newlib/configure.host
--- newlib-2.3.0.20160104/newlib/configure.host 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/configure.host 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/configure.host 2016-05-13 15:25:17.685019640 +0100
@@ -615,6 +615,14 @@
syscall_dir=syscalls
default_newlib_io_long_long="yes"
@ -11984,7 +11989,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/configure.host newlib-2.3.0.20160104-ar
;;
diff -NBaur newlib-2.3.0.20160104/newlib/configure.host.orig newlib-2.3.0.20160104-arm/newlib/configure.host.orig
--- newlib-2.3.0.20160104/newlib/configure.host.orig 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/configure.host.orig 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/configure.host.orig 2016-05-13 15:25:17.685019640 +0100
@@ -0,0 +1,890 @@
+# configure.host
+
@ -12877,8 +12882,8 @@ diff -NBaur newlib-2.3.0.20160104/newlib/configure.host.orig newlib-2.3.0.201601
+ have_crt0="yes"
+fi
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/stdio.h newlib-2.3.0.20160104-arm/newlib/libc/include/stdio.h
--- newlib-2.3.0.20160104/newlib/libc/include/stdio.h 2016-02-03 16:45:50.380000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/stdio.h 2016-02-03 16:48:53.500000000 +0000
--- newlib-2.3.0.20160104/newlib/libc/include/stdio.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/stdio.h 2016-05-13 15:25:17.685019640 +0100
@@ -208,7 +208,7 @@
#else
int _EXFUN(fgetpos, (FILE *__restrict, fpos_t *__restrict));
@ -12899,7 +12904,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/stdio.h newlib-2.3.0.20160
_off_t _EXFUN(_ftello_r,(struct _reent *, FILE *));
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/config.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/config.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/config.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/config.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/config.h 2016-05-13 15:25:17.685019640 +0100
@@ -4,6 +4,9 @@
#include <machine/ieeefp.h> /* floating point macros */
#include <sys/features.h> /* POSIX defs */
@ -12912,7 +12917,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/config.h newlib-2.3.0.
#endif
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/dirent.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/dirent.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/dirent.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/dirent.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/dirent.h 2016-05-13 15:25:17.689019640 +0100
@@ -1,13 +1,52 @@
/* <dirent.h> includes <sys/dirent.h>, which is this file. On a
system which supports <dirent.h>, this file is overridden by
@ -12971,7 +12976,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/dirent.h newlib-2.3.0.
+#endif // _dirent_h_
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/iosupport.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/iosupport.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/iosupport.h 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/iosupport.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/iosupport.h 2016-05-13 15:25:17.689019640 +0100
@@ -0,0 +1,105 @@
+//---------------------------------------------------------------------------------
+#ifndef __iosupp_h__
@ -13080,7 +13085,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/iosupport.h newlib-2.3
+//---------------------------------------------------------------------------------
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/statvfs.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/statvfs.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/statvfs.h 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/statvfs.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/statvfs.h 2016-05-13 15:25:17.689019640 +0100
@@ -0,0 +1,35 @@
+#ifndef _SYS_STATVFS_H
+#define _SYS_STATVFS_H
@ -13120,7 +13125,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/statvfs.h newlib-2.3.0
\ No newline at end of file
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/syslimits.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/syslimits.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/syslimits.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/syslimits.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/syslimits.h 2016-05-13 15:25:17.689019640 +0100
@@ -44,7 +44,7 @@
#define LINK_MAX 32767 /* max file link count */
#define MAX_CANON 255 /* max bytes in term canon input line */
@ -13132,7 +13137,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/syslimits.h newlib-2.3
#define OPEN_MAX 64 /* max open files per process */
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/_types.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/_types.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/_types.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/_types.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/_types.h 2016-05-13 15:25:17.689019640 +0100
@@ -17,7 +17,7 @@
#endif
@ -13144,7 +13149,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/_types.h newlib-2.3.0.
#ifndef __uid_t_defined
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/types.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/types.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/types.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/types.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/types.h 2016-05-13 15:25:17.689019640 +0100
@@ -139,7 +139,7 @@
defined(__sparc__) || defined(__SPU__)
typedef unsigned long ino_t;
@ -13166,7 +13171,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/types.h newlib-2.3.0.2
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/types.h.orig newlib-2.3.0.20160104-arm/newlib/libc/include/sys/types.h.orig
--- newlib-2.3.0.20160104/newlib/libc/include/sys/types.h.orig 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/types.h.orig 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/types.h.orig 2016-05-13 15:25:17.689019640 +0100
@@ -0,0 +1,468 @@
+/* unified sys/types.h:
+ start with sef's sysvi386 version.
@ -13638,7 +13643,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/types.h.orig newlib-2.
+#endif /* _SYS_TYPES_H */
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/unistd.h newlib-2.3.0.20160104-arm/newlib/libc/include/sys/unistd.h
--- newlib-2.3.0.20160104/newlib/libc/include/sys/unistd.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/unistd.h 2016-01-26 13:06:41.588000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/unistd.h 2016-05-13 15:25:17.689019640 +0100
@@ -89,9 +89,7 @@
gid_t _EXFUN(getgid, (void ));
#endif
@ -13664,7 +13669,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/unistd.h newlib-2.3.0.
int _EXFUN(getdtablesize, (void));
diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/unistd.h.orig newlib-2.3.0.20160104-arm/newlib/libc/include/sys/unistd.h.orig
--- newlib-2.3.0.20160104/newlib/libc/include/sys/unistd.h.orig 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/unistd.h.orig 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/include/sys/unistd.h.orig 2016-05-13 15:25:17.689019640 +0100
@@ -0,0 +1,534 @@
+#ifndef _SYS_UNISTD_H
+#define _SYS_UNISTD_H
@ -14202,7 +14207,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/include/sys/unistd.h.orig newlib-2
+#endif /* _SYS_UNISTD_H */
diff -NBaur newlib-2.3.0.20160104/newlib/libc/locale/locale.c newlib-2.3.0.20160104-arm/newlib/libc/locale/locale.c
--- newlib-2.3.0.20160104/newlib/libc/locale/locale.c 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/locale/locale.c 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/locale/locale.c 2016-05-13 15:25:17.689019640 +0100
@@ -107,7 +107,7 @@
<<localeconv>> returns a pointer to a structure (also defined in
@ -14273,7 +14278,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/locale/locale.c newlib-2.3.0.20160
#ifdef __HAVE_LOCALE_INFO__
diff -NBaur newlib-2.3.0.20160104/newlib/libc/machine/arm/sys/stdio.h newlib-2.3.0.20160104-arm/newlib/libc/machine/arm/sys/stdio.h
--- newlib-2.3.0.20160104/newlib/libc/machine/arm/sys/stdio.h 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/libc/machine/arm/sys/stdio.h 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/machine/arm/sys/stdio.h 2016-05-13 15:25:17.689019640 +0100
@@ -0,0 +1,27 @@
+#ifndef _NEWLIB_STDIO_H
+#define _NEWLIB_STDIO_H
@ -14304,7 +14309,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/machine/arm/sys/stdio.h newlib-2.3
+#endif /* _NEWLIB_STDIO_H */
diff -NBaur newlib-2.3.0.20160104/newlib/libc/reent/getreent.c newlib-2.3.0.20160104-arm/newlib/libc/reent/getreent.c
--- newlib-2.3.0.20160104/newlib/libc/reent/getreent.c 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/reent/getreent.c 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/reent/getreent.c 2016-05-13 15:25:17.689019640 +0100
@@ -1,3 +1,4 @@
+#if 0
/* default reentrant pointer when multithread enabled */
@ -14318,7 +14323,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/reent/getreent.c newlib-2.3.0.2016
+#endif
diff -NBaur newlib-2.3.0.20160104/newlib/libc/reent/gettimeofdayr.c newlib-2.3.0.20160104-arm/newlib/libc/reent/gettimeofdayr.c
--- newlib-2.3.0.20160104/newlib/libc/reent/gettimeofdayr.c 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/reent/gettimeofdayr.c 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/reent/gettimeofdayr.c 2016-05-13 15:25:17.689019640 +0100
@@ -59,7 +59,7 @@
Check libc.a to see if its available on yours.
*/
@ -14337,7 +14342,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/reent/gettimeofdayr.c newlib-2.3.0
#endif /* ! defined (REENTRANT_SYSCALLS_PROVIDED) */
diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdio/fread.c newlib-2.3.0.20160104-arm/newlib/libc/stdio/fread.c
--- newlib-2.3.0.20160104/newlib/libc/stdio/fread.c 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdio/fread.c 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdio/fread.c 2016-05-13 15:25:17.701019640 +0100
@@ -168,7 +168,7 @@
}
@ -14383,7 +14388,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdio/fread.c newlib-2.3.0.2016010
#ifdef __SCLE
diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdio/fseek.c newlib-2.3.0.20160104-arm/newlib/libc/stdio/fseek.c
--- newlib-2.3.0.20160104/newlib/libc/stdio/fseek.c 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdio/fseek.c 2016-02-03 16:50:52.272000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdio/fseek.c 2016-05-13 15:25:17.701019640 +0100
@@ -108,7 +108,7 @@
_DEFUN(_fseek_r, (ptr, fp, offset, whence),
struct _reent *ptr _AND
@ -14404,7 +14409,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdio/fseek.c newlib-2.3.0.2016010
return _fseek_r (_REENT, fp, offset, whence);
diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdlib/mbtowc_r.c newlib-2.3.0.20160104-arm/newlib/libc/stdlib/mbtowc_r.c
--- newlib-2.3.0.20160104/newlib/libc/stdlib/mbtowc_r.c 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdlib/mbtowc_r.c 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdlib/mbtowc_r.c 2016-05-13 15:25:17.701019640 +0100
@@ -9,7 +9,7 @@
int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t,
@ -14416,7 +14421,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdlib/mbtowc_r.c newlib-2.3.0.201
#else
diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdlib/wctomb_r.c newlib-2.3.0.20160104-arm/newlib/libc/stdlib/wctomb_r.c
--- newlib-2.3.0.20160104/newlib/libc/stdlib/wctomb_r.c 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdlib/wctomb_r.c 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/stdlib/wctomb_r.c 2016-05-13 15:25:17.701019640 +0100
@@ -8,7 +8,7 @@
int (*__wctomb) (struct _reent *, char *, wchar_t, const char *charset,
@ -14428,7 +14433,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/stdlib/wctomb_r.c newlib-2.3.0.201
#else
diff -NBaur newlib-2.3.0.20160104/newlib/libc/sys/arm/include/machine/_types.h newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/include/machine/_types.h
--- newlib-2.3.0.20160104/newlib/libc/sys/arm/include/machine/_types.h 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/include/machine/_types.h 2016-02-03 17:14:12.524000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/include/machine/_types.h 2016-05-13 15:25:17.701019640 +0100
@@ -0,0 +1,13 @@
+#ifndef _MACHINE__TYPES_H
+#define _MACHINE__TYPES_H
@ -14446,7 +14451,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/sys/arm/include/machine/_types.h n
\ No newline at end of file
diff -NBaur newlib-2.3.0.20160104/newlib/libc/sys/arm/sys/lock.h newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/lock.h
--- newlib-2.3.0.20160104/newlib/libc/sys/arm/sys/lock.h 1970-01-01 01:00:00.000000000 +0100
+++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/lock.h 2016-01-26 13:06:41.592000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/lock.h 2016-05-13 15:25:17.701019640 +0100
@@ -0,0 +1,66 @@
+#ifndef __SYS_LOCK_H__
+#define __SYS_LOCK_H__
@ -14516,7 +14521,7 @@ diff -NBaur newlib-2.3.0.20160104/newlib/libc/sys/arm/sys/lock.h newlib-2.3.0.20
+#endif // __SYS_LOCK_H__
diff -NBaur newlib-2.3.0.20160104/newlib/libc/sys/arm/sys/param.h newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/param.h
--- newlib-2.3.0.20160104/newlib/libc/sys/arm/sys/param.h 2016-01-04 17:57:31.000000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/param.h 2016-01-26 13:08:22.656000000 +0000
+++ newlib-2.3.0.20160104-arm/newlib/libc/sys/arm/sys/param.h 2016-05-13 15:25:17.701019640 +0100
@@ -19,6 +19,8 @@
# define PATHSIZE (1024)
#endif