acadia-newlib/newlib/libc/sys
Sebastian Huber 477463a201 Eliminate use of Newlib-specific <machine/types.h>
This change solves a glibc/BSD compatibility problem.

glibc and BSD use double underscore types for internal types.  The Linux
port of Newlib uses some glibc provided internal type definitions which
are not protected by guard defines, e.g. __off_t.  To avoid a conflict
Newlib uses single underscore types for some internal types, e.g.
_off_t.  However, for BSD compatibility we have to define the internal
types with double underscore names in <sys/_types.h>.

The header file <machine/types.h> is Newlib-specific.  It was used
instead of <sys/_types.h> to provide the internal type definitions
_CLOCK_T, _TIME_T_, _CLOCKID_T_, _TIMER_T_, and __suseconds_t.  Move
these definitions to <sys/_types.h> (there exist two instances of this
file, one for Linux and one for all other targets).  This makes the
_HAVE_SYSTYPES configuration define obsolete (could possibly break the
__RDOS__ target).  Use the standard <sys/_types.h> include throughout.

Move __loff_t defintion to default (non-Linux) <sys/_types.h>.  Define
it via _off64_t to avoid a dependency on the compiler.

Provide the __off_t definition via default (non-Linux) <sys/_types.h>
based on _off_t for all systems except Cygwin.  For Cygwin use _off64_t.
Define off_t via __off_t.

Provide the __pid_t definition via default (non-Linux) <sys/_types.h>.
This prevents a potential __pid_t and pid_t incompatibility.  Add BSD
guard defines for pid_t.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2016-04-13 13:30:27 +02:00
..
a29khif Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
arm Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
d10v Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
decstation Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
epiphany Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
h8300hms Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
h8500hms Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
linux Eliminate use of Newlib-specific <machine/types.h> 2016-04-13 13:30:27 +02:00
m88kbug Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
mmixware Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
netware Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
or1k Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
rdos Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
rtems Eliminate use of Newlib-specific <machine/types.h> 2016-04-13 13:30:27 +02:00
sh Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
sparc64 Eliminate use of Newlib-specific <machine/types.h> 2016-04-13 13:30:27 +02:00
sun4 Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
sysmec Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
sysnec810 Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
sysnecv850 Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
sysvi386 Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
sysvnecv70 Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
tic80 Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
tirtos Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
w65 Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
z8ksim Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
Makefile.am * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
configure Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
configure.in Remove obsolete ARC system 2015-11-12 14:03:05 +01:00