platform_bionic/libc/include/sys
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
..
_system_properties.h Fixup an out of date comment. 2018-07-24 13:34:34 -07:00
auxv.h Fix wrong link in getauxval(3) doc comment. 2020-02-21 16:23:33 -08:00
cachectl.h Clean up mips references in the headers. 2020-02-13 18:00:16 -08:00
capability.h Another round of documentation. 2018-10-04 16:35:13 -07:00
cdefs.h fortify: mark all always_inline functions with no_stack_protector 2021-03-29 15:39:50 -07:00
endian.h Cast __builtin_swap64 to uint64_t. 2017-09-11 13:21:35 -07:00
epoll.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
errno.h Start documenting libc. 2018-08-23 11:03:17 -07:00
eventfd.h Add EFD_SEMAPHORE flag for eventfd. 2019-09-03 09:35:51 -07:00
fcntl.h Start documenting libc. 2018-08-23 11:03:17 -07:00
file.h Another round of documentation. 2018-10-04 16:35:13 -07:00
fsuid.h Another round of documentation. 2018-10-04 16:35:13 -07:00
ifunc.h Adopt GNU calling convention for ifunc resolvers. 2019-10-28 20:20:29 -07:00
inotify.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
ioctl.h Another round of documentation. 2018-10-04 16:35:13 -07:00
ipc.h Another round of documentation. 2018-10-04 16:35:13 -07:00
klog.h Another round of documentation. 2018-10-04 16:35:13 -07:00
limits.h Start documenting libc. 2018-08-23 11:03:17 -07:00
mman.h Fix return type of process_madvise(). 2021-04-06 16:38:37 -07:00
mount.h Another round of documentation. 2018-10-04 16:35:13 -07:00
msg.h Another round of documentation. 2018-10-04 16:35:13 -07:00
mtio.h Add <sys/mtio.h>. 2017-06-14 17:16:05 -07:00
param.h param.h: whitespace cleanup 2019-03-27 10:56:16 -07:00
personality.h Remove __INTRODUCED_IN for obsolete API levels. 2019-10-03 16:09:04 -07:00
pidfd.h Add wrappers for pidfd_{open,getfd,send_signal}. 2021-02-25 13:55:12 -08:00
poll.h Start documenting libc. 2018-08-23 11:03:17 -07:00
prctl.h Update to android-mainline kernel headers v5.4. 2019-12-12 14:59:25 -08:00
procfs.h NGREG != ELF_NGREG. 2020-09-08 09:27:02 -07:00
ptrace.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
queue.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
quota.h Another round of documentation. 2018-10-04 16:35:13 -07:00
random.h Another round of documentation. 2018-10-04 16:35:13 -07:00
reboot.h Another round of documentation. 2018-10-04 16:35:13 -07:00
reg.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
resource.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
select.h Improve the <sys/select.h> docs. 2021-06-17 14:41:29 -07:00
sem.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
sendfile.h Another round of documentation. 2018-10-04 16:35:13 -07:00
shm.h Another round of documentation. 2018-10-04 16:35:13 -07:00
signal.h Start documenting libc. 2018-08-23 11:03:17 -07:00
signalfd.h Another round of documentation. 2018-10-04 16:35:13 -07:00
socket.h Define sockaddr_storage in bionic 2021-07-14 14:20:36 -07:00
stat.h Add a libc wrapper for statx(2). 2020-02-23 11:36:53 -08:00
statfs.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
statvfs.h Support statvfs on API levels before 19. 2019-08-29 21:57:58 -07:00
swap.h Another round of documentation. 2018-10-04 16:35:13 -07:00
syscall.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
sysconf.h Start documenting libc. 2018-08-23 11:03:17 -07:00
sysinfo.h Another round of documentation. 2018-10-04 16:35:13 -07:00
syslog.h Start documenting libc. 2018-08-23 11:03:17 -07:00
sysmacros.h Another round of documentation. 2018-10-04 16:35:13 -07:00
system_properties.h Remove __INTRODUCED_IN for obsolete API levels. 2019-10-03 16:09:04 -07:00
thread_properties.h Add a thread-properties API 2020-08-11 16:51:43 +00:00
time.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
timerfd.h Another round of documentation. 2018-10-04 16:35:13 -07:00
times.h Another round of documentation. 2018-10-04 16:35:13 -07:00
timex.h Another round of documentation. 2018-10-04 16:35:13 -07:00
ttydefaults.h Make <sys/ttydefaults.h> more usable. 2017-07-06 10:33:15 -07:00
types.h Improve the _FILE_OFFSET_BITS docs and link to them. 2017-11-28 15:47:01 -08:00
ucontext.h Clean up mips references in the headers. 2020-02-13 18:00:16 -08:00
uio.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
un.h Another round of documentation. 2018-10-04 16:35:13 -07:00
unistd.h Start documenting libc. 2018-08-23 11:03:17 -07:00
user.h Clean up mips references in the headers. 2020-02-13 18:00:16 -08:00
utsname.h Another round of documentation. 2018-10-04 16:35:13 -07:00
vfs.h Clean up mips references in the headers. 2020-02-13 18:00:16 -08:00
vt.h Add all the glibc one-line "synonym" header files. 2015-07-17 13:59:36 -07:00
wait.h Stop using the __ANDROID_API_x__ constants. 2019-12-20 13:26:14 -08:00
xattr.h Header improvements. 2019-11-01 16:47:46 -07:00