On Wed, Sep 21, 2011 at 00:30, Michael Kerrisk [off-list ref] wrote:
Ulrich, the glibc headers declare Linux's fallocate() syscall is
_GNU_SOURCE is defined, but not the associated FALLOC_FL_PUNCH_HOLE
and FALLOC_FL_KEEP_SIZE constants. Probably this needs to be fixed. Is
this a glibc lack or is it that the constants are not exported from
kernel headers in the way that glibc needs?
The kernel people made it clear that they don't care about correct
namespaces in headers. This makes it pretty much impossible to use
most kernel headers. I'd love to avoid mirroring headers but this
isn't possible without the appropriate #ifdefs in the kernel headers.
I probably will define those constants in fcntl.h.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html