]> Cypherpunks repositories - gostls13.git/commitdiff
os, runtime: remove unused implementations of os.sigpipe
authorIan Lance Taylor <iant@golang.org>
Fri, 17 Mar 2023 20:30:22 +0000 (13:30 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 12 May 2023 21:33:26 +0000 (21:33 +0000)
Clean up instances that are unused since CL 6450058.

Change-Id: I0e9ae28cfa83fcc8abda8f5eca9c7dfc2c1c4ad1
Reviewed-on: https://go-review.googlesource.com/c/go/+/477396
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Bypass: Ian Lance Taylor <iant@golang.org>

src/os/file_posix.go
src/os/file_unix.go
src/runtime/os_plan9.go
src/runtime/os_windows.go

index e06ab1b7b979d668f73b37bed7ace9a9d136ccbb..5692657753372f678363525b53df54bbb559d828 100644 (file)
@@ -12,8 +12,6 @@ import (
        "time"
 )
 
-func sigpipe() // implemented in package runtime
-
 // Close closes the File, rendering it unusable for I/O.
 // On files that support SetDeadline, any pending I/O operations will
 // be canceled and return immediately with an ErrClosed error.
index f0e5d3cd4f70d70b8eaf2faaf80c1368f9c2028e..f7f942f5f528e45ea98a75c423ee2014529a3bf3 100644 (file)
@@ -210,6 +210,8 @@ func newFile(fd uintptr, name string, kind newFileKind) *File {
        return f
 }
 
+func sigpipe() // implemented in package runtime
+
 // epipecheck raises SIGPIPE if we get an EPIPE error on standard
 // output or standard error. See the SIGPIPE docs in os/signal, and
 // issue 11845.
index 367a5c1cd1957c1ad99ebd157ee12f3da8f826e1..f4ff4d5f454fbf2b48d632fd8d805f1598e35708 100644 (file)
@@ -69,11 +69,6 @@ func errstr() string
 
 type _Plink uintptr
 
-//go:linkname os_sigpipe os.sigpipe
-func os_sigpipe() {
-       throw("too many writes on closed pipe")
-}
-
 func sigpanic() {
        gp := getg()
        if !canpanic() {
index fb008f873abd883ebc31405cc813c05eb64b85f3..f5c2429a05d1460fc01072e3687001af9e79b7a0 100644 (file)
@@ -200,11 +200,6 @@ type mOS struct {
        preemptExtLock uint32
 }
 
-//go:linkname os_sigpipe os.sigpipe
-func os_sigpipe() {
-       throw("too many writes on closed pipe")
-}
-
 // Stubs so tests can link correctly. These should never be called.
 func open(name *byte, mode, perm int32) int32 {
        throw("unimplemented")