Commit 14353590f2

Andrew Kelley <andrew@ziglang.org>
2023-07-31 20:23:33
Revert "std: adding netbsd's pthread to cpu affinity api"
This reverts commit 3f259d35502ed5a8bdb6bbc22f9adb39d610b006.
1 parent a2439e1
Changed files (1)
lib
lib/std/c/netbsd.zig
@@ -121,21 +121,9 @@ pub const pthread_attr_t = extern struct {
 };
 
 pub const sem_t = ?*opaque {};
-pub const cpuset_t = opaque {};
-pub const cpuid_t = c_ulong;
 
 pub extern "c" fn pthread_setname_np(thread: std.c.pthread_t, name: [*:0]const u8, arg: ?*anyopaque) E;
 pub extern "c" fn pthread_getname_np(thread: std.c.pthread_t, name: [*:0]u8, len: usize) E;
-pub extern "c" fn pthread_setaffinity_np(thread: std.c.pthread_t, size: usize, set: ?*cpuset_t) c_int;
-pub extern "c" fn pthread_getaffinity_np(thread: std.c.pthread_t, size: usize, set: ?*cpuset_t) c_int;
-
-pub extern "c" fn cpuset_create() ?*cpuset_t;
-pub extern "c" fn cpuset_destroy(set: ?*cpuset_t) void;
-pub extern "c" fn cpuset_zero(set: ?*cpuset_t) void;
-pub extern "c" fn cpuset_set(cpu: cpuid_t, set: ?*cpuset_t) c_int;
-pub extern "c" fn cpuset_clr(cpu: cpuid_t, set: ?*cpuset_t) c_int;
-pub extern "c" fn cpuset_isset(cpu: cpuid_t, set: ?*const cpuset_t) c_int;
-pub extern "c" fn cpuset_size(set: ?*cpuset_t) usize;
 
 pub const blkcnt_t = i64;
 pub const blksize_t = i32;