summaryrefslogtreecommitdiff
path: root/src/syscall/syscall_openbsd_386.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2016-07-18 22:00:45 -0400
committerAustin Clements <austin@google.com>2016-09-06 21:05:55 +0000
commit1b9499b06989d2831e5b156161d6c07642926ee1 (patch)
treed234d376074e30e9e315af495d2ed55cb86a2779 /src/syscall/syscall_openbsd_386.go
parent6dda7b2f5fb675a2747fea5ae020248245b8903f (diff)
downloadgo-git-1b9499b06989d2831e5b156161d6c07642926ee1.tar.gz
syscall: make Getpagesize return page size from runtime
syscall.Getpagesize currently returns hard-coded page sizes on all architectures (some of which are probably always wrong, and some of which are definitely not always right). The runtime now has this information, queried from the OS during runtime init, so make syscall.Getpagesize return the page size that the runtime knows. Updates #10180. Change-Id: I4daa6fbc61a2193eb8fa9e7878960971205ac346 Reviewed-on: https://go-review.googlesource.com/25051 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall/syscall_openbsd_386.go')
-rw-r--r--src/syscall/syscall_openbsd_386.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/syscall/syscall_openbsd_386.go b/src/syscall/syscall_openbsd_386.go
index ad5ae14bf8..c836a6fdf9 100644
--- a/src/syscall/syscall_openbsd_386.go
+++ b/src/syscall/syscall_openbsd_386.go
@@ -4,8 +4,6 @@
package syscall
-func Getpagesize() int { return 4096 }
-
func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
func NsecToTimespec(nsec int64) (ts Timespec) {