From 14353590f211b6600e511390250e9a1fa98e483a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 11:23:33 -0700 Subject: [PATCH] Revert "std: adding netbsd's pthread to cpu affinity api" This reverts commit 3f259d35502ed5a8bdb6bbc22f9adb39d610b006. --- lib/std/c/netbsd.zig | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/std/c/netbsd.zig b/lib/std/c/netbsd.zig index d10e40b1d3..4b627ed083 100644 --- a/lib/std/c/netbsd.zig +++ b/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;