From 3de9e7a0678abeecf9c4b7879ff53213ae879d08 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 27 Mar 2026 20:03:25 +0100 Subject: runtime/cgo: remove unused _cgo_openbsd_try_pthread_create prototype The function is no longer defined since CL 40331. Remove its prototype from libcgo_unix.h as well. Change-Id: I155ca632cd61bddcd798def691856c04b03040d7 Reviewed-on: https://go-review.googlesource.com/c/go/+/760163 LUCI-TryBot-Result: Go LUCI Reviewed-by: Florian Lehner Auto-Submit: Tobias Klauser Reviewed-by: Dmitri Shuralyov Reviewed-by: Cherry Mui Reviewed-by: Ian Lance Taylor --- src/runtime/cgo/libcgo_unix.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/runtime') diff --git a/src/runtime/cgo/libcgo_unix.h b/src/runtime/cgo/libcgo_unix.h index 604fd5dc1b..c765f6cb32 100644 --- a/src/runtime/cgo/libcgo_unix.h +++ b/src/runtime/cgo/libcgo_unix.h @@ -9,11 +9,4 @@ */ extern int _cgo_try_pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*); -/* - * Same as _cgo_try_pthread_create, but passing on the pthread_create function. - * Only defined on OpenBSD. - */ -extern int _cgo_openbsd_try_pthread_create(int (*)(pthread_t*, const pthread_attr_t*, void *(*pfn)(void*), void*), - pthread_t*, const pthread_attr_t*, void* (*)(void*), void* arg); - extern void* threadentry(void*); -- cgit v1.3-5-g9baa