From 82968946f5b2275f585d10cc92fb0d44af5a0f17 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 24 Apr 2019 22:54:49 +1000 Subject: [PATCH] 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 Reviewed-by: Brad Fitzpatrick Run-TryBot: Elias Naur TryBot-Result: Gobot Gobot --- unix/{openbsd_pledge.go => pledge_openbsd.go} | 3 --- unix/{openbsd_unveil.go => unveil_openbsd.go} | 2 -- 2 files changed, 5 deletions(-) rename unix/{openbsd_pledge.go => pledge_openbsd.go} (98%) rename unix/{openbsd_unveil.go => unveil_openbsd.go} (98%) diff --git a/unix/openbsd_pledge.go b/unix/pledge_openbsd.go similarity index 98% rename from unix/openbsd_pledge.go rename to unix/pledge_openbsd.go index 230a36d2..eb48294b 100644 --- a/unix/openbsd_pledge.go +++ b/unix/pledge_openbsd.go @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build openbsd -// +build 386 amd64 arm - package unix import ( diff --git a/unix/openbsd_unveil.go b/unix/unveil_openbsd.go similarity index 98% rename from unix/openbsd_unveil.go rename to unix/unveil_openbsd.go index aebc2dc5..168d5ae7 100644 --- a/unix/openbsd_unveil.go +++ b/unix/unveil_openbsd.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build openbsd - package unix import (