commit | fd936ae0257dd3db5ec5fcff46188993bec7a65d | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Aug 12 10:16:34 2016 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Aug 12 10:16:34 2016 -0700 |
tree | 20ce6e21b87dfa819ba79354344b4310ad94b8cc | |
parent | 166f875eabdd2b7c508fc4ed1789a0d37fb1bdce [diff] [blame] |
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
diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 86949de..ac7d4c2 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 @@ #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