summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-14 22:06:30 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-14 22:06:30 -0400
commita3aa89d8268a4d3af43d94e77f473753fd99d8da (patch)
tree8dcb7d98bd5fcf202b771d75201abb425fc4035e /include
parent0a84e72c42ba01c9fa794d5e94aabf8a704e8b7d (diff)
downloadmusl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.tar.gz
musl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.tar.bz2
musl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.tar.xz
musl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.zip
fix O_SYNC definition, cleanup fcntl.h
Diffstat (limited to 'include')
-rw-r--r--include/fcntl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h
index 6faf9cda..1c18c6e2 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -78,6 +78,14 @@ int posix_fallocate(int, off_t, off_t);
#define S_IRWXO 0007
#endif
+#ifdef _GNU_SOURCE
+#define FAPPEND O_APPEND
+#define FFSYNC O_FSYNC
+#define FASYNC O_ASYNC
+#define FNONBLOCK O_NONBLOCK
+#define FNDELAY O_NDELAY
+#endif
+
#ifdef __cplusplus
}
#endif