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/libc.x86.map b/libc/libc.x86.map
index 81f3751..57b81a8 100644
--- a/libc/libc.x86.map
+++ b/libc/libc.x86.map
@@ -1266,11 +1266,23 @@
     hasmntopt; # future
     lutimes; # future
     mblen; # future
+    msgctl; # future
+    msgget; # future
+    msgrcv; # future
+    msgsnd; # future
     pthread_getname_np; # future
     quotactl; # future
+    semctl; # future
+    semget; # future
+    semop; # future
+    semtimedop; # future
     setdomainname; # future
     setgrent; # future
     setpwent; # future
+    shmat; # future
+    shmctl; # future
+    shmdt; # future
+    shmget; # future
     sighold; # future
     sigignore; # future
     sigpause; # future