diff options
author | Elliott Hughes <enh@google.com> | 2014-12-29 13:29:50 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-12-29 13:29:50 -0800 |
commit | 40360b379cee07574493f5a450cf1c6e531bdde0 (patch) | |
tree | 2b16a06dc25f1c3f51e94dc099513464f615e622 | |
parent | 0a552407ada6fc718be016df0902f6c23aa88eea (diff) | |
download | bionic-40360b379cee07574493f5a450cf1c6e531bdde0.zip bionic-40360b379cee07574493f5a450cf1c6e531bdde0.tar.gz bionic-40360b379cee07574493f5a450cf1c6e531bdde0.tar.bz2 |
Remove bogus transitive includes.
<signal.h> shouldn't get you the contents of <errno.h>, and <fcntl.h>
shouldn't get you the contents of <unistd.h>.
Change-Id: I347499cd8671bfee98e6b8e875a97cab3a3655d3
-rw-r--r-- | libc/bionic/bionic_systrace.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/chown.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/lchown.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/poll.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/raise.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/readlink.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/sigaddset.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/sigdelset.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/sigemptyset.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/sigfillset.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/sigismember.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/termios.cpp | 1 | ||||
-rw-r--r-- | libc/bionic/utimes.cpp | 1 | ||||
-rw-r--r-- | libc/include/fcntl.h | 1 | ||||
-rw-r--r-- | libc/include/signal.h | 1 | ||||
-rw-r--r-- | libc/upstream-netbsd/android/include/fd_setsize.h | 1 |
16 files changed, 14 insertions, 2 deletions
diff --git a/libc/bionic/bionic_systrace.cpp b/libc/bionic/bionic_systrace.cpp index f5be415..c74a52c 100644 --- a/libc/bionic/bionic_systrace.cpp +++ b/libc/bionic/bionic_systrace.cpp @@ -15,6 +15,7 @@ */ #include <cutils/trace.h> +#include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> diff --git a/libc/bionic/chown.cpp b/libc/bionic/chown.cpp index bc2e605..dce1673 100644 --- a/libc/bionic/chown.cpp +++ b/libc/bionic/chown.cpp @@ -29,6 +29,7 @@ #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> +#include <unistd.h> int chown(const char* path, uid_t uid, gid_t gid) { return fchownat(AT_FDCWD, path, uid, gid, 0); diff --git a/libc/bionic/lchown.cpp b/libc/bionic/lchown.cpp index 95251db..24611a5 100644 --- a/libc/bionic/lchown.cpp +++ b/libc/bionic/lchown.cpp @@ -29,6 +29,7 @@ #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> +#include <unistd.h> int lchown(const char* path, uid_t uid, gid_t gid) { return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW); diff --git a/libc/bionic/poll.cpp b/libc/bionic/poll.cpp index ebb318d..d267229 100644 --- a/libc/bionic/poll.cpp +++ b/libc/bionic/poll.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <sys/poll.h> #include <sys/select.h> diff --git a/libc/bionic/raise.cpp b/libc/bionic/raise.cpp index 0dd0ad7..b134b5a 100644 --- a/libc/bionic/raise.cpp +++ b/libc/bionic/raise.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <pthread.h> #include <signal.h> diff --git a/libc/bionic/readlink.cpp b/libc/bionic/readlink.cpp index a2c5e91..3bb7bc1 100644 --- a/libc/bionic/readlink.cpp +++ b/libc/bionic/readlink.cpp @@ -29,6 +29,7 @@ #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> +#include <unistd.h> ssize_t readlink(const char* path, char* buf, size_t size) { return readlinkat(AT_FDCWD, path, buf, size); diff --git a/libc/bionic/sigaddset.cpp b/libc/bionic/sigaddset.cpp index 33ec6f8..6ade3b1 100644 --- a/libc/bionic/sigaddset.cpp +++ b/libc/bionic/sigaddset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <signal.h> int sigaddset(sigset_t* set, int signum) { diff --git a/libc/bionic/sigdelset.cpp b/libc/bionic/sigdelset.cpp index 9eea250..3582f0d 100644 --- a/libc/bionic/sigdelset.cpp +++ b/libc/bionic/sigdelset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <signal.h> int sigdelset(sigset_t* set, int signum) { diff --git a/libc/bionic/sigemptyset.cpp b/libc/bionic/sigemptyset.cpp index 2993169..8d8033f 100644 --- a/libc/bionic/sigemptyset.cpp +++ b/libc/bionic/sigemptyset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <signal.h> int sigemptyset(sigset_t* set) { diff --git a/libc/bionic/sigfillset.cpp b/libc/bionic/sigfillset.cpp index 7b7cbb8..37792e5 100644 --- a/libc/bionic/sigfillset.cpp +++ b/libc/bionic/sigfillset.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <signal.h> int sigfillset(sigset_t* set) { diff --git a/libc/bionic/sigismember.cpp b/libc/bionic/sigismember.cpp index 0dc73ac..16acd09 100644 --- a/libc/bionic/sigismember.cpp +++ b/libc/bionic/sigismember.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <signal.h> int sigismember(const sigset_t* set, int signum) { diff --git a/libc/bionic/termios.cpp b/libc/bionic/termios.cpp index 082dcdc..44ae643 100644 --- a/libc/bionic/termios.cpp +++ b/libc/bionic/termios.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <termios.h> #include <unistd.h> diff --git a/libc/bionic/utimes.cpp b/libc/bionic/utimes.cpp index 65f2d0b..0b66e6c 100644 --- a/libc/bionic/utimes.cpp +++ b/libc/bionic/utimes.cpp @@ -26,6 +26,7 @@ * SUCH DAMAGE. */ +#include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/time.h> diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index b18ab12..4c4cfbd 100644 --- a/libc/include/fcntl.h +++ b/libc/include/fcntl.h @@ -35,7 +35,6 @@ #include <linux/fcntl.h> #include <linux/stat.h> #include <linux/uio.h> -#include <unistd.h> /* this is not required, but makes client code much happier */ __BEGIN_DECLS diff --git a/libc/include/signal.h b/libc/include/signal.h index 9519f6d..8988888 100644 --- a/libc/include/signal.h +++ b/libc/include/signal.h @@ -30,7 +30,6 @@ #define _SIGNAL_H_ #include <asm/sigcontext.h> -#include <errno.h> #include <limits.h> #include <machine/pthread_types.h> #include <machine/timespec.h> diff --git a/libc/upstream-netbsd/android/include/fd_setsize.h b/libc/upstream-netbsd/android/include/fd_setsize.h index e69de29..41bfcb7 100644 --- a/libc/upstream-netbsd/android/include/fd_setsize.h +++ b/libc/upstream-netbsd/android/include/fd_setsize.h @@ -0,0 +1 @@ +#include <sys/select.h> |