mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
Alex copied this from a temporary thing I had written for the runtime package. In runtime, you can't really access other packages like syscall, so everything has to be very manual. But in x/sys, we can do things properly. So this reimplements the function in a more straight forward way. Change-Id: I1634904bb1e10f33252954ce02d4b17ae56592e5 Reviewed-on: https://go-review.googlesource.com/c/sys/+/298830 Trust: Jason A. Donenfeld <Jason@zx2c4.com> Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>