aboutsummaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2021-04-12 19:05:01 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2021-04-13 13:56:21 +0000
commit13a4e8c41cd1d242a435d44e7f66f370e5306a8c (patch)
treec00f0ce2faedde0c57ac47f0ebb3443093e83ffd /src/os
parent3e5bba0a44b880541fb72220a883e259d0f34a83 (diff)
downloadgo-13a4e8c41cd1d242a435d44e7f66f370e5306a8c.tar.gz
go-13a4e8c41cd1d242a435d44e7f66f370e5306a8c.zip
all: simplify the spelling of Linux
The prefix didn't help clarify anything. Change-Id: I897fd4022ce9df42a548b15714e4b592618ca547 Reviewed-on: https://go-review.googlesource.com/c/go/+/309573 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org>
Diffstat (limited to 'src/os')
-rw-r--r--src/os/file_unix.go2
-rw-r--r--src/os/signal/doc.go4
-rw-r--r--src/os/wait_waitid.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/os/file_unix.go b/src/os/file_unix.go
index b5d87fcb73..deec41324b 100644
--- a/src/os/file_unix.go
+++ b/src/os/file_unix.go
@@ -174,7 +174,7 @@ func newFile(fd uintptr, name string, kind newFileKind) *File {
// with the netpoll system. That can happen for
// a file descriptor that is not supported by
// epoll/kqueue; for example, disk files on
- // GNU/Linux systems. We assume that any real error
+ // Linux systems. We assume that any real error
// will show up in later I/O.
} else if pollable {
// We successfully registered with netpoll, so put
diff --git a/src/os/signal/doc.go b/src/os/signal/doc.go
index a210795849..7af61d2d81 100644
--- a/src/os/signal/doc.go
+++ b/src/os/signal/doc.go
@@ -50,7 +50,7 @@ If the Go program is started with either SIGHUP or SIGINT ignored
If the Go program is started with a non-empty signal mask, that will
generally be honored. However, some signals are explicitly unblocked:
the synchronous signals, SIGILL, SIGTRAP, SIGSTKFLT, SIGCHLD, SIGPROF,
-and, on GNU/Linux, signals 32 (SIGCANCEL) and 33 (SIGSETXID)
+and, on Linux, signals 32 (SIGCANCEL) and 33 (SIGSETXID)
(SIGCANCEL and SIGSETXID are used internally by glibc). Subprocesses
started by os.Exec, or by the os/exec package, will inherit the
modified signal mask.
@@ -176,7 +176,7 @@ will initialize signals at global constructor time. For
shared library is loaded.
If the Go runtime sees an existing signal handler for the SIGCANCEL or
-SIGSETXID signals (which are used only on GNU/Linux), it will turn on
+SIGSETXID signals (which are used only on Linux), it will turn on
the SA_ONSTACK flag and otherwise keep the signal handler.
For the synchronous signals and SIGPIPE, the Go runtime will install a
diff --git a/src/os/wait_waitid.go b/src/os/wait_waitid.go
index 1f3cb1cfe2..44962c8534 100644
--- a/src/os/wait_waitid.go
+++ b/src/os/wait_waitid.go
@@ -23,7 +23,7 @@ const _P_PID = 1
// It does not actually call p.Wait.
func (p *Process) blockUntilWaitable() (bool, error) {
// The waitid system call expects a pointer to a siginfo_t,
- // which is 128 bytes on all GNU/Linux systems.
+ // which is 128 bytes on all Linux systems.
// On darwin/amd64, it requires 104 bytes.
// We don't care about the values it returns.
var siginfo [16]uint64