OSDN Git Service

Ensure that <fcntl.h> has the SYNC_FILE_RANGE_* constants.
authorElliott Hughes <enh@google.com>
Wed, 26 Feb 2014 19:10:32 +0000 (11:10 -0800)
committerElliott Hughes <enh@google.com>
Wed, 26 Feb 2014 23:51:01 +0000 (15:51 -0800)
Needed to build strace at their tip of tree.

Change-Id: I64db00a332088e08e25bc30357293a9308b8a226

libc/include/fcntl.h

index e37e0a7..779a089 100644 (file)
@@ -41,6 +41,10 @@ __BEGIN_DECLS
 #define O_ASYNC  FASYNC
 #endif
 
+#define SYNC_FILE_RANGE_WAIT_BEFORE 1
+#define SYNC_FILE_RANGE_WRITE 2
+#define SYNC_FILE_RANGE_WAIT_AFTER 4
+
 extern int creat(const char*, mode_t);
 extern int creat64(const char*, mode_t);
 extern int fallocate64(int, int, off64_t, off64_t);