musl/arch/powerpc/bits
Rich Felker 9448b0513e refactor headers, especially alltypes.h, and improve C++ ABI compat
the arch-specific bits/alltypes.h.sh has been replaced with a generic
alltypes.h.in and minimal arch-specific bits/alltypes.h.in.

this commit is intended to have no functional changes except:
- exposing additional symbols that POSIX allows but does not require
- changing the C++ name mangling for some types
- fixing the signedness of blksize_t on powerpc (POSIX requires signed)
- fixing the limit macros for sig_atomic_t on x86_64
- making dev_t an unsigned type (ABI matching goal, and more logical)

in addition, some types that were wrongly defined with long on 32-bit
archs were changed to int, and vice versa; this change is
non-functional except for the possibility of making pointer types
mismatch, and only affects programs that were using them incorrectly,
and only at build-time, not runtime.

the following changes were made in the interest of moving
non-arch-specific types out of the alltypes system and into the
headers they're associated with, and also will tend to improve
application compatibility:
- netdb.h now includes netinet/in.h (for socklen_t and uint32_t)
- netinet/in.h now includes sys/socket.h and inttypes.h
- sys/resource.h now includes sys/time.h (for struct timeval)
- sys/wait.h now includes signal.h (for siginfo_t)
- langinfo.h now includes nl_types.h (for nl_item)

for the types in stdint.h:
- types which are of no interest to other headers were moved out of
  the alltypes system.
- fast types for 8- and 64-bit are hard-coded (at least for now); only
  the 16- and 32-bit ones have reason to vary by arch.

and the following types have been changed for C++ ABI purposes;
- mbstate_t now has a struct tag, __mbstate_t
- FILE's struct tag has been changed to _IO_FILE
- DIR's struct tag has been changed to __dirstream
- locale_t's struct tag has been changed to __locale_struct
- pthread_t is defined as unsigned long in C++ mode only
- fpos_t now has a struct tag, _G_fpos64_t
- fsid_t's struct tag has been changed to __fsid_t
- idtype_t has been made an enum type (also required by POSIX)
- nl_catd has been changed from long to void *
- siginfo_t's struct tag has been removed
- sigset_t's has been given a struct tag, __sigset_t
- stack_t has been given a struct tag, sigaltstack
- suseconds_t has been changed to long on 32-bit archs
- [u]intptr_t have been changed from long to int rank on 32-bit archs
- dev_t has been made unsigned

summary of tests that have been performed against these changes:
- nsz's libc-test (diff -u before and after)
- C++ ABI check symbol dump (diff -u before, after, glibc)
- grepped for __NEED, made sure types needed are still in alltypes
- built gcc 3.4.6
2013-07-22 11:22:36 -04:00
..
alltypes.h.in refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
endian.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
errno.h add missing EHWPOISON to bits/errno.h 2013-01-12 19:42:39 +01:00
fcntl.h add missing F_GETOWNER_UIDS flag to bits/fcntl.h 2013-01-12 19:42:39 +01:00
fenv.h add missing const on powerpc FE_DFL_ENV 2012-11-18 16:58:05 -05:00
float.h add FLT_TRUE_MIN, etc. macros from C11 2013-05-17 18:38:42 -04:00
io.h fix breakage from introducing bits header for sys/io.h 2012-11-18 19:58:15 -05:00
ioctl.h fix ioctl _IOR, _IOW, etc macros to avoid signed overflow (2<<30) 2013-05-26 15:49:08 +00:00
ipc.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
limits.h fix powerpc types to match abi, and some feature test issues 2012-11-21 13:29:50 -05:00
mman.h add missing mmap options and madvices to bits/mman.h based on linux headers 2013-01-12 19:42:39 +01:00
msg.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
posix.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
reg.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
setjmp.h fix powerpc setjmp/longjmp to save/restore float regs; enlarge/align jmp_buf 2012-11-23 14:30:58 -05:00
shm.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
signal.h add deprecated SIGIOT alias for SIGABRT 2013-03-23 20:02:31 -04:00
socket.h add the new SO_REUSEPORT socket option to mips and powerpc 2013-04-01 17:54:39 +00:00
stat.h remove stat member aliases from ppc-specific bits/stat.h 2012-11-26 20:42:20 -05:00
statfs.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
stdarg.h PPC port cleaned up, static linking works well now. 2012-11-13 19:12:25 +01:00
stdint.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
syscall.h add syscall numbers for the new kcmp and finit_module syscalls 2013-04-01 18:02:32 +00:00
termios.h fix powerpc termios.h and ioctl.h 2012-11-16 04:55:52 +01:00
user.h make sys/procfs.h mostly work on most archs 2012-11-25 22:28:18 -05:00