musl/arch/mipsn32/bits
Rich Felker 97d35a552e move __BYTE_ORDER definition to alltypes.h
this change is motivated by the intersection of several factors.
presently, despite being a nonstandard header, endian.h is exposing
the unprefixed byte order macros and functions only if _BSD_SOURCE or
_GNU_SOURCE is defined. this is to accommodate use of endian.h from
other headers, including bits headers, which need to define structure
layout in terms of endianness. with time64 switch-over, even more
headers will need to do this.

at the same time, the resolution of Austin Group issue 162 makes
endian.h a standard header for POSIX-future, requiring that it expose
the unprefixed macros and the functions even in standards-conforming
profiles. changes to meet this new requirement would break existing
internal usage of endian.h by causing it to violate namespace where
it's used.

instead, have the arch's alltypes.h define __BYTE_ORDER, either as a
fixed constant or depending on the right arch-specific predefined
macros for determining endianness. explicit literals 1234 and 4321 are
used instead of __LITTLE_ENDIAN and __BIG_ENDIAN so that there's no
danger of getting the wrong result if a macro is undefined and
implicitly evaluates to 0 at the preprocessor level.

the powerpc (32-bit) bits/endian.h being removed had logic for varying
endianness, but our powerpc arch has never supported that and has
always been big-endian-only. this logic is not carried over to the new
__BYTE_ORDER definition in alltypes.h.
2019-10-17 15:55:15 -04:00
..
alltypes.h.in move __BYTE_ORDER definition to alltypes.h 2019-10-17 15:55:15 -04:00
errno.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
fcntl.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
fenv.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
float.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
hwcap.h mips: add HWCAP_ flags from linux v4.17 2018-06-19 13:27:27 -04:00
ioctl.h move arch-invariant definitions out of bits/ioctl.h 2019-02-07 12:43:19 -05:00
ipcstat.h move IPC_STAT definition to a new bits/ipcstat.h file 2019-08-02 00:08:23 -04:00
limits.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
mman.h add MAP_SYNC and MAP_SHARED_VALIDATE from linux v4.15 2018-02-22 18:48:58 -05:00
msg.h make brace placement in public header struct definitions consistent 2016-07-03 15:02:25 -04:00
poll.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
posix.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
ptrace.h add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
reg.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
resource.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
sem.h extricate bits/sem.h from x32 time_t hack 2019-07-29 18:03:41 -04:00
setjmp.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
shm.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
signal.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
socket.h fix value of SO_PEERSEC on mips archs 2018-06-26 15:55:29 -04:00
stat.h remove utterly wrong includes from mips64/n32 bits/stat.h 2019-07-18 19:30:14 -04:00
statfs.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
stdint.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
syscall.h.in add new syscall numbers from linux v5.2 2019-09-11 10:40:39 -04:00
termios.h fix conflicting mips and powerpc definitions for TIOCSER_TEMT macro 2019-07-10 17:09:49 -04:00
user.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00