Flesh out <sys/msg.h>, <sys/sem.h>, <sys/shm.h>.
Also fix <sys/ipc.h>.
Not useful except to systems/bringup folks for testing. Trivial tests
added, and double-checked under strace to see that things look right.
x86 -- which works differently to everything else -- tested on the host.
Bug: http://b/27952303
Change-Id: I328534e994ae9e90755f545478fba03038c0bb94
diff --git a/libc/include/sys/ipc.h b/libc/include/sys/ipc.h
index 99bc5db..1a5a4a0 100644
--- a/libc/include/sys/ipc.h
+++ b/libc/include/sys/ipc.h
@@ -33,6 +33,8 @@
#include <sys/types.h>
#include <linux/ipc.h>
+#define ipc_perm ipc64_perm
+
__BEGIN_DECLS
key_t ftok(const char* path, int id);