Re: [PATCH] fallocate.2: mention <linux/falloc.h> for flag definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 21, 2011 at 00:30, Michael Kerrisk <mtk.manpages@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux