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
This commit is contained in:
Elliott Hughes
2014-12-29 13:29:50 -08:00
parent 0a552407ad
commit 40360b379c
16 changed files with 14 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
*/
#include <cutils/trace.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>

View File

@@ -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);

View File

@@ -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);

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <sys/poll.h>
#include <sys/select.h>

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <pthread.h>
#include <signal.h>

View File

@@ -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);

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <signal.h>
int sigaddset(sigset_t* set, int signum) {

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <signal.h>
int sigdelset(sigset_t* set, int signum) {

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <signal.h>
int sigemptyset(sigset_t* set) {

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <signal.h>
int sigfillset(sigset_t* set) {

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <signal.h>
int sigismember(const sigset_t* set, int signum) {

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <termios.h>
#include <unistd.h>

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>

View File

@@ -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

View File

@@ -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>

View File

@@ -0,0 +1 @@
#include <sys/select.h>