bionic/libc/include/sys
Elliott Hughes 40596aa005 Make cpp.py less braindead.
The old code ignored operator precedence (!), despite having two tables
of operator precedence. The code's still pretty awful, but I've cleaned
it up enough to fix this, the most important bug.

This patch lets us correctly clean the uapi unistd.h, stat.h, and swab.h files,
and also fixes the mess we were already making of various old kernel
header files. I've added a bunch more tests, fixed the existing tests that
the existing script was already failing (!), and changed the script so that
the tests are run every time the script is run.

We can probably remove some of the old kernel header files that we were
parsing incorrectly, but we can worry about that later.

Bug: 11253477
Change-Id: Ie66c65b3a7ae13b4e98ed8038a6a534f06eae0e5
2013-11-06 12:04:48 -08:00
..
_errdefs.h Error numbers are target specific. 2012-08-01 17:53:07 -07:00
_sigdefs.h Fix typo in SIGTTOU description. 2012-08-10 12:23:58 -07:00
_system_properties.h bionic: add compatibility mode for properties 2013-06-25 16:52:40 -07:00
_types.h Make cpp.py less braindead. 2013-11-06 12:04:48 -08:00
atomics.h Fix implementation of generic atomic operations 2012-07-24 13:56:38 -07:00
auxv.h Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
cachectl.h MIPS support for libc. 2012-08-02 16:07:26 -07:00
capability.h libc: create sys/capability.h 2013-02-26 13:27:15 -08:00
cdefs_elf.h libc: Define new symbol visibility macros 2012-01-31 22:19:09 +01:00
cdefs.h cdefs.h: introduce __bos0 2013-08-28 14:27:14 -07:00
dirent.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
endian.h Add the glibc-compatible names to <sys/endian.h>. 2013-02-22 11:04:27 -08:00
epoll.h Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
errno.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
eventfd.h Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls. 2013-10-23 09:48:29 -07:00
exec_elf.h Update <sys/exec_elf.h> to include EM_AARCH64. 2013-10-28 21:28:40 -07:00
file.h libc: remove C++ comments from public headers. 2010-09-27 17:35:26 +02:00
fsuid.h libc: tag missing functions in system headers. 2010-10-09 17:56:55 +02:00
glibc-syscalls.h AArch64: Autogenerated syscalls for AArch64 2013-10-28 16:18:42 -07:00
inotify.h Fix header file dependencies. 2013-10-23 11:25:54 -07:00
ioctl_compat.h MIPS support to sys/ headers 2012-08-02 18:03:54 -07:00
ioctl.h Include linux/termios.h from sys/ioctl.h. 2013-07-03 13:35:18 -07:00
ipc.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
klog.h Fix <sys/klog.h> to correspond to the kernel operations. 2012-09-14 15:42:30 -07:00
limits.h Add arch-x86_64/include/machine. 2013-10-04 16:10:13 -07:00
mman.h Add mmap64() 2013-09-19 14:11:26 -07:00
mount.h Clean up <sys/mount.h>/<linux/fs.h> duplication. 2013-07-03 14:58:04 -07:00
param.h Fix the ALIGN and ALIGNBYTES macros for LP64. 2013-10-08 15:31:44 -07:00
personality.h sys/personality.h: include <sys/cdefs.h> 2013-06-05 11:30:17 +08:00
poll.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
prctl.h prctl.h: include sys/cdefs.h 2013-01-23 16:49:47 -08:00
ptrace.h libc: remove C++ comments from public headers. 2010-09-27 17:35:26 +02:00
queue.h Add fts, err, and sys/queue for grep 2010-01-15 15:57:02 -08:00
reboot.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
resource.h Add definition of rlim_t 2010-01-15 15:57:02 -08:00
select.h Fix <sys/select.h> for LP64, clean up <time.h>. 2013-11-05 13:28:36 -08:00
sendfile.h Ensure we have the off64_t variant of every function that takes an off_t. 2013-09-19 16:27:24 -07:00
sha1.h Upgrade more functions to the current upstream NetBSD copy. 2012-10-23 12:29:53 -07:00
signal.h libc: add sys/signal.h for compatibility 2013-02-22 10:38:28 -08:00
signalfd.h Add <sys/statvfs.h>. 2013-07-09 13:25:03 -07:00
socket.h Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags. 2013-10-17 13:32:32 -07:00
socketcalls.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
stat.h Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
statfs.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
statvfs.h Add <sys/statvfs.h>. 2013-07-09 13:25:03 -07:00
swap.h Add <sys/statvfs.h>. 2013-07-09 13:25:03 -07:00
syscall.h Provide glibc-compatible SYS_* aliases for the __NR_* constants. 2013-03-21 18:06:55 -07:00
sysconf.h Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK). 2013-01-02 14:23:43 -08:00
sysinfo.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
syslimits.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sysmacros.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
system_properties.h bionic: add __system_property_foreach 2013-06-18 19:24:29 -07:00
time.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
timeb.h Ensure header files using __BEGIN_DECLS include sys/cdefs.h. 2013-06-05 17:58:08 -07:00
timerfd.h libc: add timerfd calls 2013-05-14 14:45:02 -07:00
times.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ttychars.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ttydefaults.h Add tty defaults to bionic 2012-09-11 22:47:31 +03:00
ttydev.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
types.h Ensure we have the off64_t variant of every function that takes an off_t. 2013-09-19 16:27:24 -07:00
uio.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
un.h Backwards and forwards compatibility for an upcoming <sys/socket.h> change. 2012-09-12 10:51:05 -07:00
utime.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utsname.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vfs.h Fix struct statfs for LP64. 2013-10-18 17:00:11 -07:00
vt.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
wait.h libc: fix typo in waitid() declaration. 2010-10-13 15:46:55 +02:00
xattr.h Add extended attribute (xattr) system call wrappers to bionic. 2012-01-18 08:02:23 -05:00