]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused F_{GET,SET}FL cgo constants on solaris and openbsd
authorTobias Klauser <tklauser@distanz.ch>
Fri, 14 Jul 2023 18:30:43 +0000 (20:30 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 24 Aug 2023 17:47:39 +0000 (17:47 +0000)
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 <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>

src/runtime/defs_openbsd.go
src/runtime/defs_solaris.go

index 2ca6a88ecad8f021d2e2437010152a6c3ce46eb7..5db8b67dd002d11591841f5ef15469909691043c 100644 (file)
@@ -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
index 11708ee23a7e9baa5b1721412d0bc2dac83e2c0e..54c400834020a3dca7c8f8a76cb24ca232c4dbf4 100644 (file)
@@ -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