Bug 14964 - Constants for Linux fallocate() are not defined
Summary: Constants for Linux fallocate() are not defined
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: 2.18
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-16 15:38 UTC by Michael Kerrisk
Modified: 2014-06-14 05:34 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kerrisk 2012-12-16 15:38:09 UTC
As a result of http://www.sourceware.org/bugzilla/show_bug.cgi?id=7083 , glibc added support for the Linux fallocate() system call. However, the constants needed for the 'mode' argument argument are missing from header files. That is, bits/fcntl.h lacks the following definitions (from the Linux kernel source file include/uapi/linux/falloc.h):

#define FALLOC_FL_KEEP_SIZE     0x01 /* default is extend size */
#define FALLOC_FL_PUNCH_HOLE    0x02 /* de-allocates range */
Comment 1 Andreas Schwab 2013-01-10 09:04:29 UTC
Fixed in 2.18.