android_bionic/libc/include/sys
Elliott Hughes f6495c78a8 Stop #define'ing __func__ and __restrict.
__STDC_VERSION__ isn't defined for __cplusplus, so we've been removing
such checks. Some got missed.

Stop defining __func__ and just use the __PRETTY_FUNCTION__ GCC extension
in <assert.h>. Also fix the #if there so that C++ gets __assert2 rather
than __assert, and rewrite the cast to work with -I rather than -isystem.

Also remove __restrict and just always use the __restrict GCC extension.

Add a trivial test for <assert.h>.

Bug: http://b/30353757
Change-Id: Ie49bb417976293d3a9692b516e28fe3c0ae0a6d9
Test: ran bionic unit tests.
2016-07-25 11:13:47 -07:00
..
_system_properties.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
auxv.h
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 Stop #define'ing __func__ and __restrict. 2016-07-25 11:13:47 -07:00
endian.h Don't expose all BSD extensions. 2016-06-13 14:14:43 -07:00
epoll.h
errno.h
eventfd.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
fcntl.h
file.h
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
ipc.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
klog.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
limits.h Don't expose all BSD extensions. 2016-06-13 14:14:43 -07:00
mman.h Make it possible to build bionic with -I instead of -isystem. 2016-07-22 13:12:53 -07:00
mount.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
msg.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -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
prctl.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
procfs.h
ptrace.h
queue.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
quota.h
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 Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
select.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
sem.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
sendfile.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
signal.h
signalfd.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
socket.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
stat.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
statfs.h
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
syslog.h
sysmacros.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
system_properties.h
time.h Update symbol versions. 2016-06-10 17:50:14 -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
ttydefaults.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
types.h Don't expose all BSD extensions. 2016-06-13 14:14:43 -07:00
ucontext.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
uio.h
un.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00
unistd.h
user.h
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
wait.h Remove unnecessary 'extern's. 2016-07-22 18:57:12 -07:00
xattr.h Always include <sys/cdefs.h>. 2016-07-22 17:01:54 -07:00