[libc-commits] [libc] [libc] Implement fallocate (PR #222843)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Fri Sep 11 03:59:47 PDT 2026
================
@@ -24,6 +24,14 @@
#define O_SYNC 004010000
#define O_TRUNC 000001000
+#define FALLOC_FL_KEEP_SIZE 0x01
----------------
labath wrote:
I see musl defines this in fcntl.h, but that doesn't appear to be the case with glibc (presumably they expect users to include the kernel header). Given that this is just a linux extension, I think I'd start with not including these here. If you have a reason to think this is necessary, I'd like to hear about it.
https://github.com/llvm/llvm-project/pull/222843
More information about the libc-commits
mailing list