File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2245,6 +2245,27 @@ pub const MADV_PAGEOUT = 21;
2245
2245
pub const MADV_HWPOISON = 100 ;
2246
2246
pub const MADV_SOFT_OFFLINE = 101 ;
2247
2247
2248
+ pub const POSIX_FADV_NORMAL = 0 ;
2249
+ pub const POSIX_FADV_RANDOM = 1 ;
2250
+ pub const POSIX_FADV_SEQUENTIAL = 2 ;
2251
+ pub const POSIX_FADV_WILLNEED = 3 ;
2252
+ pub usingnamespace switch (builtin .arch ) {
2253
+ .s390x = > if (@typeInfo (usize ).Int .bits == 64 )
2254
+ struct {
2255
+ pub const POSIX_FADV_DONTNEED = 6 ;
2256
+ pub const POSIX_FADV_NOREUSE = 7 ;
2257
+ }
2258
+ else
2259
+ struct {
2260
+ pub const POSIX_FADV_DONTNEED = 4 ;
2261
+ pub const POSIX_FADV_NOREUSE = 5 ;
2262
+ },
2263
+ else = > struct {
2264
+ pub const POSIX_FADV_DONTNEED = 4 ;
2265
+ pub const POSIX_FADV_NOREUSE = 5 ;
2266
+ },
2267
+ };
2268
+
2248
2269
pub const __kernel_timespec = extern struct {
2249
2270
tv_sec : i64 ,
2250
2271
tv_nsec : i64 ,
You can’t perform that action at this time.
0 commit comments