25845f
commit 257dabc059447934a90be6fce4b5d2a5f4b63dfd
25845f
Author: Joseph Myers <joseph@codesourcery.com>
25845f
Date:   Wed Dec 14 18:23:15 2016 +0000
25845f
25845f
    Include <linux/falloc.h> in bits/fcntl-linux.h.
25845f
    
25845f
    This patch makes bits/fcntl-linux.h include <linux/falloc.h> to define
25845f
    the FALLOC_* flags under __USE_GNU (linux/falloc.h defines only those
25845f
    bits, nothing else).
25845f
    
25845f
    Tested for x86_64 and x86.
25845f
    
25845f
    	* sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
25845f
    	<linux/falloc.h>.
25845f
    	(FALLOC_FL_KEEP_SIZE): Remove.
25845f
    	(FALLOC_FL_PUNCH_HOLE): Likewise.
25845f
    	(FALLOC_FL_COLLAPSE_RANGE): Likewise.
25845f
    	(FALLOC_FL_ZERO_RANGE): Likewise.
25845f
25845f
diff -rup a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
25845f
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h	2018-04-13 18:27:53.000000000 -0400
25845f
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h	2018-04-13 18:29:27.108482182 -0400
25845f
@@ -300,6 +300,10 @@ struct f_owner_ex
25845f
 # define SPLICE_F_GIFT		8	/* Pages passed in are a gift.  */
25845f
 
25845f
 
25845f
+/* Flags for fallocate.  */
25845f
+# include <linux/falloc.h>
25845f
+
25845f
+
25845f
 /* File handle structure.  */
25845f
 struct file_handle
25845f
 {