[libc-commits] [libc] [libc] Implement fallocate (PR #222843)

via libc-commits libc-commits at lists.llvm.org
Fri Sep 11 05:52:22 PDT 2026


================
@@ -24,6 +24,14 @@
 #define O_SYNC 004010000
 #define O_TRUNC 000001000
 
+#define FALLOC_FL_KEEP_SIZE 0x01
----------------
afnrow wrote:

I think that defining them here is better for compatibility and usability as they are required for mode argument so it will be easier to define it here than making users include `linux/fallocate.h`, though we could add it under a Linux specific flag macro or file like glibc.

https://github.com/llvm/llvm-project/pull/222843


More information about the libc-commits mailing list