From 547aed18e0db6a18c207731d56b60a24d0c69ba5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 15 May 2023 16:34:36 -0700 Subject: runtime: consistently define fcntl Clean up and consolidate on a single consistent definition of fcntl, which takes three int32 arguments and returns either a positive result or a negative errno value. Change-Id: Id9505492712db4b0aab469c6bd15e4fce3c9ff6e Reviewed-on: https://go-review.googlesource.com/c/go/+/495075 Run-TryBot: Ian Lance Taylor Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Tobias Klauser Reviewed-by: Michael Pratt --- src/runtime/export_unix_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/export_unix_test.go') diff --git a/src/runtime/export_unix_test.go b/src/runtime/export_unix_test.go index 71a55d8941..6967e7645c 100644 --- a/src/runtime/export_unix_test.go +++ b/src/runtime/export_unix_test.go @@ -9,6 +9,7 @@ package runtime import "unsafe" var NonblockingPipe = nonblockingPipe +var Fcntl = fcntl func sigismember(mask *sigset, i int) bool { clear := *mask -- cgit v1.2.1