]> Cypherpunks repositories - gostls13.git/commitdiff
all: use "unix" build tag where appropriate
authorTobias Klauser <tklauser@distanz.ch>
Fri, 30 Sep 2022 17:50:03 +0000 (19:50 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 30 Sep 2022 23:58:34 +0000 (23:58 +0000)
Convert a few occurrences that were submitted after CL 389935.

For #20322
For #51572

Change-Id: I0047361916c402f8e37f515e6b09d451bd499e6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/437235
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/internal/osinfo/os_unix.go
src/os/rlimit.go
src/runtime/pprof/pprof_rusage.go
src/runtime/pprof/rusage_test.go
src/syscall/mmap_unix_test.go

index b989f0afb44a1aa84ab1959029a01698d03fd434..e1488323ae90d30ae7bedf1da19c64932ae690f8 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package osinfo
 
index a89414d098bbd14d05372db5c889e316a25f43c5..e0d0ef9b621d2397667ed2fdaaeb750ed2517fad 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package os
 
index a3ca4c8d5dd7ebbf0546a2a0e6b8cdb6b7007825..aa429fb06afc17866f84e42e695e59ecd73bc7d7 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package pprof
 
index b82b1af7680a3381d58a8a67b03bf1c077506798..80395109d9f31b3719b5b2525500a4d42a9113a3 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package pprof
 
index 5e08b20679313e4c2148052e704616553f7df10a..911dfa66acd98ac65f1505671197f4786055ee1f 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
+//go:build unix
 
 package syscall_test