platform_bionic/libc/include/sys
Elliott Hughes 497ad30d7d Make union semun usable.
This is a bit bogus because it's been removed from glibc (though not
thoroughly) and is never useful on Android (because the system calls
in question are compiled out of Android kernels, and SELinux would
disallow them even if you weren't running an Android kernel). This
also means that on glibc you need to include <linux/sem.h> for this
and on bionic you need <sys/sem.h> (and for either if you #include
the other file, you won't get this union).

Bug: https://github.com/android-ndk/ndk/issues/400
Test: added new test
Change-Id: I47f721da77515531f616d6ad8479bfbc9b60ee47
2017-05-18 15:05:26 -07:00
..
_system_properties.h Hide internal __system_property_* functions 2017-02-23 14:20:13 -08:00
auxv.h Add missing arch-specific AT_ cruft. 2017-04-19 10:52:35 -07:00
cachectl.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
capability.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
cdefs.h Link to the public post about clang FORTIFY. 2017-04-16 08:50:58 -07:00
endian.h Rename __pure, __pure2, and __purefunc. 2016-09-28 12:36:38 -07:00
epoll.h Use <linux/eventpoll.h> to implement <sys/epoll.h>. 2017-02-23 17:26:24 -08:00
errno.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
eventfd.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
fcntl.h libc: Add sys/fcntl.h for compatibility. 2015-07-08 15:07:17 -06:00
file.h POSIX says flock is in <sys/file.h>, not <unistd.h>. 2015-02-17 09:08:24 -08:00
fsuid.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
inotify.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
ioctl.h Remove <sys/ioctl_compat.h>. 2016-05-02 12:53:00 -07:00
ipc.h glibc ipc64_perm __key compatibility. 2017-01-27 19:12:32 -08:00
klog.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
limits.h Clean up <sys/limits.h> a bit. 2016-11-30 09:06:53 -08:00
mman.h Only rename mmap to mmap64 if we're L or newer. 2017-03-20 12:57:13 -07:00
mount.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
msg.h DO NOT MERGE: The future is now. 2017-04-20 16:57:25 -07:00
param.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
personality.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
poll.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
prctl.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
procfs.h Fix x86 gdbserver build. 2015-06-24 17:31:24 -07:00
ptrace.h Fixes for building gdbserver (and gdb) out of the box. 2015-06-16 16:04:35 -07:00
queue.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
quota.h DO NOT MERGE: The future is now. 2017-04-20 16:57:25 -07:00
reboot.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
reg.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
resource.h Fix getpriority/setpriority types. 2016-11-29 15:14:11 -08:00
select.h Add and use constants for the Android API levels. 2016-11-16 16:55:42 -08:00
sem.h Make union semun usable. 2017-05-18 15:05:26 -07:00
sendfile.h Only rename sendfile to sendfile64 if we're L or newer. 2017-03-17 18:50:12 -07:00
shm.h DO NOT MERGE: The future is now. 2017-04-20 16:57:25 -07:00
signal.h libc: add sys/signal.h for compatibility 2013-02-22 10:38:28 -08:00
signalfd.h versioner: refactor to use CompilerInstance directly. 2016-11-09 13:50:07 -08:00
socket.h DO NOT MERGE: The future is now. 2017-04-20 16:57:25 -07:00
stat.h libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
statfs.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
statvfs.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
swap.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
syscall.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
sysconf.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
sysinfo.h Add versioning information to symbols. 2016-04-29 16:39:50 -07:00
syslog.h Add all the glibc one-line "synonym" header files. 2015-07-17 13:59:36 -07:00
sysmacros.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
system_properties.h DO NOT MERGE: The future is now. 2017-04-20 16:57:25 -07:00
time.h DO NOT MERGE: The future is now. 2017-04-20 16:57:25 -07:00
timerfd.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
times.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
timex.h Add versioning information to symbols. 2016-04-29 16:39:50 -07:00
ttydefaults.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
types.h Fix an obsolete comment. 2016-12-14 12:43:30 -08:00
ucontext.h versioner: refactor to use CompilerInstance directly. 2016-11-09 13:50:07 -08:00
uio.h Correct the return types of readv and writev. 2016-11-29 14:26:15 -08:00
un.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
unistd.h Add all the glibc one-line "synonym" header files. 2015-07-17 13:59:36 -07:00
user.h Fix instances of '#if __i386__'. 2016-09-15 14:21:28 -07:00
utsname.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
vfs.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
vt.h Add all the glibc one-line "synonym" header files. 2015-07-17 13:59:36 -07:00
wait.h Add and use constants for the Android API levels. 2016-11-16 16:55:42 -08:00
xattr.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00