std.c.MFD: support linux

This commit is contained in:
rpkak
2026-03-21 10:12:31 +01:00
committed by Alex Rønne Petersen
parent ccf8e223f4
commit 9857dabfea
+6 -1
View File
@@ -10312,6 +10312,12 @@ pub const FUTEX = switch (native_os) {
else => void,
};
pub const MFD = switch (native_os) {
.linux => linux.MFD,
.freebsd => freebsd.MFD,
else => void,
};
// Unix-like systems
pub const DIR = opaque {};
pub extern "c" fn opendir(pathname: [*:0]const u8) ?*DIR;
@@ -11265,7 +11271,6 @@ pub const user_from_uid = openbsd.user_from_uid;
pub const CAP_RIGHTS_VERSION = freebsd.CAP_RIGHTS_VERSION;
pub const KINFO_FILE_SIZE = freebsd.KINFO_FILE_SIZE;
pub const MFD = freebsd.MFD;
pub const UMTX_ABSTIME = freebsd.UMTX_ABSTIME;
pub const UMTX_OP = freebsd.UMTX_OP;
pub const _umtx_op = freebsd._umtx_op;