Skip to content

Commit 8296894

Browse files
4a6f656cbradfitz
authored andcommitted
unix: remove arch specific build for openbsd_pledge.go
The pledge code is platform specific, but in no way architecture specific. As such, drop the +build rule that ties it to specific architectures. While here also rename openbsd_pledge.go and openbsd_unveil.go so we can drop the openbsd specific build tags. Change-Id: I7d83796c8f9b46afe2a6790620205df5f7f3d738 Reviewed-on: https://go-review.googlesource.com/c/sys/+/173677 Reviewed-by: Elias Naur <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Elias Naur <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 953cdad commit 8296894

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

unix/openbsd_pledge.go renamed to unix/pledge_openbsd.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build openbsd
6-
// +build 386 amd64 arm
7-
85
package unix
96

107
import (

unix/openbsd_unveil.go renamed to unix/unveil_openbsd.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build openbsd
6-
75
package unix
86

97
import (

0 commit comments

Comments
 (0)