authorgravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-11-01 11:47:09+02:00
committergravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-11-01 11:47:09+02:00
log2fdb30a571564253d110d27329a898a1d169553c
tree0a07d4ca6620ea24216188f921291c98f76fbbd5
parent888af655e0e9a3e2f0432800942cb7f7e8989d27

Add definitions for FALLOC_FL_ mode flags


1 files changed, 21 insertions(+), 0 deletions(-)

lib/std/os/bits/linux.zig+21
......@@ -82,6 +82,27 @@ pub const AT_STATX_DONT_SYNC = 0x4000;
8282/// Apply to the entire subtree
8383pub const AT_RECURSIVE = 0x8000;
8484
85/// Default is extend size
86pub const FALLOC_FL_KEEP_SIZE = 0x01;
87
88/// De-allocates range
89pub const FALLOC_FL_PUNCH_HOLE = 0x02;
90
91/// Reserved codepoint
92pub const FALLOC_FL_NO_HIDE_STALE = 0x04;
93
94/// Removes a range of a file without leaving a hole in the file
95pub const FALLOC_FL_COLLAPSE_RANGE = 0x08;
96
97/// Converts a range of file to zeros preferably without issuing data IO
98pub const FALLOC_FL_ZERO_RANGE = 0x10;
99
100/// Inserts space within the file size without overwriting any existing data
101pub const FALLOC_FL_INSERT_RANGE = 0x20;
102
103/// Unshares shared blocks within the file size without overwriting any existing data
104pub const FALLOC_FL_UNSHARE_RANGE = 0x40;
105
85106pub const FUTEX_WAIT = 0;
86107pub const FUTEX_WAKE = 1;
87108pub const FUTEX_FD = 2;