From 257dabc059447934a90be6fce4b5d2a5f4b63dfd Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 14 Dec 2016 18:23:15 +0000 Subject: Include in bits/fcntl-linux.h. This patch makes bits/fcntl-linux.h include to define the FALLOC_* flags under __USE_GNU (linux/falloc.h defines only those bits, nothing else). Tested for x86_64 and x86. * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include . (FALLOC_FL_KEEP_SIZE): Remove. (FALLOC_FL_PUNCH_HOLE): Likewise. (FALLOC_FL_COLLAPSE_RANGE): Likewise. (FALLOC_FL_ZERO_RANGE): Likewise. --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index 7e5b0aecdc..159ce145cc 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -318,15 +318,7 @@ struct f_owner_ex /* 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. */ -# define FALLOC_FL_COLLAPSE_RANGE 8 /* Remove a range of a file - without leaving a - hole. */ -# define FALLOC_FL_ZERO_RANGE 16 /* Convert a range of a - file to zeros. */ +# include /* File handle structure. */ -- cgit v1.2.3-70-g09d2