diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-19 20:42:35 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-19 20:42:35 +0400 |
commit | a0b833183723725e3676b0c8e657851deeabc645 (patch) | |
tree | 791b5a827a98e20e9a6ec961a5c090092ffa00a5 | |
parent | 85f4e9e636b8ffc2485b1e4a0831c12af5c06807 (diff) | |
download | glibc-a0b833183723725e3676b0c8e657851deeabc645.tar.gz |
__USE_XOPEN2K8 in kopensolaris-gnu-bits/fcntl.h
Put O_CLOEXEC (new), O_NOFOLLOW, O_DIRECTORY under __USE_XOPEN2K8
For O_CLOEXEC on illumos see
https://github.com/illumos/illumos-gate/commit/b075ad5b007248d50e4c2e838b460c9c7cfd9fad
-rw-r--r-- | sysdeps/unix/sysv/solaris2/kopensolaris-gnu/bits/fcntl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/bits/fcntl.h b/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/bits/fcntl.h index de499417b2..8e90a44034 100644 --- a/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/bits/fcntl.h +++ b/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/bits/fcntl.h @@ -44,7 +44,6 @@ #define O_NOCTTY 0x800 #define O_PRIV 0x1000 #define O_XATTR 0x4000 -#define O_NOFOLLOW 0x20000 #define O_NOLINKS 0x40000 #if defined __USE_POSIX199309 || defined __USE_UNIX98 @@ -53,9 +52,14 @@ #endif #define O_FSYNC O_SYNC +#ifdef __USE_XOPEN2K8 +# define O_DIRECTORY 0x10000 /* Must be a directory. */ +# define O_NOFOLLOW 0x20000 /* Do not follow links. */ +# define O_CLOEXEC 0x80000 /* Set close_on_exec. */ +#endif + #ifdef __USE_GNU #define O_DIRECT 0x1000000 -#define O_DIRECTORY 0x2000000 #endif #ifdef __USE_LARGEFILE64 |