Commit 8c7eb8c8da

Andrew Kelley <andrew@ziglang.org>
2023-07-31 20:09:34
Revert "std.c: adding freebsd's domainset api"
This reverts commit e8f76b452bf86481069c2eeeb02d46161ea79a08.
1 parent 5d345b6
Changed files (1)
lib
lib/std/c/freebsd.zig
@@ -2548,28 +2548,3 @@ pub extern "c" fn mincore(
     length: usize,
     vec: [*]u8,
 ) c_int;
-
-pub const MAXMEMDOM = 8;
-pub const domainid_t = u8;
-
-pub const LIST_ENTRY = opaque {};
-
-pub const DOMAINSET = struct {
-    pub const POLICY_INVALID = 0;
-    pub const POLICY_ROUNDROBIN = 1;
-    pub const POLICY_FIRSTOUCH = 2;
-    pub const POLICY_PREFER = 3;
-    pub const POLICY_INTERLEAVE = 4;
-    pub const POLICY_MAX = DOMAINSET.POLICY_INTERLEAVE;
-};
-
-pub const domainset_t = extern struct {
-    link: LIST_ENTRY,
-    policy: u16,
-    prefer: domainid_t,
-    cnt: domainid_t,
-    order: [MAXMEMDOM]domainid_t,
-};
-
-pub extern "c" fn cpuset_getdomain(level: cpulevel_t, which: cpuwhich_t, id: id_t, len: usize, domain: *domainset_t, r: *c_int) c_int;
-pub extern "c" fn cpuset_setdomain(level: cpulevel_t, which: cpuwhich_t, id: id_t, len: usize, domain: *const domainset_t, r: c_int) c_int;