[PATCH] Avoid preprocessor FALLOC_FL_* token redefinitions
Mike Frysinger
vapier@gentoo.org
Tue Jan 7 18:40:00 GMT 2014
On Wednesday 01 January 2014 17:15:10 Sami Kerola wrote:
> The linux/falloc.h header defines both FALLOC_FL_KEEP_SIZE and
> FALLOC_FL_PUNCH_HOLE.
this is not how we want to protect collisions between the kernel headers and
the C library. see the recent threads on net/ptrace/xattrs headers instead.
even all that said, unless you're calling the fallocate syscall directly, you
shouldn't be including linux/falloc.h. if you're using using the C library's
fallocate() function, you need to only use the C library's headers.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20140107/1fc2a859/attachment.sig>
More information about the Libc-help
mailing list