arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1476120.patch

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