aboutsummaryrefslogtreecommitdiff
path: root/libc/include/unistd.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-08-12 10:16:34 -0700
committerElliott Hughes <enh@google.com>2016-08-12 10:16:34 -0700
commitfd936ae0257dd3db5ec5fcff46188993bec7a65d (patch)
tree20ce6e21b87dfa819ba79354344b4310ad94b8cc /libc/include/unistd.h
parent166f875eabdd2b7c508fc4ed1789a0d37fb1bdce (diff)
downloadbionic-fd936ae0257dd3db5ec5fcff46188993bec7a65d.tar.gz
POSIX says <fcntl.h> makes SEEK_* visible.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html We already had two copies of these constants, so time to factor them out into bits/. Change-Id: I213c0d2372e41463593f878d338002b8eaa918cd
Diffstat (limited to 'libc/include/unistd.h')
-rw-r--r--libc/include/unistd.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/include/unistd.h b/libc/include/unistd.h
index 86949de8e..ac7d4c2bf 100644
--- a/libc/include/unistd.h
+++ b/libc/include/unistd.h
@@ -39,6 +39,7 @@
#include <bits/ioctl.h>
#include <bits/lockf.h>
#include <bits/posix_limits.h>
+#include <bits/seek_constants.h>
#include <bits/sysconf.h>
__BEGIN_DECLS
@@ -52,10 +53,6 @@ __BEGIN_DECLS
#define W_OK 2
#define R_OK 4
-#define SEEK_SET 0
-#define SEEK_CUR 1
-#define SEEK_END 2
-
#define _PC_FILESIZEBITS 0
#define _PC_LINK_MAX 1
#define _PC_MAX_CANON 2