]> Cypherpunks repositories - gostls13.git/commitdiff
os, syscall: use unix build tag where appropriate
authorTobias Klauser <tklauser@distanz.ch>
Tue, 25 Feb 2025 10:46:15 +0000 (11:46 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 25 Feb 2025 20:09:25 +0000 (12:09 -0800)
These newly added files may use the unix build tag instead of explitly
listing all unix-like GOOS values.

For #51572

Change-Id: I31c71d2b5533b39bbccd89bf616a99b8e33565d3
Reviewed-on: https://go-review.googlesource.com/c/go/+/651996
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/os/root_openat.go
src/os/root_unix.go
src/syscall/badlinkname_unix.go

index cac0b1df0faf8b57588220ef9aaf5c5257ba671b..e25cba64af95f67f4a83399ce4478e872b5f7f63 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 || windows || wasip1
+//go:build unix || windows || wasip1
 
 package os
 
index 76d6b74eb7364bd85d1dd08b225842f2d80aee4f..f2f8e52bb23466f6cddbbea3aa5e0ea6e720b6bb 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 || wasip1
+//go:build unix || wasip1
 
 package os
 
index 4964a830b003d6bba3e6f8649ee8389d699b25b4..70ba073b37b99e3b6727b19b13ae7ae204fbb2c4 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