From 65c133506f42c3e4180c0444970b224228244afc Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 14 Jul 2023 20:30:43 +0200 Subject: [PATCH] runtime: remove unused F_{GET,SET}FL cgo constants on solaris and openbsd The generated constants were already removed by CL 497076, so the cgo constants used to generate them are no longer needed as well. Change-Id: I37dabd800461d134424af8bd72fb0c1b8504d604 Reviewed-on: https://go-review.googlesource.com/c/go/+/509676 Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Run-TryBot: Tobias Klauser Reviewed-by: Cherry Mui Auto-Submit: Tobias Klauser --- src/runtime/defs_openbsd.go | 3 --- src/runtime/defs_solaris.go | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/runtime/defs_openbsd.go b/src/runtime/defs_openbsd.go index 2ca6a88eca..5db8b67dd0 100644 --- a/src/runtime/defs_openbsd.go +++ b/src/runtime/defs_openbsd.go @@ -57,9 +57,6 @@ const ( PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED - F_GETFL = C.F_GETFL - F_SETFL = C.F_SETFL - SIGHUP = C.SIGHUP SIGINT = C.SIGINT SIGQUIT = C.SIGQUIT diff --git a/src/runtime/defs_solaris.go b/src/runtime/defs_solaris.go index 11708ee23a..54c4008340 100644 --- a/src/runtime/defs_solaris.go +++ b/src/runtime/defs_solaris.go @@ -125,8 +125,6 @@ const ( O_CREAT = C.O_CREAT O_TRUNC = C.O_TRUNC O_CLOEXEC = C.O_CLOEXEC - F_GETFL = C.F_GETFL - F_SETFL = C.F_SETFL POLLIN = C.POLLIN POLLOUT = C.POLLOUT -- 2.50.0