aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-01-09 15:32:52 +0100
committerAndreas Schwab <schwab@suse.de>2013-01-10 09:59:57 +0100
commit988197f0ccaec055daea6c3e1ab56f01e163ce2b (patch)
tree392690b638dd733a7b6d8d5595da92ce598786b6 /sysdeps/unix/sysv/linux/bits/fcntl-linux.h
parente83d72988d89378e7c70a1b7ba0b450a699ea70a (diff)
downloadglibc-988197f0ccaec055daea6c3e1ab56f01e163ce2b.tar
glibc-988197f0ccaec055daea6c3e1ab56f01e163ce2b.tar.gz
glibc-988197f0ccaec055daea6c3e1ab56f01e163ce2b.tar.bz2
glibc-988197f0ccaec055daea6c3e1ab56f01e163ce2b.zip
Define flags for fallocate
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits/fcntl-linux.h')
-rw-r--r--sysdeps/unix/sysv/linux/bits/fcntl-linux.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index a8bb09075a..b5929bd292 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -296,6 +296,13 @@ struct f_owner_ex
# define SPLICE_F_GIFT 8 /* Pages passed in are a gift. */
+/* Flags for fallocate. */
+# define FALLOC_FL_KEEP_SIZE 1 /* Don't extend size of file
+ even if offset + len is
+ greater than file size. */
+# define FALLOC_FL_PUNCH_HOLE 2 /* Create a hole in the file. */
+
+
/* File handle structure. */
struct file_handle
{