3 Commits

Author SHA1 Message Date
Tobias Klauser
74e833b572 Use madvise syscall wrapper from golang.org/x/sys/unix
Direct syscalls using syscall.Syscall(SYS_*, ...) should no longer be
used on darwin, see [1]. Instead, use the madvise syscall wrapper
provided by the golang.org/x/sys/unix package for all unix platforms.
This implement the same functionality.

[1] https://golang.org/doc/go1.12#darwin

As suggested by @ptabor in https://github.com/etcd-io/etcd/pull/12316#issuecomment-698193671
2020-09-24 11:58:10 +02:00
Josh Rickmar
543c40ab41 Fix unsafe pointer conversions caught by Go 1.14 checkptr 2020-03-18 21:18:39 -04:00
Tom Payne
e65d4d5d27 add go.mod 2019-05-09 20:03:52 -07:00