aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c/openbsd.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-29 13:25:13 -0400
committerGitHub <noreply@github.com>2021-07-29 13:25:13 -0400
commit192b5d24cb4651ed2c6b6b1e5fee017d40ea5aa5 (patch)
treec98d0f66679a0d47ede96ce3acefcb224b1eb172 /lib/std/c/openbsd.zig
parented174b7386cb5a6f2008cb6a25c3ff684645d847 (diff)
parentdf4fe8716374e4cfdf1dee2bbcda7969eb6d057a (diff)
downloadzig-192b5d24cb4651ed2c6b6b1e5fee017d40ea5aa5.tar.gz
zig-192b5d24cb4651ed2c6b6b1e5fee017d40ea5aa5.zip
Merge pull request #8570 from vrischmann/thread-name
add Thread.setName and Thread.getName
Diffstat (limited to 'lib/std/c/openbsd.zig')
-rw-r--r--lib/std/c/openbsd.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/c/openbsd.zig b/lib/std/c/openbsd.zig
index cac3df867d..15820fb0a9 100644
--- a/lib/std/c/openbsd.zig
+++ b/lib/std/c/openbsd.zig
@@ -45,3 +45,6 @@ pub extern "c" fn posix_memalign(memptr: *?*c_void, alignment: usize, size: usiz
pub extern "c" fn pledge(promises: ?[*:0]const u8, execpromises: ?[*:0]const u8) c_int;
pub extern "c" fn unveil(path: ?[*:0]const u8, permissions: ?[*:0]const u8) c_int;
+
+pub extern "c" fn pthread_set_name_np(thread: std.c.pthread_t, name: [*:0]const u8) void;
+pub extern "c" fn pthread_get_name_np(thread: std.c.pthread_t, name: [*:0]u8, len: usize) void;