diff options
author | Russ Cox <rsc@golang.org> | 2014-09-16 10:22:15 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-16 10:22:15 -0400 |
commit | d2574e2adb658b46ea2d8e22b3195cc14da1affe (patch) | |
tree | 58810c5dfaf8842fa3584530cc0c8ccfa1be6b62 /src/runtime/os_freebsd.go | |
parent | 8d61334dd5b08c8076e343aa33197bd219cdf922 (diff) | |
download | go-d2574e2adb658b46ea2d8e22b3195cc14da1affe.tar.gz go-d2574e2adb658b46ea2d8e22b3195cc14da1affe.zip |
runtime: remove duplicated Go constants
The C header files are the single point of truth:
every C enum constant Foo is available to Go as _Foo.
Remove or redirect duplicate Go declarations so they
cannot be out of sync.
Eventually we will need to put constants in Go, but for now having
them be out of sync with C is too risky. These predate the build
support for auto-generating Go constants from the C definitions.
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/141510043
Diffstat (limited to 'src/runtime/os_freebsd.go')
-rw-r--r-- | src/runtime/os_freebsd.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/os_freebsd.go b/src/runtime/os_freebsd.go index 96964f1e1e..59708049c8 100644 --- a/src/runtime/os_freebsd.go +++ b/src/runtime/os_freebsd.go @@ -15,5 +15,3 @@ func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, nds func getrlimit(kind int32, limit unsafe.Pointer) int32 func raise(sig int32) func sys_umtx_op(addr unsafe.Pointer, mode int32, val uint32, ptr2, ts unsafe.Pointer) int32 - -const stackSystem = 0 |