diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-04-06 04:38:00 +0000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-04-06 05:04:47 +0000 |
| commit | 8455f3a3d5f2879e8574882978e7646db1ebabb5 (patch) | |
| tree | f66c9a1f05e23067c3488230271a7f3ec2ff0b44 /src/runtime/os1_linux_generic.go | |
| parent | fd2bb1e30ae2f489e05ec022a8457a680663c27d (diff) | |
| download | go-8455f3a3d5f2879e8574882978e7646db1ebabb5.tar.xz | |
os: consolidate os{1,2}_*.go files
Change-Id: I463ca59f486b2842f67f151a55f530ee10663830
Reviewed-on: https://go-review.googlesource.com/21568
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/os1_linux_generic.go')
| -rw-r--r-- | src/runtime/os1_linux_generic.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/runtime/os1_linux_generic.go b/src/runtime/os1_linux_generic.go deleted file mode 100644 index 50d6d6afb4..0000000000 --- a/src/runtime/os1_linux_generic.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build !mips64 -// +build !mips64le -// +build !s390x -// +build linux - -package runtime - -var sigset_all = sigset{^uint32(0), ^uint32(0)} - -func sigaddset(mask *sigset, i int) { - (*mask)[(i-1)/32] |= 1 << ((uint32(i) - 1) & 31) -} - -func sigdelset(mask *sigset, i int) { - (*mask)[(i-1)/32] &^= 1 << ((uint32(i) - 1) & 31) -} - -func sigfillset(mask *uint64) { - *mask = ^uint64(0) -} - -func sigcopyset(mask *sigset, m sigmask) { - copy((*mask)[:], m[:]) -} |
