public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] newlib: drop support for decstation & sunos systems
@ 2022-02-16  1:01 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2022-02-16  1:01 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=df5808b77122e1bb5e4517e5dbd7f8e4093108c2

commit df5808b77122e1bb5e4517e5dbd7f8e4093108c2
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Sun Feb 13 19:15:57 2022 -0500

    newlib: drop support for decstation & sunos systems
    
    These targets don't actually cross-compile -- they try to pull some
    objects out of the host's /lib/libc.a, /lib/libm.a, and /lib/crt0.o
    directly and merge them into newlib's own libraries.  This is hard
    to keep working and impossible to test.  Considering the vintage of
    such targets, and gcc dropping them many many years ago, drop them
    from newlib too.  This will make cleaning up the build a lot easier.

Diff:
---
 newlib/NEWS                              |   1 +
 newlib/configure.host                    |  11 -
 newlib/libc/configure                    |   9 -
 newlib/libc/configure.ac                 |   3 -
 newlib/libc/sys/decstation/Makefile.am   |  42 --
 newlib/libc/sys/decstation/Makefile.in   | 551 --------------------------
 newlib/libc/sys/decstation/_main.c       |   6 -
 newlib/libc/sys/decstation/sys/dirent.h  |  41 --
 newlib/libc/sys/sparc64/Makefile.am      | 116 ------
 newlib/libc/sys/sparc64/Makefile.in      | 657 -------------------------------
 newlib/libc/sys/sparc64/_exit.S          |  14 -
 newlib/libc/sys/sparc64/_main.c          |   6 -
 newlib/libc/sys/sparc64/cerror.S         |  29 --
 newlib/libc/sys/sparc64/closedir.c       |  54 ---
 newlib/libc/sys/sparc64/creat.c          |  11 -
 newlib/libc/sys/sparc64/crt0.S           | 123 ------
 newlib/libc/sys/sparc64/dup2.S           |   9 -
 newlib/libc/sys/sparc64/execve.S         |  27 --
 newlib/libc/sys/sparc64/ieee.c           | 111 ------
 newlib/libc/sys/sparc64/isatty.c         |  17 -
 newlib/libc/sys/sparc64/lstat.S          |   5 -
 newlib/libc/sys/sparc64/opendir.c        |  76 ----
 newlib/libc/sys/sparc64/readdir.c        |  68 ----
 newlib/libc/sys/sparc64/rewinddir.c      |  45 ---
 newlib/libc/sys/sparc64/sbrk.S           |  78 ----
 newlib/libc/sys/sparc64/scandir.c        | 134 -------
 newlib/libc/sys/sparc64/seekdir.c        |  48 ---
 newlib/libc/sys/sparc64/sigsetjmp.S      |  77 ----
 newlib/libc/sys/sparc64/stat.S           |   9 -
 newlib/libc/sys/sparc64/sys/_timeval.h   |  30 --
 newlib/libc/sys/sparc64/sys/dirent.h     |  43 --
 newlib/libc/sys/sparc64/sys/fcntl.h      | 178 ---------
 newlib/libc/sys/sparc64/sys/file.h       |   3 -
 newlib/libc/sys/sparc64/sys/stat.h       | 132 -------
 newlib/libc/sys/sparc64/sys/syscall.h    | 346 ----------------
 newlib/libc/sys/sparc64/sys/syscallasm.h |  87 ----
 newlib/libc/sys/sparc64/sys/termios.h    | 122 ------
 newlib/libc/sys/sparc64/sys/utime.h      |  13 -
 newlib/libc/sys/sparc64/sys/utmp.h       |  43 --
 newlib/libc/sys/sparc64/sys/wait.h       |  43 --
 newlib/libc/sys/sparc64/telldir.c        | 125 ------
 newlib/libc/sys/sparc64/template.S       |  14 -
 newlib/libc/sys/sparc64/template_r.S     |  26 --
 newlib/libc/sys/sparc64/utime.S          |  10 -
 newlib/libc/sys/sparc64/utime2.c         |  26 --
 newlib/libc/sys/sparc64/wait.S           |  35 --
 newlib/libc/sys/sun4/Makefile.am         |  93 -----
 newlib/libc/sys/sun4/Makefile.in         | 617 -----------------------------
 newlib/libc/sys/sun4/_main.c             |   6 -
 newlib/libc/sys/sun4/ieee.c              | 111 ------
 newlib/libc/sys/sun4/sys/dirent.h        |  40 --
 newlib/libc/sys/sun4/sys/file.h          |   3 -
 newlib/libc/sys/sun4/sys/termios.h       | 122 ------
 newlib/libc/sys/sun4/sys/utime.h         |  13 -
 newlib/libc/sys/sun4/sys/utmp.h          |  43 --
 newlib/libc/sys/sun4/sys/wait.h          |  43 --
 56 files changed, 1 insertion(+), 4744 deletions(-)

diff --git a/newlib/NEWS b/newlib/NEWS
index d007aac3d..aaed47aae 100644
--- a/newlib/NEWS
+++ b/newlib/NEWS
@@ -1,6 +1,7 @@
 *** Major changes in newlib version 4.3.0:
 
 - remove i?86-pc-linux-gnu support
+- remove decstation & sunos support
 
 *** Major changes in newlib version 4.2.0:
 
diff --git a/newlib/configure.host b/newlib/configure.host
index 3c5df5a41..8344d7923 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -525,9 +525,6 @@ case "${host}" in
   microblaze*-*-*)
 	machine_dir=microblaze
 	;;
-  mips*-dec-*)
-	sys_dir=decstation
-	;;
   mmix-knuth-mmixware)
 	sys_dir=mmixware
 	;;
@@ -548,14 +545,6 @@ case "${host}" in
   sh*-*)
 	sys_dir=sh
 	;;
-  sparc-sun-sunos*)
-	sys_dir=sun4
-	unix_dir=unix
-	;;
-  sparc64*)
-	sys_dir=sparc64
-	unix_dir=unix
-	;;
   spu-*-*)
 	default_newlib_io_long_long="yes"
 	default_newlib_atexit_dynamic_alloc="no"
diff --git a/newlib/libc/configure b/newlib/libc/configure
index f5c9bbb92..bba5c9909 100755
--- a/newlib/libc/configure
+++ b/newlib/libc/configure
@@ -4506,8 +4506,6 @@ if test -n "${sys_dir}"; then
     arm) ac_config_files="$ac_config_files sys/arm/Makefile"
  ;;
     d10v) ac_config_files="$ac_config_files sys/d10v/Makefile"
- ;;
-    decstation) ac_config_files="$ac_config_files sys/decstation/Makefile"
  ;;
     epiphany) ac_config_files="$ac_config_files sys/epiphany/Makefile"
  ;;
@@ -4530,10 +4528,6 @@ if test -n "${sys_dir}"; then
     rtems) ac_config_files="$ac_config_files sys/rtems/Makefile"
  ;;
     sh) ac_config_files="$ac_config_files sys/sh/Makefile"
- ;;
-    sparc64) ac_config_files="$ac_config_files sys/sparc64/Makefile"
- ;;
-    sun4) ac_config_files="$ac_config_files sys/sun4/Makefile"
  ;;
     sysmec) ac_config_files="$ac_config_files sys/sysmec/Makefile"
  ;;
@@ -5780,7 +5774,6 @@ do
     "sys/amdgcn/Makefile") CONFIG_FILES="$CONFIG_FILES sys/amdgcn/Makefile" ;;
     "sys/arm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/arm/Makefile" ;;
     "sys/d10v/Makefile") CONFIG_FILES="$CONFIG_FILES sys/d10v/Makefile" ;;
-    "sys/decstation/Makefile") CONFIG_FILES="$CONFIG_FILES sys/decstation/Makefile" ;;
     "sys/epiphany/Makefile") CONFIG_FILES="$CONFIG_FILES sys/epiphany/Makefile" ;;
     "sys/h8300hms/Makefile") CONFIG_FILES="$CONFIG_FILES sys/h8300hms/Makefile" ;;
     "sys/h8500hms/Makefile") CONFIG_FILES="$CONFIG_FILES sys/h8500hms/Makefile" ;;
@@ -5792,8 +5785,6 @@ do
     "sys/rdos/Makefile") CONFIG_FILES="$CONFIG_FILES sys/rdos/Makefile" ;;
     "sys/rtems/Makefile") CONFIG_FILES="$CONFIG_FILES sys/rtems/Makefile" ;;
     "sys/sh/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sh/Makefile" ;;
-    "sys/sparc64/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sparc64/Makefile" ;;
-    "sys/sun4/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sun4/Makefile" ;;
     "sys/sysmec/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sysmec/Makefile" ;;
     "sys/sysnec810/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sysnec810/Makefile" ;;
     "sys/sysnecv850/Makefile") CONFIG_FILES="$CONFIG_FILES sys/sysnecv850/Makefile" ;;
diff --git a/newlib/libc/configure.ac b/newlib/libc/configure.ac
index a49fcaa45..96187da99 100644
--- a/newlib/libc/configure.ac
+++ b/newlib/libc/configure.ac
@@ -118,7 +118,6 @@ if test -n "${sys_dir}"; then
     amdgcn) AC_CONFIG_FILES([sys/amdgcn/Makefile]) ;;
     arm) AC_CONFIG_FILES([sys/arm/Makefile]) ;;
     d10v) AC_CONFIG_FILES([sys/d10v/Makefile]) ;;
-    decstation) AC_CONFIG_FILES([sys/decstation/Makefile]) ;;
     epiphany) AC_CONFIG_FILES([sys/epiphany/Makefile]) ;;
     h8300hms) AC_CONFIG_FILES([sys/h8300hms/Makefile]) ;;
     h8500hms) AC_CONFIG_FILES([sys/h8500hms/Makefile]) ;;
@@ -130,8 +129,6 @@ if test -n "${sys_dir}"; then
     rdos) AC_CONFIG_FILES([sys/rdos/Makefile]) ;;
     rtems) AC_CONFIG_FILES([sys/rtems/Makefile]) ;;
     sh) AC_CONFIG_FILES([sys/sh/Makefile]) ;;
-    sparc64) AC_CONFIG_FILES([sys/sparc64/Makefile]) ;;
-    sun4) AC_CONFIG_FILES([sys/sun4/Makefile]) ;;
     sysmec) AC_CONFIG_FILES([sys/sysmec/Makefile]) ;;
     sysnec810) AC_CONFIG_FILES([sys/sysnec810/Makefile]) ;;
     sysnecv850) AC_CONFIG_FILES([sys/sysnecv850/Makefile]) ;;
diff --git a/newlib/libc/sys/decstation/Makefile.am b/newlib/libc/sys/decstation/Makefile.am
deleted file mode 100644
index 22a2fa7d7..000000000
--- a/newlib/libc/sys/decstation/Makefile.am
+++ /dev/null
@@ -1,42 +0,0 @@
-## Process this file with automake to generate Makefile.in
-
-AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
-
-AM_CCASFLAGS = $(AM_CPPFLAGS)
-
-noinst_LIBRARIES = lib.a
-
-COPYOFILES = \
-	read.o \
-	open.o \
-	_exit.o \
-	write.o \
-	lseek.o \
-	close.o \
-	sbrk.o \
-	cerror.o \
-	fork.o \
-	isatty.o \
-	ioctl.o \
-	getpid.o \
-	time.o \
-	kill.o \
-	wait.o \
-	execve.o \
-	gettimeofday.o \
-	link.o \
-	unlink.o \
-	fstat.o \
-	times.o  \
-	getrusage.o  
-
-lib_a_SOURCES = _main.c
-lib_a_LIBADD = $(COPYOFILES)
-
-$(COPYOFILES):
-	ar x /lib/libc.a $(COPYOFILES) 
-
-all-local: crt0.o
-
-crt0.o:
-	cp /lib/crt0.o crt0.o
diff --git a/newlib/libc/sys/decstation/Makefile.in b/newlib/libc/sys/decstation/Makefile.in
deleted file mode 100644
index a2b22e886..000000000
--- a/newlib/libc/sys/decstation/Makefile.in
+++ /dev/null
@@ -1,551 +0,0 @@
-# Makefile.in generated by automake 1.15.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
-  if test -z '$(MAKELEVEL)'; then \
-    false; \
-  elif test -n '$(MAKE_HOST)'; then \
-    true; \
-  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
-    true; \
-  else \
-    false; \
-  fi; \
-}
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = sys/decstation
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/../../config/lead-dot.m4 \
-	$(top_srcdir)/../../config/override.m4 \
-	$(top_srcdir)/../acinclude.m4 \
-	$(top_srcdir)/machine/nds32/acinclude.m4 \
-	$(top_srcdir)/machine/powerpc/acinclude.m4 \
-	$(top_srcdir)/machine/sh/acinclude.m4 \
-	$(top_srcdir)/machine/spu/acinclude.m4 \
-	$(top_srcdir)/sys/phoenix/acinclude.m4 \
-	$(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am
-mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo "  AR      " $@;
-am__v_AR_1 = 
-lib_a_AR = $(AR) $(ARFLAGS)
-lib_a_DEPENDENCIES = $(COPYOFILES)
-am_lib_a_OBJECTS = _main.$(OBJEXT)
-lib_a_OBJECTS = $(am_lib_a_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp =
-am__depfiles_maybe =
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(lib_a_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCAS = @CCAS@
-CCASFLAGS = @CCASFLAGS@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CRT0 = @CRT0@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EXEEXT = @EXEEXT@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LIBC_MACHINE_DIR = @LIBC_MACHINE_DIR@
-LIBC_MACHINE_LIB = @LIBC_MACHINE_LIB@
-LIBC_POSIX_LIB = @LIBC_POSIX_LIB@
-LIBC_SIGNAL_LIB = @LIBC_SIGNAL_LIB@
-LIBC_STDIO64_LIB = @LIBC_STDIO64_LIB@
-LIBC_STDIO_LIB = @LIBC_STDIO_LIB@
-LIBC_SYSCALL_LIB = @LIBC_SYSCALL_LIB@
-LIBC_SYS_LIB = @LIBC_SYS_LIB@
-LIBC_UNIX_LIB = @LIBC_UNIX_LIB@
-LIBC_XDR_LIB = @LIBC_XDR_LIB@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
-NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PHOENIX_MACHINE_DIR = @PHOENIX_MACHINE_DIR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-SYS_DIR = @SYS_DIR@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_newlib_basedir = @abs_newlib_basedir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__leading_dot = @am__leading_dot@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-libm_machine_dir = @libm_machine_dir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-lpfx = @lpfx@
-machine_dir = @machine_dir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-newlib_basedir = @newlib_basedir@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-shared_machine_dir = @shared_machine_dir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sys_dir = @sys_dir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
-AM_CCASFLAGS = $(AM_CPPFLAGS)
-noinst_LIBRARIES = lib.a
-COPYOFILES = \
-	read.o \
-	open.o \
-	_exit.o \
-	write.o \
-	lseek.o \
-	close.o \
-	sbrk.o \
-	cerror.o \
-	fork.o \
-	isatty.o \
-	ioctl.o \
-	getpid.o \
-	time.o \
-	kill.o \
-	wait.o \
-	execve.o \
-	gettimeofday.o \
-	link.o \
-	unlink.o \
-	fstat.o \
-	times.o  \
-	getrusage.o  
-
-lib_a_SOURCES = _main.c
-lib_a_LIBADD = $(COPYOFILES)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps sys/decstation/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign --ignore-deps sys/decstation/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
-	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES) 
-	$(AM_V_at)-rm -f lib.a
-	$(AM_V_AR)$(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
-	$(AM_V_at)$(RANLIB) lib.a
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
-.c.o:
-	$(AM_V_CC)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-	$(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) all-local
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am clean \
-	clean-generic clean-noinstLIBRARIES cscopelist-am ctags \
-	ctags-am distclean distclean-compile distclean-generic \
-	distclean-tags dvi dvi-am html html-am info info-am install \
-	install-am install-data install-data-am install-dvi \
-	install-dvi-am install-exec install-exec-am install-html \
-	install-html-am install-info install-info-am install-man \
-	install-pdf install-pdf-am install-ps install-ps-am \
-	install-strip installcheck installcheck-am installdirs \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
-	tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-$(COPYOFILES):
-	ar x /lib/libc.a $(COPYOFILES) 
-
-all-local: crt0.o
-
-crt0.o:
-	cp /lib/crt0.o crt0.o
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/newlib/libc/sys/decstation/_main.c b/newlib/libc/sys/decstation/_main.c
deleted file mode 100644
index 64878088d..000000000
--- a/newlib/libc/sys/decstation/_main.c
+++ /dev/null
@@ -1,6 +0,0 @@
-
-__main()
-{
-  
-
-}
diff --git a/newlib/libc/sys/decstation/sys/dirent.h b/newlib/libc/sys/decstation/sys/dirent.h
deleted file mode 100644
index f5febb077..000000000
--- a/newlib/libc/sys/decstation/sys/dirent.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/* FIXME: From sys/sysvi386/sys */
-#ifndef _SYS_DIRENT_H
-# define _SYS_DIRENT_H
-
-/*
- * This file was written to be compatible with the BSD directory
- * routines, so it looks like it.  But it was written from scratch.
- * Sean Eric Fagan, sef@Kithrup.COM
- *
- * Modified by dje@cygnus.com for sun.
- * Modified by eichin@cygnus.com for decstation (ultrix 4.2)
- */
-
-typedef struct __dirdesc {
-	int	dd_fd;
-	long	dd_loc;
-	long	dd_size;
-	long	dd_bbase;
-	long	dd_entno;
-	long	dd_bsize;
-	char	*dd_buf;
-} DIR;
-
-# define __dirfd(dp)	((dp)->dd_fd)
-
-#include <sys/types.h>
-
-#define MAXNAMLEN	255
-
-#define d_ino	d_fileno	/* compatibility */
-
-struct dirent {
-	unsigned long	d_fileno;
-	unsigned short	d_reclen;
-	unsigned short	d_namlen;
-	char		d_name[MAXNAMLEN + 1];
-};
-
-/* FIXME: include definition of DIRSIZ() ? */
-
-#endif
diff --git a/newlib/libc/sys/sparc64/Makefile.am b/newlib/libc/sys/sparc64/Makefile.am
deleted file mode 100644
index f2437ba66..000000000
--- a/newlib/libc/sys/sparc64/Makefile.am
+++ /dev/null
@@ -1,116 +0,0 @@
-## Process this file with automake to generate Makefile.in
-
-AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
-
-AM_CCASFLAGS = $(AM_CPPFLAGS)
-
-noinst_LIBRARIES = lib.a
-
-# _r.o is for the reentrant syscall stubs.
-
-SUFFIXES = _r.o
-
-.S_r.o:
-	$(COMPILE) -DREENT -c $< -o $@
-
-.c_r.o:
-	$(COMPILE) -DREENT -c $< -o $@
-
-# We no longer copy files out of /lib/libc.a.  This is kept around until
-# most of them have replacements.
-#
-#COPYOFILES = \
-#	Ovfork.o _sigvec.o abort.o access.o chown.o creat.o \
-#	errlst.o getdents.o getdtablesize.o getpid.o \
-#	getrusage.o gettimeofday.o ieee_globals.o ioctl.o isatty.o \
-#	kill.o popen.o sbrk.o sigblock.o sigpause.o sigsetmask.o \
-#	sigtramp.o sigvec.o sleep.o setitimer.o start_float.o \
-#	time.o times.o utime.o utimes.o wait3.o
-COPYOFILES =
-
-# These files are from Sun's libc.a but must be renamed because they
-# conflict with other library .o's. They are renamed to xxxS.o.
-# div.o is used by times.o. errno.o conflicts with libc/errno/errno.o.
-#COPYRENAMEOFILES = divS.o errnoS.o
-COPYRENAMEOFILES =
-
-#COPYOMFILES = ieee_flags.o
-COPYOMFILES =
-
-# CFILES_R, SFILES_R, and TEMPLATE_SFILES_R define those system calls that are
-# needed by the ANSI C part of newlib (and thus we must provide namespace
-# clean versions of them because we define REENTRANT_SYSCALLS_PROVIDED).
-
-CFILES = _main.c ieee.c \
-	closedir.c opendir.c readdir.c rewinddir.c scandir.c seekdir.c \
-	telldir.c \
-	creat.c isatty.c utime2.c
-
-CFILES_R =
-
-SFILES = cerror.S crt0.S dup2.S execve.S _exit.S sigsetjmp.S utime.S
-
-SFILES_R = sbrk.S wait.S
-
-# List of files built from template.S (with an '_' suffix).
-
-TEMPLATE_SFILES = access_ chdir_ chmod_ chown_ dup_ fcntl_ \
-	lstat_ mkdir_ pipe_ rmdir_ times_ umask_ utimes_
-
-TEMPLATE_SFILES_R = close_ fork_ fstat_ getpid_ gettimeofday_ kill_ \
-	link_ lseek_ open_ read_ stat_ times_ unlink_ wait4_ write_
-
-OFILES = $(COPYOFILES) $(COPYRENAMEOFILES) $(COPYOMFILES) \
-	$(SFILES:.S=.o) $(SFILES_R:.S=.o) $(SFILES_R:.S=_r.o) \
-	$(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) $(TEMPLATE_SFILES_R:_=_r.o) \
-	$(CFILES:.c=.o) $(CFILES_R:.c=.o) $(CFILES_R:.c=_r.o)
-
-lib_a_SOURCES = $(SFILES) $(SFILES_R) $(CFILES) $(CFILES_R)
-lib_a_LIBADD = $(COPYOFILES) $(COPYRENAMEOFILES) $(COPYOMFILES) \
-	$(SFILES_R:.S=_r.o) \
-	$(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) \
-	$(TEMPLATE_SFILES_R:_=_r.o) \
-	$(CFILES_R:.c=_r.o)
-
-$(COPYOFILES):
-	$(AR) x /lib/libc.a $(COPYOFILES) 
-
-$(COPYRENAMEOFILES):
-	$(AR) x /lib/libc.a $(COPYRENAMEOFILES:S.o=.o) 
-	for f in $(COPYRENAMEOFILES); do mv `basename $$f S.o`.o $$f; done
-
-$(COPYOMFILES):
-	$(AR) x /lib/libm.a $(COPYOMFILES) 
-
-stamp-srcs: Makefile template.S template_r.S
-	for f in $(TEMPLATE_SFILES:_=);	do \
-	  $(COMPILE) -E -Dfunc=$$f $(srcdir)/template.S >$$f.S; \
-	done
-	for f in $(TEMPLATE_SFILES_R:_=); do \
-	  $(COMPILE) -E -Dfunc=$$f $(srcdir)/template_r.S | sed -e 's/^_/#/' >$$f.S; \
-	done
-	touch stamp-srcs
-
-# Make a dependency for each file built from a template.
-
-$(TEMPLATE_SFILES:_=.S) $(TEMPLATE_SFILES_R:_=.S): stamp-srcs
-
-all-local: crt0.o
-
-close_r.o: close.S
-fork_r.o: fork.S
-fstat_r.o: fstat.S
-getpid_r.o: getpid.S
-gettimeofday_r.o: gettimeofday.S
-kill_r.o: kill.S
-link_r.o: link.S
-lseek_r.o: lseek.S
-open_r.o: open.S
-read_r.o: read.S
-sbrk_r.o: sbrk.S
-stat_r.o: stat.S
-times_r.o: times.S
-unlink_r.o: unlink.S
-wait_r.o: wait.S
-wait4_r.o: wait4.S
-write_r.o: write.S
diff --git a/newlib/libc/sys/sparc64/Makefile.in b/newlib/libc/sys/sparc64/Makefile.in
deleted file mode 100644
index b66190cda..000000000
--- a/newlib/libc/sys/sparc64/Makefile.in
+++ /dev/null
@@ -1,657 +0,0 @@
-# Makefile.in generated by automake 1.15.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = { \
-  if test -z '$(MAKELEVEL)'; then \
-    false; \
-  elif test -n '$(MAKE_HOST)'; then \
-    true; \
-  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
-    true; \
-  else \
-    false; \
-  fi; \
-}
-am__make_running_with_option = \
-  case $${target_option-} in \
-      ?) ;; \
-      *) echo "am__make_running_with_option: internal error: invalid" \
-              "target option '$${target_option-}' specified" >&2; \
-         exit 1;; \
-  esac; \
-  has_opt=no; \
-  sane_makeflags=$$MAKEFLAGS; \
-  if $(am__is_gnu_make); then \
-    sane_makeflags=$$MFLAGS; \
-  else \
-    case $$MAKEFLAGS in \
-      *\\[\ \	]*) \
-        bs=\\; \
-        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
-          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
-    esac; \
-  fi; \
-  skip_next=no; \
-  strip_trailopt () \
-  { \
-    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
-  }; \
-  for flg in $$sane_makeflags; do \
-    test $$skip_next = yes && { skip_next=no; continue; }; \
-    case $$flg in \
-      *=*|--*) continue;; \
-        -*I) strip_trailopt 'I'; skip_next=yes;; \
-      -*I?*) strip_trailopt 'I';; \
-        -*O) strip_trailopt 'O'; skip_next=yes;; \
-      -*O?*) strip_trailopt 'O';; \
-        -*l) strip_trailopt 'l'; skip_next=yes;; \
-      -*l?*) strip_trailopt 'l';; \
-      -[dEDm]) skip_next=yes;; \
-      -[JT]) skip_next=yes;; \
-    esac; \
-    case $$flg in \
-      *$$target_option*) has_opt=yes; break;; \
-    esac; \
-  done; \
-  test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = sys/sparc64
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/../../config/lead-dot.m4 \
-	$(top_srcdir)/../../config/override.m4 \
-	$(top_srcdir)/../acinclude.m4 \
-	$(top_srcdir)/machine/nds32/acinclude.m4 \
-	$(top_srcdir)/machine/powerpc/acinclude.m4 \
-	$(top_srcdir)/machine/sh/acinclude.m4 \
-	$(top_srcdir)/machine/spu/acinclude.m4 \
-	$(top_srcdir)/sys/phoenix/acinclude.m4 \
-	$(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-	$(ACLOCAL_M4)
-DIST_COMMON = $(srcdir)/Makefile.am
-mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo "  AR      " $@;
-am__v_AR_1 = 
-lib_a_AR = $(AR) $(ARFLAGS)
-am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = sbrk_r.o wait_r.o
-am__DEPENDENCIES_3 = access.o chdir.o chmod.o chown.o dup.o fcntl.o \
-	lstat.o mkdir.o pipe.o rmdir.o times.o umask.o utimes.o
-am__DEPENDENCIES_4 = close.o fork.o fstat.o getpid.o gettimeofday.o \
-	kill.o link.o lseek.o open.o read.o stat.o times.o unlink.o \
-	wait4.o write.o
-am__DEPENDENCIES_5 = close_r.o fork_r.o fstat_r.o getpid_r.o \
-	gettimeofday_r.o kill_r.o link_r.o lseek_r.o open_r.o read_r.o \
-	stat_r.o times_r.o unlink_r.o wait4_r.o write_r.o
-lib_a_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
-	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \
-	$(am__DEPENDENCIES_3) $(am__DEPENDENCIES_4) \
-	$(am__DEPENDENCIES_5) $(am__DEPENDENCIES_1)
-am__objects_1 = cerror.$(OBJEXT) crt0.$(OBJEXT) dup2.$(OBJEXT) \
-	execve.$(OBJEXT) _exit.$(OBJEXT) sigsetjmp.$(OBJEXT) \
-	utime.$(OBJEXT)
-am__objects_2 = sbrk.$(OBJEXT) wait.$(OBJEXT)
-am__objects_3 = _main.$(OBJEXT) ieee.$(OBJEXT) closedir.$(OBJEXT) \
-	opendir.$(OBJEXT) readdir.$(OBJEXT) rewinddir.$(OBJEXT) \
-	scandir.$(OBJEXT) seekdir.$(OBJEXT) telldir.$(OBJEXT) \
-	creat.$(OBJEXT) isatty.$(OBJEXT) utime2.$(OBJEXT)
-am__objects_4 =
-am_lib_a_OBJECTS = $(am__objects_1) $(am__objects_2) $(am__objects_3) \
-	$(am__objects_4)
-lib_a_OBJECTS = $(am_lib_a_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo "  GEN     " $@;
-am__v_GEN_1 = 
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 = 
-DEFAULT_INCLUDES = -I.@am__isrc@
-depcomp =
-am__depfiles_maybe =
-CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
-AM_V_CPPAS = $(am__v_CPPAS_@AM_V@)
-am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@)
-am__v_CPPAS_0 = @echo "  CPPAS   " $@;
-am__v_CPPAS_1 = 
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo "  CC      " $@;
-am__v_CC_1 = 
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo "  CCLD    " $@;
-am__v_CCLD_1 = 
-SOURCES = $(lib_a_SOURCES)
-am__can_run_installinfo = \
-  case $$AM_UPDATE_INFO_DIR in \
-    n|no|NO) false;; \
-    *) (install-info --version) >/dev/null 2>&1;; \
-  esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates.  Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
-  BEGIN { nonempty = 0; } \
-  { items[$$0] = 1; nonempty = 1; } \
-  END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique.  This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
-  list='$(am__tagged_files)'; \
-  unique=`for i in $$list; do \
-    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-  done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCAS = @CCAS@
-CCASFLAGS = @CCASFLAGS@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CRT0 = @CRT0@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EXEEXT = @EXEEXT@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LIBC_MACHINE_DIR = @LIBC_MACHINE_DIR@
-LIBC_MACHINE_LIB = @LIBC_MACHINE_LIB@
-LIBC_POSIX_LIB = @LIBC_POSIX_LIB@
-LIBC_SIGNAL_LIB = @LIBC_SIGNAL_LIB@
-LIBC_STDIO64_LIB = @LIBC_STDIO64_LIB@
-LIBC_STDIO_LIB = @LIBC_STDIO_LIB@
-LIBC_SYSCALL_LIB = @LIBC_SYSCALL_LIB@
-LIBC_SYS_LIB = @LIBC_SYS_LIB@
-LIBC_UNIX_LIB = @LIBC_UNIX_LIB@
-LIBC_XDR_LIB = @LIBC_XDR_LIB@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
-NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PHOENIX_MACHINE_DIR = @PHOENIX_MACHINE_DIR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-SYS_DIR = @SYS_DIR@
-VERSION = @VERSION@
-abs_builddir = @abs_builddir@
-abs_newlib_basedir = @abs_newlib_basedir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__leading_dot = @am__leading_dot@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-libm_machine_dir = @libm_machine_dir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-lpfx = @lpfx@
-machine_dir = @machine_dir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-newlib_basedir = @newlib_basedir@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-shared_machine_dir = @shared_machine_dir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sys_dir = @sys_dir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
-AM_CCASFLAGS = $(AM_CPPFLAGS)
-noinst_LIBRARIES = lib.a
-
-# _r.o is for the reentrant syscall stubs.
-SUFFIXES = _r.o
-
-# We no longer copy files out of /lib/libc.a.  This is kept around until
-# most of them have replacements.
-#
-#COPYOFILES = \
-#	Ovfork.o _sigvec.o abort.o access.o chown.o creat.o \
-#	errlst.o getdents.o getdtablesize.o getpid.o \
-#	getrusage.o gettimeofday.o ieee_globals.o ioctl.o isatty.o \
-#	kill.o popen.o sbrk.o sigblock.o sigpause.o sigsetmask.o \
-#	sigtramp.o sigvec.o sleep.o setitimer.o start_float.o \
-#	time.o times.o utime.o utimes.o wait3.o
-COPYOFILES = 
-
-# These files are from Sun's libc.a but must be renamed because they
-# conflict with other library .o's. They are renamed to xxxS.o.
-# div.o is used by times.o. errno.o conflicts with libc/errno/errno.o.
-#COPYRENAMEOFILES = divS.o errnoS.o
-COPYRENAMEOFILES = 
-
-#COPYOMFILES = ieee_flags.o
-COPYOMFILES = 
-
-# CFILES_R, SFILES_R, and TEMPLATE_SFILES_R define those system calls that are
-# needed by the ANSI C part of newlib (and thus we must provide namespace
-# clean versions of them because we define REENTRANT_SYSCALLS_PROVIDED).
-CFILES = _main.c ieee.c \
-	closedir.c opendir.c readdir.c rewinddir.c scandir.c seekdir.c \
-	telldir.c \
-	creat.c isatty.c utime2.c
-
-CFILES_R = 
-SFILES = cerror.S crt0.S dup2.S execve.S _exit.S sigsetjmp.S utime.S
-SFILES_R = sbrk.S wait.S
-
-# List of files built from template.S (with an '_' suffix).
-TEMPLATE_SFILES = access_ chdir_ chmod_ chown_ dup_ fcntl_ \
-	lstat_ mkdir_ pipe_ rmdir_ times_ umask_ utimes_
-
-TEMPLATE_SFILES_R = close_ fork_ fstat_ getpid_ gettimeofday_ kill_ \
-	link_ lseek_ open_ read_ stat_ times_ unlink_ wait4_ write_
-
-OFILES = $(COPYOFILES) $(COPYRENAMEOFILES) $(COPYOMFILES) \
-	$(SFILES:.S=.o) $(SFILES_R:.S=.o) $(SFILES_R:.S=_r.o) \
-	$(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) $(TEMPLATE_SFILES_R:_=_r.o) \
-	$(CFILES:.c=.o) $(CFILES_R:.c=.o) $(CFILES_R:.c=_r.o)
-
-lib_a_SOURCES = $(SFILES) $(SFILES_R) $(CFILES) $(CFILES_R)
-lib_a_LIBADD = $(COPYOFILES) $(COPYRENAMEOFILES) $(COPYOMFILES) \
-	$(SFILES_R:.S=_r.o) \
-	$(TEMPLATE_SFILES:_=.o) $(TEMPLATE_SFILES_R:_=.o) \
-	$(TEMPLATE_SFILES_R:_=_r.o) \
-	$(CFILES_R:.c=_r.o)
-
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: _r.o .S .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
-	@for dep in $?; do \
-	  case '$(am__configure_deps)' in \
-	    *$$dep*) \
-	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
-	        && { if test -f $@; then exit 0; else break; fi; }; \
-	      exit 1;; \
-	  esac; \
-	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps sys/sparc64/Makefile'; \
-	$(am__cd) $(top_srcdir) && \
-	  $(AUTOMAKE) --foreign --ignore-deps sys/sparc64/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-	@case '$?' in \
-	  *config.status*) \
-	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-	  *) \
-	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-	esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
-	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
-	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES) 
-	$(AM_V_at)-rm -f lib.a
-	$(AM_V_AR)$(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
-	$(AM_V_at)$(RANLIB) lib.a
-
-mostlyclean-compile:
-	-rm -f *.$(OBJEXT)
-
-distclean-compile:
-	-rm -f *.tab.c
-
-.S.o:
-	$(AM_V_CPPAS)$(CPPASCOMPILE) -c -o $@ $<
-
-.S.obj:
-	$(AM_V_CPPAS)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.c.o:
-	$(AM_V_CC)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-	$(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-ID: $(am__tagged_files)
-	$(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	set x; \
-	here=`pwd`; \
-	$(am__define_uniq_tagged_files); \
-	shift; \
-	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
-	  test -n "$$unique" || unique=$$empty_fix; \
-	  if test $$# -gt 0; then \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      "$$@" $$unique; \
-	  else \
-	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-	      $$unique; \
-	  fi; \
-	fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
-	$(am__define_uniq_tagged_files); \
-	test -z "$(CTAGS_ARGS)$$unique" \
-	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-	     $$unique
-
-GTAGS:
-	here=`$(am__cd) $(top_builddir) && pwd` \
-	  && $(am__cd) $(top_srcdir) \
-	  && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
-	list='$(am__tagged_files)'; \
-	case "$(srcdir)" in \
-	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
-	  *) sdir=$(subdir)/$(srcdir) ;; \
-	esac; \
-	for i in $$list; do \
-	  if test -f "$$i"; then \
-	    echo "$(subdir)/$$i"; \
-	  else \
-	    echo "$$sdir/$$i"; \
-	  fi; \
-	done >> $(top_builddir)/cscope.files
-
-distclean-tags:
-	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) all-local
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-	if test -z '$(STRIP)'; then \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	      install; \
-	else \
-	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
-	fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
-	@echo "This command is intended for maintainers to use"
-	@echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
-	-rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-	distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-	-rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am clean \
-	clean-generic clean-noinstLIBRARIES cscopelist-am ctags \
-	ctags-am distclean distclean-compile distclean-generic \
-	distclean-tags dvi dvi-am html html-am info info-am install \
-	install-am install-data install-data-am install-dvi \
-	install-dvi-am install-exec install-exec-am install-html \
-	install-html-am install-info install-info-am install-man \
-	install-pdf install-pdf-am install-ps install-ps-am \
-	install-strip installcheck installcheck-am installdirs \
-	maintainer-clean maintainer-clean-generic mostlyclean \
-	mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
-	tags tags-am uninstall uninstall-am
-
-.PRECIOUS: Makefile
-
-
-.S_r.o:
-	$(COMPILE) -DREENT -c $< -o $@
-
-.c_r.o:
-	$(COMPILE) -DREENT -c $< -o $@
-
-$(COPYOFILES):
-	$(AR) x /lib/libc.a $(COPYOFILES) 
-
-$(COPYRENAMEOFILES):
-	$(AR) x /lib/libc.a $(COPYRENAMEOFILES:S.o=.o) 
-	for f in $(COPYRENAMEOFILES); do mv `basename $$f S.o`.o $$f; done
-
-$(COPYOMFILES):
-	$(AR) x /lib/libm.a $(COPYOMFILES) 
-
-stamp-srcs: Makefile template.S template_r.S
-	for f in $(TEMPLATE_SFILES:_=);	do \
-	  $(COMPILE) -E -Dfunc=$$f $(srcdir)/template.S >$$f.S; \
-	done
-	for f in $(TEMPLATE_SFILES_R:_=); do \
-	  $(COMPILE) -E -Dfunc=$$f $(srcdir)/template_r.S | sed -e 's/^_/#/' >$$f.S; \
-	done
-	touch stamp-srcs
-
-# Make a dependency for each file built from a template.
-
-$(TEMPLATE_SFILES:_=.S) $(TEMPLATE_SFILES_R:_=.S): stamp-srcs
-
-all-local: crt0.o
-
-close_r.o: close.S
-fork_r.o: fork.S
-fstat_r.o: fstat.S
-getpid_r.o: getpid.S
-gettimeofday_r.o: gettimeofday.S
-kill_r.o: kill.S
-link_r.o: link.S
-lseek_r.o: lseek.S
-open_r.o: open.S
-read_r.o: read.S
-sbrk_r.o: sbrk.S
-stat_r.o: stat.S
-times_r.o: times.S
-unlink_r.o: unlink.S
-wait_r.o: wait.S
-wait4_r.o: wait4.S
-write_r.o: write.S
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/newlib/libc/sys/sparc64/_exit.S b/newlib/libc/sys/sparc64/_exit.S
deleted file mode 100644
index 174f72165..000000000
--- a/newlib/libc/sys/sparc64/_exit.S
+++ /dev/null
@@ -1,14 +0,0 @@
-! _exit() system call
-
-#include "sys/syscallasm.h"
-
-	TEXT_SECTION
-	ALIGN (4)
-	GLOBAL (ASM_SYMBOL (_exit))
-ASM_SYMBOL (_exit):
-	mov	SYS_exit,%g1
-	ta	%icc,SYSCALL_TRAP
-
-! If that returns (yikes!), try an illegal insn ...
-
-	WORD (0)
\ No newline at end of file
diff --git a/newlib/libc/sys/sparc64/_main.c b/newlib/libc/sys/sparc64/_main.c
deleted file mode 100644
index 64878088d..000000000
--- a/newlib/libc/sys/sparc64/_main.c
+++ /dev/null
@@ -1,6 +0,0 @@
-
-__main()
-{
-  
-
-}
diff --git a/newlib/libc/sys/sparc64/cerror.S b/newlib/libc/sys/sparc64/cerror.S
deleted file mode 100644
index c29563fef..000000000
--- a/newlib/libc/sys/sparc64/cerror.S
+++ /dev/null
@@ -1,29 +0,0 @@
-! Set errno.
-! This function is called by all the syscall stubs.
-!
-! FIXME: We assume errno is the first member of struct _reent.
-! Not sure what to do about this.
-
-#include <sys/syscallasm.h>
-
-	DATA_SECTION
-	ALIGN (4)
-	GLOBAL (ASM_SYMBOL (errno))	! FIXME: ASM_PRIVATE_SYMBOL ?
-ASM_SYMBOL (errno):
-	WORD (0)
-
-	TEXT_SECTION
-	ALIGN (4)
-
-	GLOBAL (ASM_PRIVATE_SYMBOL (cerror))
-ASM_PRIVATE_SYMBOL (cerror):
-	sethi	%hi (ASM_SYMBOL (errno)),%g1
-	stw	%o0,[%g1+%lo (ASM_SYMBOL (errno))]
-	jmpl	%o7+8,%g0
-	mov	-1,%o0
-
-	GLOBAL (ASM_PRIVATE_SYMBOL (cerror_r))
-ASM_PRIVATE_SYMBOL (cerror_r):
-	stw	%o0,[%o1]
-	jmpl	%o7+8,%g0
-	mov	-1,%o0
diff --git a/newlib/libc/sys/sparc64/closedir.c b/newlib/libc/sys/sparc64/closedir.c
deleted file mode 100644
index a5ad5edde..000000000
--- a/newlib/libc/sys/sparc64/closedir.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)closedir.c	5.9 (Berkeley) 2/23/91";
-#endif /* LIBC_SCCS and not lint */
-
-#include <sys/types.h>
-#include <dirent.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-/*
- * close a directory.
- */
-int
-closedir(dirp)
-	register DIR *dirp;
-{
-	int fd;
-
-	fd = dirp->dd_fd;
-	dirp->dd_fd = -1;
-	dirp->dd_loc = 0;
-	(void)free((void *)dirp->dd_buf);
-	(void)free((void *)dirp);
-	return(close(fd));
-}
diff --git a/newlib/libc/sys/sparc64/creat.c b/newlib/libc/sys/sparc64/creat.c
deleted file mode 100644
index 6b1116206..000000000
--- a/newlib/libc/sys/sparc64/creat.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* creat() "system call" */
-
-/* This is needed by f2c and therefore the SPEC benchmarks.  */
-
-#include <fcntl.h>
-
-int
-creat (const char *path, mode_t mode)
-{
-  return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);
-}
diff --git a/newlib/libc/sys/sparc64/crt0.S b/newlib/libc/sys/sparc64/crt0.S
deleted file mode 100644
index ed2cb7e93..000000000
--- a/newlib/libc/sys/sparc64/crt0.S
+++ /dev/null
@@ -1,123 +0,0 @@
-! C run time start off
-
-! This file supports:
-!
-! - both 32bit pointer and 64bit pointer environments (at compile time)
-! - an imposed stack bias (of 2047) (at run time)
-! - medium/low and medium/anywhere code models (at run time)
-
-! Initial stack setup:
-!
-!    bottom of stack (higher memory address)
-! 	...
-!	text of environment strings
-!	text of argument strings
-!	envp[envc] = 0 (4/8 bytes)
-!	...
-!	env[0] (4/8 bytes)
-!	argv[argc] = 0 (4/8 bytes)
-!	...
-!	argv[0] (4/8 bytes)
-!	argc (4/8 bytes)
-!	register save area (64 bits by 16 registers = 128 bytes)
-!	top of stack (%sp)
-
-! Stack Bias:
-!
-! It is the responsibility of the o/s to set this up.
-! We handle both a 0 and 2047 value for the stack bias.
-
-! Medium/Anywhere code model support:
-!
-! In this model %g4 points to the start of the data segment.
-! The text segment can go anywhere, but %g4 points to the *data* segment.
-! It is up to the compiler/linker to get this right.
-!
-! Since this model is statically linked the start of the data segment
-! is known at link time.  Eg:
-!
-!	sethi	%hh(data_start), %g1
-!	sethi	%lm(data_start), %g4
-!	or	%g1, %hm(data_start), %g1
-!	or	%g4, %lo(data_start), %g4
-!	sllx	%g1, 32, %g1
-!	or	%g4, %g1, %g4
-!
-! FIXME: For now we just assume 0.
-
-! FIXME: if %g1 contains a non-zero value, atexit() should be invoked
-! with this value.
-
-#include <sys/syscallasm.h>
-
-	TEXT_SECTION
-	ALIGN (4)
-	GLOBAL (ASM_PRIVATE_SYMBOL (start))
-ASM_PRIVATE_SYMBOL (start):
-	clr	%fp
-
-! We use %g4 even if the code model is Medium/Low (simplifies the code).
-
-	clr	%g4			! Medium/Anywhere base reg
-
-! If there is a stack bias in effect, account for it in %g5.  Then always
-! add %g5 to stack references below.  This way the code can be used with
-! or without an imposed bias.
-
-	andcc	%sp, 1, %g5
-	bnz,a	.LHaveBias
-	mov	2047, %g5
-.LHaveBias:
-	add	%sp, %g5, %sp
-
-#if TARGET_PTR_SIZE == 32
-	! FIXME: We apparently assume here that there is no reserved word.
-	! This is probably correct, but try to verify it.
-	ld	[%sp + 0x80], %o0	! argc
-	add	%sp, 0x84, %o1		! argv
-	add	%o0, 1, %o2
-	sll	%o2, 2, %o2
-#else /* TARGET_PTR_SIZE == 64 */
-	ld	[%sp + 0x8c], %o0	! argc.lo
-	add	%sp, 0x90, %o1		! argv
-	add	%o0, 1, %o2
-	sll	%o2, 3, %o2
-#endif
-	add	%o1, %o2, %o2		! envp
-	sethi	%hi (ASM_SYMBOL (environ)), %o3
-	or	%o3, %lo (ASM_SYMBOL (environ)), %o3
-#if TARGET_PTR_SIZE == 32
-	st	%o2, [%o3 + %g4]
-#else /* TARGET_PTR_SIZE == 64 */
-	stx	%o2, [%o3 + %g4]
-#endif
-
-! Restore any stack bias before we call main() ...
-
-	sub	%sp, %g5, %sp
-
-	GLOBAL (ASM_SYMBOL (main))
-	call	ASM_SYMBOL (main)
-
-! FIXME: Not sure if this is needed anymore.
-#if TARGET_PTR_SIZE == 32
-	sub	%sp, 0x20, %sp		! room to push args
-#else /* TARGET_PTR_SIZE == 64 */
-	sub	%sp, 0x30, %sp		! room to push args
-#endif
-
-	GLOBAL (ASM_SYMBOL (exit))
-	call	ASM_SYMBOL (exit)
-	nop
-
-	GLOBAL (ASM_SYMBOL (_exit))
-	call	ASM_SYMBOL (_exit)
-	nop
-
-	set	SYS_exit, %g1
-	ta	SYSCALL_TRAP		! in case user redefines __exit
-
-! If all the above methods fail to terminate the program, try an illegal insn.
-! If that does not work, the o/s is hosed more than we are.
-
-	WORD (0)
diff --git a/newlib/libc/sys/sparc64/dup2.S b/newlib/libc/sys/sparc64/dup2.S
deleted file mode 100644
index f46fb703e..000000000
--- a/newlib/libc/sys/sparc64/dup2.S
+++ /dev/null
@@ -1,9 +0,0 @@
-! dup2() system call
-
-#include "sys/syscallasm.h"
-
-/* FIXME: rewrite in C to use fcntl */
-
-#ifndef __svr4__	/* svr4 uses fcntl */
-	defsyscall (dup2, SYS_dup2)
-#endif
diff --git a/newlib/libc/sys/sparc64/execve.S b/newlib/libc/sys/sparc64/execve.S
deleted file mode 100644
index 804d2ee3c..000000000
--- a/newlib/libc/sys/sparc64/execve.S
+++ /dev/null
@@ -1,27 +0,0 @@
-! execve.S
-! This function is invoked by the other exec*() fns.
-!
-! If sizeof(char *) == 64, we invoke a new Shade function until the real one
-! is defined.
-
-#include "sys/syscallasm.h"
-
-	TEXT_SECTION
-	ALIGN (4)
-	GLOBAL (ASM_SYMBOL (execve))
-ASM_SYMBOL (execve):
-	mov	SYS_execve,%g1
-#if TARGET_PTR_SIZE == 64
-	ta	42
-#else
-	ta	SYSCALL_TRAP
-#endif
-
-	bcc	noerr
-	nop
-
-	seterrno()
-
-noerr:
-	jmpl	%o7+8,%g0
-	nop
diff --git a/newlib/libc/sys/sparc64/ieee.c b/newlib/libc/sys/sparc64/ieee.c
deleted file mode 100644
index 42c530ba4..000000000
--- a/newlib/libc/sys/sparc64/ieee.c
+++ /dev/null
@@ -1,111 +0,0 @@
-
-#include <ieeefp.h>
-
-
-fp_rnd
-fpgetround (void)
-{
-  char *out;
-  ieee_flags("get", "direction","", &out);
-  if (strcmp(out,"nearest") == 0) return FP_RN;  
-  if (strcmp(out,"negative") == 0) return FP_RM;  
-  if (strcmp(out,"positive") == 0) return FP_RP;  
-  if (strcmp(out,"tozero") == 0) return FP_RZ;  
-  abort();
-  
-}
-
-fp_rnd
-fpsetround (fp_rnd new)
-{
-  fp_rnd old = fpgetround();
-  char *dummy;
-  
-  switch (new) 
-  {
-  case FP_RN:
-    ieee_flags("set", "direction", "nearest", &dummy);
-    break;
-  case FP_RM:
-    ieee_flags("set", "direction", "negative", &dummy);
-    break;
-  case FP_RP:
-    ieee_flags("set", "direction", "positive", &dummy);
-    break;
-  case FP_RZ:
-    ieee_flags("set", "direction", "tozero", &dummy);
-    break;
-  default:
-    break;
-  }
-  return old;
-}
-
-
-fp_except
-fpgetmask (void)
-{
-  char *out;
-  int r = 0;
-
-  int i = ieee_flags("get","exception","",&out);  
-  if (i & 1) r |= FP_X_IMP;
-  if (i & 2) r |= FP_X_DX;
-  if (i & 4) r |= FP_X_UFL;
-  if (i & 8) r |= FP_X_OFL;
-  if (i & 16) r |= FP_X_INV;
-  return r;
-
-}
-
-fp_except
-fpsetmask (fp_except mask)
-{
-  fp_except old = fpgetmask();  
-
-  char *out;
-  ieee_flags("clear","exception", "all", &out);
-
-
-  if (mask & FP_X_IMP) 
-   ieee_flags("set","exception","inexact", &out);
-  if (mask  & FP_X_DX)
-   ieee_flags("set","exception","division", &out);
-  if (mask & FP_X_UFL)
-   ieee_flags("set","exception","underflow", &out);
-  if (mask & FP_X_OFL)
-   ieee_flags("set","exception","overflow", &out);
-  if (mask & FP_X_INV)
-   ieee_flags("set","exception","invalid", &out);
-
-  return old;
-
-}
-
-fp_except 
-fpsetsticky (fp_except mask)
-{
-  return fpsetmask(mask);
-}
-
-fp_except
-fpgetsticky (void)
-{
-  return fpgetmask();
-}
-
-int
-fpsetroundtoi (fp_rdi rdi_mode)
-{
-  
-  return 0;
-  
-}
-
-int 
-fpgetroundtoi (void)
-{
-  
-  return 0;
-  
-}
diff --git a/newlib/libc/sys/sparc64/isatty.c b/newlib/libc/sys/sparc64/isatty.c
deleted file mode 100644
index 3c64647a9..000000000
--- a/newlib/libc/sys/sparc64/isatty.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* isatty.c */
-
-/* Dumb implementation so programs will at least run.  */
-
-#include <sys/stat.h>
-
-int
-isatty (int fd)
-{
-  struct stat buf;
-
-  if (fstat (fd, &buf) < 0)
-    return 0;
-  if (S_ISCHR (buf.st_mode))
-    return 1;
-  return 0;
-}
diff --git a/newlib/libc/sys/sparc64/lstat.S b/newlib/libc/sys/sparc64/lstat.S
deleted file mode 100644
index 381330d17..000000000
--- a/newlib/libc/sys/sparc64/lstat.S
+++ /dev/null
@@ -1,5 +0,0 @@
-! lstat() system call
-
-#include "sys/syscallasm.h"
-
-	defsyscall (lstat, SYS_lstat)
diff --git a/newlib/libc/sys/sparc64/opendir.c b/newlib/libc/sys/sparc64/opendir.c
deleted file mode 100644
index db2fffd4c..000000000
--- a/newlib/libc/sys/sparc64/opendir.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)opendir.c	5.11 (Berkeley) 2/23/91";
-#endif /* LIBC_SCCS and not lint */
-
-#include <dirent.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-/*
- * open a directory.
- */
-DIR *
-opendir(name)
-	const char *name;
-{
-	register DIR *dirp;
-	register int fd;
-
-	if ((fd = open(name, 0)) == -1)
-		return NULL;
-	if (fcntl(fd, F_SETFD, 1) == -1 ||
-	    (dirp = (DIR *)malloc(sizeof(DIR))) == NULL) {
-		close (fd);
-		return NULL;
-	}
-	/*
-	 * If CLSIZE is an exact multiple of DIRBLKSIZ, use a CLSIZE
-	 * buffer that it cluster boundary aligned.
-	 * Hopefully this can be a big win someday by allowing page trades
-	 * to user space to be done by getdirentries()
-	 */
-	dirp->dd_buf = malloc (512);
-	dirp->dd_len = 512;
-
-	if (dirp->dd_buf == NULL) {
-		close (fd);
-		return NULL;
-	}
-	dirp->dd_fd = fd;
-	dirp->dd_loc = 0;
-	dirp->dd_seek = 0;
-	/*
-	 * Set up seek point for rewinddir.
-	 */
-	return dirp;
-}
diff --git a/newlib/libc/sys/sparc64/readdir.c b/newlib/libc/sys/sparc64/readdir.c
deleted file mode 100644
index bce9d74ad..000000000
--- a/newlib/libc/sys/sparc64/readdir.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)readdir.c	5.7 (Berkeley) 6/1/90";
-#endif /* LIBC_SCCS and not lint */
-
-#include <dirent.h>
-
-/*
- * get next entry in a directory.
- */
-struct dirent *
-readdir(dirp)
-register DIR *dirp; {
-  register struct dirent *dp;
-  
-  for (;;) {
-    if (dirp->dd_loc == 0) {
-      dirp->dd_size = getdents (dirp->dd_fd,
-				dirp->dd_buf,
-				dirp->dd_len);
-      
-      if (dirp->dd_size <= 0)
-	return NULL;
-    }
-    if (dirp->dd_loc >= dirp->dd_size) {
-      dirp->dd_loc = 0;
-      continue;
-    }
-    dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc);
-    if ((int)dp & 03)	/* bogus pointer check */
-      return NULL;
-    if (dp->d_reclen <= 0 ||
-	dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc)
-      return NULL;
-    dirp->dd_loc += dp->d_reclen;
-    if (dp->d_ino == 0)
-      continue;
-    return (dp);
-  }
-}
diff --git a/newlib/libc/sys/sparc64/rewinddir.c b/newlib/libc/sys/sparc64/rewinddir.c
deleted file mode 100644
index 16656ddee..000000000
--- a/newlib/libc/sys/sparc64/rewinddir.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/*-
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)rewinddir.c	5.1 (Berkeley) 5/25/90";
-#endif /* LIBC_SCCS and not lint */
-
-#include <sys/types.h>
-#include <dirent.h>
-
-void
-rewinddir(dirp)
-	DIR *dirp;
-{
-	extern long _rewinddir;
-
-	_seekdir((dirp), _rewinddir);
-	_rewinddir = telldir(dirp);
-}
diff --git a/newlib/libc/sys/sparc64/sbrk.S b/newlib/libc/sys/sparc64/sbrk.S
deleted file mode 100644
index bff72fa81..000000000
--- a/newlib/libc/sys/sparc64/sbrk.S
+++ /dev/null
@@ -1,78 +0,0 @@
-! sbrk() system call
-
-#include "sys/syscallasm.h"
-
-	DATA_SECTION
-	ALIGN (4)
-
-! CURBRK contains the current top of allocated space.
-! END is a private symbol in svr4, but a public one in sunos4.
-! FIXME: CURBRK is 4 bytes for now.
-
-
-	GLOBAL (ASM_PRIVATE_SYMBOL (curbrk))
-ASM_PRIVATE_SYMBOL (curbrk):
-#ifdef __svr4__
-	WORD (ASM_PRIVATE_SYMBOL (end))
-#else
-	WORD (ASM_SYMBOL (end))
-#endif
-
-	TEXT_SECTION
-	ALIGN (4)
-#ifdef REENT
-	GLOBAL (ASM_SYMBOL (_sbrk_r))
-ASM_SYMBOL (_sbrk_r):
-	mov	%o0,%o5
-	mov	%o1,%o0
-#else
-	GLOBAL (ASM_SYMBOL (sbrk))
-ASM_SYMBOL (sbrk):
-#endif
-	add	%o0,7,%o0
-	andn	%o0,7,%o0
-	sethi	%hi (ASM_PRIVATE_SYMBOL (curbrk)),%o2
-	lduw	[%o2+%lo (ASM_PRIVATE_SYMBOL (curbrk))],%o3
-	add	%o3,7,%o3
-	andn	%o3,7,%o3
-	add	%o3,%o0,%o0
-	mov	%o0,%o4
-	mov	SYS_brk,%g1
-	ta	SYSCALL_TRAP
-	bcs	err
-	nop
-	stw	%o4,[%o2+%lo (ASM_PRIVATE_SYMBOL (curbrk))]
-	jmpl	%o7+8,%g0
-	mov	%o3,%o0
-
-#ifdef REENT
-	GLOBAL (ASM_SYMBOL (_brk_r))
-ASM_SYMBOL (_brk_r):
-	mov	%o0,%o5
-	mov	%o1,%o0
-#else
-	GLOBAL (ASM_SYMBOL (brk))
-ASM_SYMBOL (brk):
-#endif
-	add	%o0,7,%o0
-	andn	%o0,7,%o0
-	mov	%o0,%o2
-	mov	SYS_brk,%g1
-	ta	SYSCALL_TRAP
-	bcs	err
-	nop
-	sethi	%hi (ASM_PRIVATE_SYMBOL (curbrk)),%o3
-	st	%o2,[%o3+%lo (ASM_PRIVATE_SYMBOL (curbrk))]
-	retl
-	mov	%g0,%o0
-
-err:
-#ifdef REENT
-	sethi	%hi (ASM_PRIVATE_SYMBOL (cerror_r)),%g1
-	or	%g1,%lo (ASM_PRIVATE_SYMBOL (cerror_r)),%g1
-#else
-	sethi	%hi (ASM_PRIVATE_SYMBOL (cerror)),%g1
-	or	%g1,%lo (ASM_PRIVATE_SYMBOL (cerror)),%g1
-#endif
-	jmpl	%g1,%g0
-	mov	%o5,%o1
diff --git a/newlib/libc/sys/sparc64/scandir.c b/newlib/libc/sys/sparc64/scandir.c
deleted file mode 100644
index f5fb55d5c..000000000
--- a/newlib/libc/sys/sparc64/scandir.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)scandir.c	5.10 (Berkeley) 2/23/91";
-#endif /* LIBC_SCCS and not lint */
-
-/*
- * Scan the directory dirname calling select to make a list of selected
- * directory entries then sort using qsort and compare routine dcomp.
- * Returns the number of entries and a pointer to a list of pointers to
- * struct dirent (through namelist). Returns -1 if there were any errors.
- */
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-#include <stdlib.h>
-#include <string.h>
-
-/*
- * The DIRSIZ macro gives the minimum record length which will hold
- * the directory entry.  This requires the amount of space in struct dirent
- * without the d_name field, plus enough space for the name with a terminating
- * null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
- */
-#undef DIRSIZ
-#define DIRSIZ(dp) \
-    ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
-
-#ifndef __P
-#define __P(args) ()
-#endif
-
-int
-scandir(dirname, namelist, select, dcomp)
-	const char *dirname;
-	struct dirent ***namelist;
-	int (*select) __P((struct dirent *));
-	int (*dcomp) __P((const void *, const void *));
-{
-	register struct dirent *d, *p, **names;
-	register size_t nitems;
-	struct stat stb;
-	long arraysz;
-	DIR *dirp;
-
-	if ((dirp = opendir(dirname)) == NULL)
-		return(-1);
-	if (fstat(dirp->dd_fd, &stb) < 0)
-		return(-1);
-
-	/*
-	 * estimate the array size by taking the size of the directory file
-	 * and dividing it by a multiple of the minimum size entry. 
-	 */
-	arraysz = (stb.st_size / 24);
-	names = (struct dirent **)malloc(arraysz * sizeof(struct dirent *));
-	if (names == NULL)
-		return(-1);
-
-	nitems = 0;
-	while ((d = readdir(dirp)) != NULL) {
-		if (select != NULL && !(*select)(d))
-			continue;	/* just selected names */
-		/*
-		 * Make a minimum size copy of the data
-		 */
-		p = (struct dirent *)malloc(DIRSIZ(d));
-		if (p == NULL)
-			return(-1);
-		p->d_ino = d->d_ino;
-		p->d_reclen = d->d_reclen;
-		p->d_namlen = d->d_namlen;
-		bcopy(d->d_name, p->d_name, p->d_namlen + 1);
-		/*
-		 * Check to make sure the array has space left and
-		 * realloc the maximum size.
-		 */
-		if (++nitems >= arraysz) {
-			if (fstat(dirp->dd_fd, &stb) < 0)
-				return(-1);	/* just might have grown */
-			arraysz = stb.st_size / 12;
-			names = (struct dirent **)realloc((char *)names,
-				arraysz * sizeof(struct dirent *));
-			if (names == NULL)
-				return(-1);
-		}
-		names[nitems-1] = p;
-	}
-	closedir(dirp);
-	if (nitems && dcomp != NULL)
-		qsort(names, nitems, sizeof(struct dirent *), dcomp);
-	*namelist = names;
-	return(nitems);
-}
-
-/*
- * Alphabetic order comparison routine for those who want it.
- */
-int
-alphasort(d1, d2)
-	const void *d1;
-	const void *d2;
-{
-	return(strcmp((*(struct dirent **)d1)->d_name,
-	    (*(struct dirent **)d2)->d_name));
-}
diff --git a/newlib/libc/sys/sparc64/seekdir.c b/newlib/libc/sys/sparc64/seekdir.c
deleted file mode 100644
index a3a62e182..000000000
--- a/newlib/libc/sys/sparc64/seekdir.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)seekdir.c	5.7 (Berkeley) 6/1/90";
-#endif /* LIBC_SCCS and not lint */
-
-#include <sys/param.h>
-#include <dirent.h>
-
-/*
- * Seek to an entry in a directory.
- * _seekdir is in telldir.c so that it can share opaque data structures.
- */
-void
-seekdir(dirp, loc)
-	DIR *dirp;
-	long loc;
-{
-
-	_seekdir(dirp, loc);
-}
diff --git a/newlib/libc/sys/sparc64/sigsetjmp.S b/newlib/libc/sys/sparc64/sigsetjmp.S
deleted file mode 100644
index 7751e5f8c..000000000
--- a/newlib/libc/sys/sparc64/sigsetjmp.S
+++ /dev/null
@@ -1,77 +0,0 @@
-! This file is called sigsetjmp.s because that is what V8 uses.
-! We do not define sigsetjmp() or setlongjmp() yet.
-! Solaris has setjmp/longjmp in setjmp.o.  Move this stuff there.
-
-#include <sys/syscallasm.h>
-
-	TEXT_SECTION
-	ALIGN (4)
-
-#ifdef __svr4__
-
-	GLOBAL (ASM_SYMBOL (setjmp))
-	.proc	04
-ASM_SYMBOL (setjmp):
-
-	clr	[%o0]
-	stx	%sp,[%o0+8]
-	add	%o7,8,%g1
-	stx	%g1,[%o0+16]
-	retl 
-	mov	%g0,%o0
-
-	GLOBAL (ASM_SYMBOL (longjmp))
-	.proc	04
-ASM_SYMBOL (longjmp):
-
-	flushw				! flush register windows
-	sub	%sp,136,%sp
-	ldx	[%o0+8],%fp
-	ldx	[%o0+16],%g1
-	tst	%o1
-	bne	L0
-	sub	%g1,8,%o7
-	mov	1,%o1
-L0:
-	retl 
-	restore	%o1,0,%o0
-
-#else
-
-	GLOBAL (ASM_SYMBOL (setjmp))
-	.proc	04
-ASM_SYMBOL (setjmp):
-	save	%sp,-136,%sp
-	or	%g0,%g0,%o0		! %o0 = 0
-	or	%g0,0x6d,%g1		! %g1 = 0x6d (syscall number)
-	ta	SYSCALL_TRAP
-	stw	%o0,[%i0+4]		! save result at [%i0+4] (sigmask?)
-	add	%fp,-8,%o1		! %o1 -> tmp 8 byte buffer
-	or	%g0,%g0,%o0		! %o0 = 0
-	or	%g0,0x70,%g1		! %g1 = 0x70 (syscall number)
-	ta	SYSCALL_TRAP
-	lduw	[%fp-4],%g1		! %g1 = onsstack?
-	stw	%fp,[%i0+8]		! save %fp at [%i0+8]
-	stw	%g1,[%i0+0]		! save ? at [%i0+8]
-	add	%i7,8,%g1		! %g1 = return address
-	stw	%g1,[%i0+12]		! save return address at [%i0+12]
-	add	%g1,4,%g1		! %g1 = nPC
-	stw	%g1,[%i0+16]		! save nPC at [%i0+16]
-	stw	%g0,[%i0+20]
-	stw	%g0,[%i0+24]
-	stw	%g0,[%i0+32]
-	jmpl	%i7+8,%g0
-	restore	%g0,0,%o0
-
-	GLOBAL (ASM_SYMBOL (longjmp))
-	.proc	04
-ASM_SYMBOL (longjmp):
-	orcc	%g0,%o1,%g0		! return val == 0 ?
-	be,a	L1			! branch if 0
-	or	%g0,1,%o1		! make it 1 (executed if branch taken)
-L1:
-	or	%g0,0x8b,%g1		! set syscall 0x8b
-	stw	%o1,[%o0+28]		! save return val for restoration
-	ta	SYSCALL_TRAP
-
-#endif /* ! __svr4__ */
diff --git a/newlib/libc/sys/sparc64/stat.S b/newlib/libc/sys/sparc64/stat.S
deleted file mode 100644
index 32adb23ce..000000000
--- a/newlib/libc/sys/sparc64/stat.S
+++ /dev/null
@@ -1,9 +0,0 @@
-! stat() system call
-
-#include "sys/syscallasm.h"
-
-#ifdef REENT
-	defsyscall_r (_stat_r, SYS_stat, 2)
-#else
-	defsyscall (stat, SYS_stat)
-#endif
diff --git a/newlib/libc/sys/sparc64/sys/_timeval.h b/newlib/libc/sys/sparc64/sys/_timeval.h
deleted file mode 100644
index b0aaeda7e..000000000
--- a/newlib/libc/sys/sparc64/sys/_timeval.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef _SYS_TIME_H
-#define _SYS_TIME_H
-
-#include <sys/_types.h>
-
-#if !defined(__time_t_defined) && !defined(_TIME_T_DECLARED)
-typedef	_TIME_T_	time_t;
-#define	__time_t_defined
-#define	_TIME_T_DECLARED
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-struct timeval {
-  long tv_sec;
-  long tv_usec;
-};
-
-typedef struct timestruc {
-  time_t tv_sec;
-  long tv_nsec;
-} timestruc_t;
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _SYS_TIME_H */
diff --git a/newlib/libc/sys/sparc64/sys/dirent.h b/newlib/libc/sys/sparc64/sys/dirent.h
deleted file mode 100644
index ec6df0c83..000000000
--- a/newlib/libc/sys/sparc64/sys/dirent.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/* FIXME: From sys/sysvi386/sys */
-#ifndef _SYS_DIRENT_H
-# define _SYS_DIRENT_H
-
-/*
- * This file was written to be compatible with the BSD directory
- * routines, so it looks like it.  But it was written from scratch.
- * Sean Eric Fagan, sef@Kithrup.COM
- */
-
-typedef struct __dirdesc {
-	int	dd_fd;
-	long	dd_loc;
-	long	dd_size;
-	char	*dd_buf;
-	int	dd_len;
-	long	dd_seek;
-} DIR;
-
-# define __dirfd(dp)	((dp)->dd_fd)
-
-#include <sys/types.h>
-
-#undef  MAXNAMLEN	/* from unistd.h */
-#ifdef __svr4__
-#define MAXNAMLEN	512
-#else
-#define MAXNAMLEN	255
-#endif
-
-#define d_ino	d_fileno	/* compatibility */
-
-struct dirent {
-	off_t		d_off;
-	unsigned long	d_fileno;
-	unsigned short	d_reclen;
-	unsigned short	d_namlen;
-	char		d_name[MAXNAMLEN + 1];
-};
-
-/* FIXME: include definition of DIRSIZ() ? */
-
-#endif
diff --git a/newlib/libc/sys/sparc64/sys/fcntl.h b/newlib/libc/sys/sparc64/sys/fcntl.h
deleted file mode 100644
index 67d2b4072..000000000
--- a/newlib/libc/sys/sparc64/sys/fcntl.h
+++ /dev/null
@@ -1,178 +0,0 @@
-/* sys/fcntl.h for sparc64 */
-
-/* This is basically the same as the default version, except that a few of
-   the values are different on Solaris (eg: FCREAT).
-   We support both SunOS4 and Solaris.  */
-
-#ifndef	_SYS_FCNTL_H_
-#define	_SYS_FCNTL_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <_ansi.h>
-#include <sys/cdefs.h>
-
-#define	_FOPEN		(-1)	/* from sys/file.h, kernel use only */
-#define	_FREAD		0x0001	/* read enabled */
-#define	_FWRITE		0x0002	/* write enabled */
-#define	_FNDELAY	0x0004	/* non blocking I/O (4.2 style) */
-#define	_FAPPEND	0x0008	/* append (writes guaranteed at the end) */
-#ifdef __svr4__
-#define _FNONBLOCK	0x0080	/* non blocking I/O (POSIX) */
-#define _FCREAT		0x0100	/* open with file create */
-#define _FTRUNC		0x0200	/* open with truncation */
-#define _FEXCL		0x0400	/* error on open if file exists */
-#define _FNOCTTY	0x0800	/* don't assign a ctty on this open */
-#else
-#define	_FMARK		0x0010	/* internal; mark during gc() */
-#define	_FDEFER		0x0020	/* internal; defer for next gc pass */
-#define	_FASYNC		0x0040	/* signal pgrp when data ready */
-#define	_FSHLOCK	0x0080	/* BSD flock() shared lock present */
-#define	_FEXLOCK	0x0100	/* BSD flock() exclusive lock present */
-#define	_FCREAT		0x0200	/* open with file create */
-#define	_FTRUNC		0x0400	/* open with truncation */
-#define	_FEXCL		0x0800	/* error on open if file exists */
-#define	_FNBIO		0x1000	/* non blocking I/O (sys5 style) */
-#define	_FSYNC		0x2000	/* do all writes synchronously */
-#define	_FNONBLOCK	0x4000	/* non blocking I/O (POSIX style) */
-#define	_FNOCTTY	0x8000	/* don't assign a ctty on this open */
-#endif /* ! __svr4__ */
-
-#define	O_ACCMODE	(O_RDONLY|O_WRONLY|O_RDWR)
-
-/*
- * Flag values for open(2) and fcntl(2)
- * The kernel adds 1 to the open modes to turn it into some
- * combination of FREAD and FWRITE.
- */
-#define	O_RDONLY	0		/* +1 == FREAD */
-#define	O_WRONLY	1		/* +1 == FWRITE */
-#define	O_RDWR		2		/* +1 == FREAD|FWRITE */
-#define	O_APPEND	_FAPPEND
-#define	O_CREAT		_FCREAT
-#define	O_TRUNC		_FTRUNC
-#define	O_EXCL		_FEXCL
-/*	O_SYNC		_FSYNC		not posix, defined below */
-/*	O_NDELAY	_FNDELAY 	set in include/fcntl.h */
-/*	O_NDELAY	_FNBIO 		set in 5include/fcntl.h */
-#define	O_NONBLOCK	_FNONBLOCK
-#define	O_NOCTTY	_FNOCTTY
-#define	O_SYNC		_FSYNC
-
-#if __MISC_VISIBLE
-
-/*
- * Flags that work for fcntl(fd, F_SETFL, FXXXX)
- */
-#define	FAPPEND		_FAPPEND
-#define	FSYNC		_FSYNC
-#define	FASYNC		_FASYNC
-#define	FNBIO		_FNBIO
-#define	FNONBIO		_FNONBLOCK	/* XXX fix to be NONBLOCK everywhere */
-#define	FNDELAY		_FNDELAY
-
-/*
- * Flags that are disallowed for fcntl's (FCNTLCANT);
- * used for opens, internal state, or locking.
- */
-#define	FREAD		_FREAD
-#define	FWRITE		_FWRITE
-#define	FMARK		_FMARK
-#define	FDEFER		_FDEFER
-#define	FSHLOCK		_FSHLOCK
-#define	FEXLOCK		_FEXLOCK
-
-/*
- * The rest of the flags, used only for opens
- */
-#define	FOPEN		_FOPEN
-#define	FCREAT		_FCREAT
-#define	FTRUNC		_FTRUNC
-#define	FEXCL		_FEXCL
-#define	FNOCTTY		_FNOCTTY
-
-#endif /* __MISC_VISIBLE */
-
-/* XXX close on exec request; must match UF_EXCLOSE in user.h */
-#define	FD_CLOEXEC	1	/* posix */
-
-/* fcntl(2) requests */
-#define	F_DUPFD		0	/* Duplicate fildes */
-#define	F_GETFD		1	/* Get fildes flags (close on exec) */
-#define	F_SETFD		2	/* Set fildes flags (close on exec) */
-#define	F_GETFL		3	/* Get file flags */
-#define	F_SETFL		4	/* Set file flags */
-#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
-#ifdef __svr4__
-#define	F_GETOWN 	23	/* Get owner - for ASYNC */
-#define	F_SETOWN 	24	/* Set owner - for ASYNC */
-#else
-#define	F_GETOWN 	5	/* Get owner - for ASYNC */
-#define	F_SETOWN 	6	/* Set owner - for ASYNC */
-#endif
-#endif	/* __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 */
-#ifdef __svr4__
-#define	F_GETLK  	14	/* Get record-locking information */
-#define	F_SETLK		6	/* Set or Clear a record-lock (Non-Blocking) */
-#define	F_SETLKW 	7	/* Set or Clear a record-lock (Blocking) */
-#else
-#define	F_GETLK  	7	/* Get record-locking information */
-#define	F_SETLK  	8	/* Set or Clear a record-lock (Non-Blocking) */
-#define	F_SETLKW 	9	/* Set or Clear a record-lock (Blocking) */
-#endif
-#if __MISC_VISIBLE
-#define	F_RGETLK 	10	/* Test a remote lock to see if it is blocked */
-#define	F_RSETLK 	11	/* Set or unlock a remote lock */
-#define	F_CNVT 		12	/* Convert a fhandle to an open fd */
-#define	F_RSETLKW 	13	/* Set or Clear remote record-lock(Blocking) */
-#endif	/* __MISC_VISIBLE */
-
-/* fcntl(2) flags (l_type field of flock structure) */
-#define	F_RDLCK		1	/* read lock */
-#define	F_WRLCK		2	/* write lock */
-#define	F_UNLCK		3	/* remove lock(s) */
-#if __MISC_VISIBLE
-#define	F_UNLKSYS	4	/* remove remote locks for a given system */
-#endif	/* __MISC_VISIBLE */
-
-/*#include <sys/stdtypes.h>*/
-
-/* file segment locking set data type - information passed to system by user */
-struct flock {
-	short	l_type;		/* F_RDLCK, F_WRLCK, or F_UNLCK */
-	short	l_whence;	/* flag to choose starting offset */
-	long	l_start;	/* relative offset, in bytes */
-	long	l_len;		/* length, in bytes; 0 means lock to EOF */
-	short	l_pid;		/* returned with F_GETLK */
-	short	l_xxx;		/* reserved for future use */
-};
-
-#if __MISC_VISIBLE
-/* extended file segment locking set data type */
-struct eflock {
-	short	l_type;		/* F_RDLCK, F_WRLCK, or F_UNLCK */
-	short	l_whence;	/* flag to choose starting offset */
-	long	l_start;	/* relative offset, in bytes */
-	long	l_len;		/* length, in bytes; 0 means lock to EOF */
-	short	l_pid;		/* returned with F_GETLK */
-	short	l_xxx;		/* reserved for future use */
-	long	l_rpid;		/* Remote process id wanting this lock */
-	long	l_rsys;		/* Remote system id wanting this lock */
-};
-#endif	/* __MISC_VISIBLE */
-
-
-#include <sys/types.h>
-#include <sys/stat.h>		/* sigh. for the mode bits for open/creat */
-
-extern int open (const char *, int, ...);
-extern int creat (const char *, mode_t);
-extern int fcntl (int, int, ...);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif	/* !_SYS_FCNTL_H_ */
diff --git a/newlib/libc/sys/sparc64/sys/file.h b/newlib/libc/sys/sparc64/sys/file.h
deleted file mode 100644
index 768494377..000000000
--- a/newlib/libc/sys/sparc64/sys/file.h
+++ /dev/null
@@ -1,3 +0,0 @@
-/* This is the same as sys/fcntl.h for now.  */
-
-#include <sys/fcntl.h>
diff --git a/newlib/libc/sys/sparc64/sys/stat.h b/newlib/libc/sys/sparc64/sys/stat.h
deleted file mode 100644
index c1f2a61d4..000000000
--- a/newlib/libc/sys/sparc64/sys/stat.h
+++ /dev/null
@@ -1,132 +0,0 @@
-#ifndef	_SYS_STAT_H
-#define	_SYS_STAT_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <_ansi.h>
-#include <sys/types.h>
-
-#ifdef __svr4__
-
-#include <sys/time.h>
-
-#define	_ST_FSTYPSZ 16		/* array size for file system type name */
-
-struct	stat 
-{
-  dev_t		st_dev;
-  long		st_pad1[3];	/* reserved for network id */
-  ino_t		st_ino;
-  mode_t	st_mode;
-  nlink_t	st_nlink;
-  uid_t		st_uid;
-  gid_t		st_gid;
-  dev_t		st_rdev;
-  long		st_pad2[2];
-  off_t		st_size;
-  long		st_pad3;	/* future off_t expansion */
-  timestruc_t 	st_atim;
-  timestruc_t 	st_mtim;
-  timestruc_t 	st_ctim;
-  long		st_blksize;
-  long		st_blocks;
-  char		st_fstype[_ST_FSTYPSZ];
-  long		st_pad4[8];	/* expansion area */
-};
-
-#define	st_atime	st_atim.tv_sec
-#define	st_mtime	st_mtim.tv_sec
-#define	st_ctime	st_ctim.tv_sec
-
-#else
-
-#include <time.h>
-
-struct	stat 
-{
-  dev_t		st_dev;
-  ino_t		st_ino;
-  mode_t	st_mode;
-  short		st_nlink;
-  uid_t		st_uid;
-  gid_t		st_gid;
-  dev_t		st_rdev;
-  off_t		st_size;
-  time_t	st_atime;
-  int		st_spare1;
-  time_t	st_mtime;
-  int		st_spare2;
-  time_t	st_ctime;
-  int		st_spare3;
-  long		st_blksize;
-  long		st_blocks;
-  long		st_spare4[2];
-};
-
-#endif
-
-#define	_IFMT		0170000	/* type of file */
-#define		_IFDIR	0040000	/* directory */
-#define		_IFCHR	0020000	/* character special */
-#define		_IFBLK	0060000	/* block special */
-#define		_IFREG	0100000	/* regular */
-#define		_IFLNK	0120000	/* symbolic link */
-#define		_IFSOCK	0140000	/* socket */
-#define		_IFIFO	0010000	/* fifo */
-
-#define	S_ISUID		0004000	/* set user id on execution */
-#define	S_ISGID		0002000	/* set group id on execution */
-#define	S_ISVTX		0001000	/* save swapped text even after use */
-#if __BSD_VISIBLE
-#define	S_IREAD		0000400	/* read permission, owner */
-#define	S_IWRITE 	0000200	/* write permission, owner */
-#define	S_IEXEC		0000100	/* execute/search permission, owner */
-#define	S_ENFMT 	0002000	/* enforcement-mode locking */
-#endif /* __BSD_VISIBLE */
-
-#if __POSIX_VISIBLE >= 200112
-#define	S_IFMT		_IFMT
-#define	S_IFDIR		_IFDIR
-#define	S_IFCHR		_IFCHR
-#define	S_IFBLK		_IFBLK
-#define	S_IFREG		_IFREG
-#define	S_IFLNK		_IFLNK
-#define	S_IFSOCK	_IFSOCK
-#define	S_IFIFO		_IFIFO
-#endif	/* __POSIX_VISIBLE >= 200112 */
-
-
-#define	S_IRWXU 	0000700	/* rwx, owner */
-#define		S_IRUSR	0000400	/* read permission, owner */
-#define		S_IWUSR	0000200	/* write permission, owner */
-#define		S_IXUSR	0000100	/* execute/search permission, owner */
-#define	S_IRWXG		0000070	/* rwx, group */
-#define		S_IRGRP	0000040	/* read permission, group */
-#define		S_IWGRP	0000020	/* write permission, grougroup */
-#define		S_IXGRP	0000010	/* execute/search permission, group */
-#define	S_IRWXO		0000007	/* rwx, other */
-#define		S_IROTH	0000004	/* read permission, other */
-#define		S_IWOTH	0000002	/* write permission, other */
-#define		S_IXOTH	0000001	/* execute/search permission, other */
-
-#define	S_ISBLK(m)	(((m)&_IFMT) == _IFBLK)
-#define	S_ISCHR(m)	(((m)&_IFMT) == _IFCHR)
-#define	S_ISDIR(m)	(((m)&_IFMT) == _IFDIR)
-#define	S_ISFIFO(m)	(((m)&_IFMT) == _IFIFO)
-#define	S_ISREG(m)	(((m)&_IFMT) == _IFREG)
-#define	S_ISLNK(m)	(((m)&_IFMT) == _IFLNK)
-#define	S_ISSOCK(m)	(((m)&_IFMT) == _IFSOCK)
-
-int	chmod (const char *_path, mode_t _mode);
-int	fstat (int _fd, struct stat *_sbuf);
-int	mkdir (char *_path, mode_t _mode);
-int	mkfifo (char *_path, mode_t _mode);
-int	stat (const char *__restrict _path, struct stat *__restrict _sbuf);
-mode_t	umask (mode_t _mask);
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* _SYS_STAT_H */
diff --git a/newlib/libc/sys/sparc64/sys/syscall.h b/newlib/libc/sys/sparc64/sys/syscall.h
deleted file mode 100644
index df5da365f..000000000
--- a/newlib/libc/sys/sparc64/sys/syscall.h
+++ /dev/null
@@ -1,346 +0,0 @@
-#ifndef _SYSCALL_H_
-#define _SYSCALL_H_
-
-/*
- * This file defines the system calls for SPARC.
- *
- * WARNING: This file can be included by assembler files.
- */
-
-#define	SYS_exit	1
-#define	SYS_fork	2
-#define	SYS_read	3
-#define	SYS_write	4
-#define	SYS_open	5
-#define	SYS_close	6
-#define	SYS_wait4	7
-#define	SYS_creat	8
-#define	SYS_link	9
-#define	SYS_unlink	10
-#define	SYS_execv	11
-#define	SYS_chdir	12
-#ifdef __svr4__
-#define SYS_time	13	/* old time in sunos4 */
-#endif
-#define	SYS_mknod	14
-#define	SYS_chmod	15
-#define	SYS_chown	16
-#define SYS_brk		17
-#ifdef __svr4__
-#define SYS_stat	18	/* old stat in sunos4 */
-#endif
-#define	SYS_lseek	19
-#define	SYS_getpid	20
-#ifdef __svr4__
-#define SYS_mount	21	/* old mount in sunos4 */
-#define SYS_umount	22	/* old umount in sunos4 */
-#define SYS_setuid	23	/* old setuid in sunos4 */
-#endif
-#define	SYS_getuid	24
-#ifdef __svr4__
-#define SYS_stime	25	/* old stime in sunos4 */
-#endif
-#define	SYS_ptrace	26
-#ifdef __svr4__
-#define SYS_alarm	27	/* old alarm in sunos4 */
-#define SYS_fstat	28	/* old fstat in sunos4 */
-#define SYS_pause	29	/* old pause in sunos4 */
-#define SYS_utime	30	/* old utime in sunos4 */
-#define SYS_stty	31	/* old stty in sunos4 */
-#define SYS_gtty	32	/* old gtty in sunos4 */
-#endif
-#define	SYS_access	33
-#ifdef __svr4__
-#define SYS_nice	34	/* old nice in sunos4 */
-#define SYS_statfs	35	/* old ftime in sunos4 */
-#endif
-#define	SYS_sync	36
-#define	SYS_kill	37
-#ifdef __svr4__
-#define	SYS_fstatfs	38
-#define	SYS_pgrpsys	39	/* old setpgrp in sunos4 */
-#define	SYS_xenix	40
-#else
-#define	SYS_stat	38
-#define	SYS_lstat	40
-#endif
-#define	SYS_dup		41
-#define	SYS_pipe	42
-#define SYS_times	43	/* times is obsolete in sunos4, used anyway */
-#define	SYS_profil	44
-#ifdef __svr4__
-#define SYS_plock	45	/* unused in sunos4 */
-#define SYS_setgid	46	/* old setgid in sunos4 */
-#endif
-#define	SYS_getgid	47
-#ifdef __svr4__
-#define SYS_signal	48	/* old sigsys in sunos4 */
-#define SYS_msgsys	49	/* unused in sunos4 */
-#define SYS_sun		50	/* unused in sunos4 */
-#endif
-#define	SYS_acct	51
-#ifdef __svr4__
-#define SYS_shmsys	52	/* old phys in sunos4 */
-#define	SYS_semsys	53
-#else
-#define	SYS_mctl	53
-#endif
-#define	SYS_ioctl	54
-#ifdef __svr4__
-#define	SYS_uadmin	55
-#else
-#define	SYS_reboot	55
-#endif
-				/* 56 is old: mpxchan (reserved in sunos5) */
-#ifdef __svr4__
-#define	SYS_utssys	57
-#define	SYS_fsync	58
-#else
-#define	SYS_symlink	57
-#define	SYS_readlink	58
-#endif
-#define	SYS_execve	59
-#define	SYS_umask	60
-#define	SYS_chroot	61
-#ifdef __svr4__
-#define	SYS_fcntl	62
-#define SYS_ulimit	63	/* unused in sunos4 */
-				/* 64-77 unused/reserved in sunos5 */
-#else
-#define	SYS_fstat	62
-#define	SYS_getpagesize 64
-#define	SYS_msync	65
-				/* 66 is old: vfork */
-				/* 67 is old: vread */
-				/* 68 is old: vwrite */
-#define	SYS_sbrk	69
-#define	SYS_sstk	70
-#define	SYS_mmap	71
-#define	SYS_vadvise	72
-#define	SYS_munmap	73
-#define	SYS_mprotect	74
-#define	SYS_madvise	75
-#define	SYS_vhangup	76
-				/* 77 is old: vlimit */
-#endif
-
-#ifdef __svr4__
-#define	SYS_rfsys	78
-#define	SYS_rmdir	79
-#define	SYS_mkdir	80
-#define	SYS_getdents	81
-				/* 82 not used, was libattach */
-				/* 83 not used, was libdetach */
-#define	SYS_sysfs	84
-#define	SYS_getmsg	85
-#define	SYS_putmsg	86
-#define	SYS_poll	87
-#define	SYS_lstat	88
-#define	SYS_symlink	89
-#define	SYS_readlink	90
-#define	SYS_setgroups	91
-#define	SYS_getgroups	92
-#define	SYS_fchmod	93
-#define	SYS_fchown	94
-#define	SYS_sigprocmask	95
-#define	SYS_sigsuspend	96
-#define	SYS_sigaltstack	97
-#define	SYS_sigaction	98
-#define	SYS_sigpending	99
-#define	SYS_context	100
-#define	SYS_evsys	101
-#define	SYS_evtrapret	102
-#define	SYS_statvfs	103
-#define	SYS_fstatvfs	104
-				/* 105 reserved */
-#define	SYS_nfssys	106
-#define	SYS_waitsys	107
-#define	SYS_sigsendsys	108
-#define	SYS_hrtsys	109
-#define	SYS_acancel	110
-#define	SYS_async	111
-#define	SYS_priocntlsys	112
-#define	SYS_pathconf	113
-#define	SYS_mincore	114
-#define	SYS_mmap	115
-#define	SYS_mprotect	116
-#define	SYS_munmap	117
-#define	SYS_fpathconf	118
-#define	SYS_vfork	119
-#define	SYS_fchdir	120
-#define	SYS_readv	121
-#define	SYS_writev	122
-#define	SYS_xstat	123
-#define	SYS_lxstat	124
-#define	SYS_fxstat	125
-#define	SYS_xmknod	126
-#define	SYS_clocal	127
-#define	SYS_setrlimit	128
-#define	SYS_getrlimit	129
-#define	SYS_lchown	130
-#define	SYS_memcntl	131
-#define	SYS_getpmsg	132
-#define	SYS_putpmsg	133
-#define	SYS_rename	134
-#define	SYS_uname	135
-#define	SYS_setegid	136
-#define	SYS_sysconfig	137
-#define	SYS_adjtime	138
-#define	SYS_systeminfo	139
-#define	SYS_seteuid	141
-#define	SYS_vtrace	142
-#define	SYS_fork1	143
-#define	SYS_sigwait	144
-#define	SYS_lwp_info	145
-#define	SYS_yield	146
-#define	SYS_lwp_sema_p	147
-#define	SYS_lwp_sema_v	148
-#define	SYS_modctl	152
-#define	SYS_fchroot	153
-#define	SYS_utimes	154
-#define	SYS_vhangup	155
-#define	SYS_gettimeofday	156
-#define	SYS_getitimer		157
-#define	SYS_setitimer		158
-#define	SYS_lwp_create		159
-#define	SYS_lwp_exit		160
-#define	SYS_lwp_suspend		161
-#define	SYS_lwp_continue	162
-#define	SYS_lwp_kill		163
-#define	SYS_lwp_self		164
-#define	SYS_lwp_setprivate	165
-#define	SYS_lwp_getprivate	166
-#define	SYS_lwp_wait		167
-#define	SYS_lwp_mutex_unlock	168
-#define	SYS_lwp_mutex_lock	169
-#define	SYS_lwp_cond_wait	170
-#define	SYS_lwp_cond_signal	171
-#define	SYS_lwp_cond_broadcast	172
-#define	SYS_pread		173
-#define	SYS_pwrite		174
-#define	SYS_llseek		175
-#define	SYS_inst_sync		176
-#define	SYS_auditsys		186
-#else
-#define	SYS_mincore	78
-#define	SYS_getgroups	79
-#define	SYS_setgroups	80
-#define	SYS_getpgrp	81
-#define	SYS_setpgrp	82
-#define	SYS_setitimer	83
-				/* 84 is old: wait & wait3 */
-#define	SYS_swapon	85
-#define	SYS_getitimer	86
-#define	SYS_gethostname	87
-#define	SYS_sethostname	88
-#define	SYS_getdtablesize 89
-#define	SYS_dup2	90
-#define	SYS_getdopt	91
-#define	SYS_fcntl	92
-#define	SYS_select	93
-#define	SYS_setdopt	94
-#define	SYS_fsync	95
-#define	SYS_setpriority	96
-#define	SYS_socket	97
-#define	SYS_connect	98
-#define	SYS_accept	99
-#define	SYS_getpriority	100
-#define	SYS_send	101
-#define	SYS_recv	102
-				/* 103 was socketaddr */
-#define	SYS_bind	104
-#define	SYS_setsockopt	105
-#define	SYS_listen	106
-				/* 107 was vtimes */
-#define	SYS_sigvec	108
-#define	SYS_sigblock	109
-#define	SYS_sigsetmask	110
-#define	SYS_sigpause	111
-#define	SYS_sigstack	112
-#define	SYS_recvmsg	113
-#define	SYS_sendmsg	114
-#define	SYS_vtrace	115
-#define	SYS_gettimeofday 116
-#define	SYS_getrusage	117
-#define	SYS_getsockopt	118
-				/* 119 is old resuba */
-#define	SYS_readv	120
-#define	SYS_writev	121
-#define	SYS_settimeofday 122
-#define	SYS_fchown	123
-#define	SYS_fchmod	124
-#define	SYS_recvfrom	125
-#define	SYS_setreuid	126
-#define	SYS_setregid	127
-#define	SYS_rename	128
-#define	SYS_truncate	129
-#define	SYS_ftruncate	130
-#define	SYS_flock	131
-				/* 132 is unused */
-#define	SYS_sendto	133
-#define	SYS_shutdown	134
-#define	SYS_socketpair	135
-#define	SYS_mkdir	136
-#define	SYS_rmdir	137
-#define	SYS_utimes	138
-				/* 139 is unused */
-#define	SYS_adjtime	140
-#define	SYS_getpeername	141
-#define	SYS_gethostid	142
-				/* 143 is old: sethostid */
-#define	SYS_getrlimit	144
-#define	SYS_setrlimit	145
-#define	SYS_killpg	146
-				/* 147 is unused */
-				/* 148 is old: setquota */
-				/* 149 is old: quota */
-#define	SYS_getsockname	150
-#define	SYS_getmsg	151
-#define	SYS_putmsg	152
-#define	SYS_poll	153
-				/* 154 is old: nfs_mount */
-#define	SYS_nfssvc	155
-#define	SYS_getdirentries 156
-#define	SYS_statfs	157
-#define	SYS_fstatfs	158
-#define	SYS_unmount	159
-#define	SYS_async_daemon 160
-#define	SYS_getfh	161
-#define	SYS_getdomainname 162
-#define	SYS_setdomainname 163
-				/* 164 is old: pcfs_mount */
-#define	SYS_quotactl	165
-#define	SYS_exportfs	166
-#define	SYS_mount	167
-#define	SYS_ustat	168
-#define	SYS_semsys	169
-#define	SYS_msgsys	170
-#define	SYS_shmsys	171
-#define	SYS_auditsys	172
-#define	SYS_rfssys	173
-#define	SYS_getdents	174
-#define	SYS_setsid	175
-#define	SYS_fchdir	176
-#define	SYS_fchroot	177
-#define	SYS_vpixsys	178
-
-#define	SYS_aioread	179
-#define	SYS_aiowrite	180
-#define	SYS_aiowait	181
-#define	SYS_aiocancel	1[...]

[diff truncated at 100000 bytes]


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-16  1:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16  1:01 [newlib-cygwin] newlib: drop support for decstation & sunos systems Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).