platform_bionic/libc
Colin Cross d27506716a Define sockaddr_storage in bionic
Bionic currently renames the kernel's __kernel_sockaddr_storage
to sockaddr_storage.  We would like to reuse the bionic kernel
headers for musl, but musl defines its own sockaddr_storage,
causing redefinition errors when the musl and kernel headers
are both included.

Give bionic its own definition of sockaddr_storage so the kernel
one can be left as __kernel_sockaddr_storage, avoiding the
conflict in musl.

Some of the structs in netinet/in.h contain sockaddr_storage members.
There are definitions in linux/in.h, but they now use the
__kernel_sockaddr_storage naming.  To avoid having to copy the structs
from linux/in.h into netinet/in.h, add some #define hackery to
rename __kernel_sockaddr_storage to sockaddr_storage when including
linux/in.h from netinet/in.h.

Bug: 190084016
Test: m checkbuild
Test: bionic-unit-tests
Change-Id: I8f654511722b3a4a8e0bb146e4418ebcd370305c
2021-07-14 14:20:36 -07:00
..
arch-arm Clear the stack frame pointer in _start and __bionic_clone 2021-05-07 15:00:55 -07:00
arch-arm64 setjmp/longjmp: avoid invalid values in the stack pointer. 2021-04-05 17:43:36 -07:00
arch-common/bionic Turns out we don't need to say calll any more. 2021-05-19 09:14:41 -07:00
arch-x86 Clear the stack frame pointer in _start and __bionic_clone 2021-05-07 15:00:55 -07:00
arch-x86_64 setjmp/longjmp: avoid invalid values in the stack pointer. 2021-04-05 17:43:36 -07:00
async_safe bp2build: remove some bp2build_available props, use package_allowlist instead. 2021-03-19 02:06:27 -04:00
bionic Merge "Allow the kernel to upgrade ASYNC mode processes to SYNC mode." 2021-07-02 17:58:43 +00:00
dns Make res_init() work again. 2021-04-08 12:04:05 -07:00
include Define sockaddr_storage in bionic 2021-07-14 14:20:36 -07:00
kernel Define sockaddr_storage in bionic 2021-07-14 14:20:36 -07:00
malloc_debug Stop documenting native_heapdump_viewer. 2021-06-24 15:48:31 -07:00
malloc_hooks Add LOCAL_LICENSE_KINDS to bionic 2021-02-19 23:38:28 +00:00
platform Disable fdtrack post-fork. 2021-04-07 19:00:45 -07:00
private Disable fdtrack post-fork. 2021-04-07 19:00:45 -07:00
seccomp Use more inclusive language for seccomp filter 2020-06-15 10:12:17 -07:00
stdio Make fd overflow an abort. 2021-02-09 17:13:09 -08:00
system_properties Match 'Access denied finding property' log severity to SELinux 2021-04-01 16:42:03 -07:00
tools Merge "Ignore backup files left by emacs." 2021-04-20 01:24:49 +00:00
tzcode Incorporate upstream's strptime %Z/%z support. 2020-09-01 19:11:28 -07:00
upstream-freebsd Fully disable clang format where needed. 2020-01-30 08:10:17 -08:00
upstream-netbsd Make res_init() work again. 2021-04-08 12:04:05 -07:00
upstream-openbsd Fewer copies of ALIGN()/ALIGNBYTES. 2021-01-11 11:51:29 -08:00
versioner-dependencies Stop generating unused headers. 2020-02-03 17:56:06 -08:00
Android.bp Add default_shared_libs to crt objects 2021-06-23 16:44:57 -07:00
fs_config_generator.py
libc.map.txt Move android_reset_stack_guard to LIBC_S 2021-05-17 11:42:02 -07:00
libstdc++.map.txt Remove dead code. 2020-02-13 22:25:02 -08:00
MODULE_LICENSE_BSD
NOTICE Fix/update notices. 2021-02-16 15:06:50 -08:00
SECCOMP_ALLOWLIST_APP.TXT Use more inclusive language for seccomp filter 2020-06-15 10:12:17 -07:00
SECCOMP_ALLOWLIST_COMMON.TXT Add userfaultfd syscall in SECCOMP allowlist 2021-03-11 19:30:08 +00:00
SECCOMP_ALLOWLIST_SYSTEM.TXT Use more inclusive language for seccomp filter 2020-06-15 10:12:17 -07:00
SECCOMP_BLOCKLIST_APP.TXT Use more inclusive language for seccomp filter 2020-06-15 10:12:17 -07:00
SECCOMP_BLOCKLIST_COMMON.TXT Revert "Disallow vmsplice(2) for all zygote-spawned processes." 2020-06-23 17:53:35 +00:00
SECCOMP_PRIORITY.TXT Use more inclusive language for seccomp filter 2020-06-15 10:12:17 -07:00
SYSCALLS.TXT Revert "Reland: Soft-enable MAC address restrictions with allowlist." 2021-04-08 11:39:33 +02:00
version_script.txt