libc: create sys/capability.h
Per "man capset", sys/capability.h is the appropriate header file
for the capget / capset definition, not unistd.h. Fixed.
As a short term hack, continue to include sys/capability.h in
unistd.h, until we can fix all the code which uses capget / capset.
Change-Id: I6e7cf55955d761ca785a14c5e4b7a44125d8fc15
diff --git a/libc/include/unistd.h b/libc/include/unistd.h
index a6a6dbf..97208a0 100644
--- a/libc/include/unistd.h
+++ b/libc/include/unistd.h
@@ -33,7 +33,7 @@
#include <sys/types.h>
#include <sys/select.h>
#include <sys/sysconf.h>
-#include <linux/capability.h>
+#include <sys/capability.h> /* TODO: Remove this include */
#include <pathconf.h>
__BEGIN_DECLS
@@ -69,8 +69,6 @@
extern int execl(const char *, const char *, ...);
extern int execlp(const char *, const char *, ...);
extern int execle(const char *, const char *, ...);
-extern int capget(cap_user_header_t hdrp, cap_user_data_t datap);
-extern int capset(cap_user_header_t hdrp, const cap_user_data_t datap);
/* IMPORTANT: See comment under <sys/prctl.h> about this declaration */
extern int prctl(int option, ...);