commit | f67ecc163a74fbeea4cb1db0a101dcd07201464a | [log] [tgz] |
---|---|---|
author | Tobias Klauser <tklauser@distanz.ch> | Sun Apr 29 09:29:05 2018 +0200 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Mon Apr 30 07:01:21 2018 +0000 |
tree | 77181dd0031b9d181fc31edd0772a150f8f6cffd | |
parent | cbbc999da32df943dac6cd71eb3ee39e1d7838b9 [diff] |
unix: use Fstatat for Stat on linux/amd64 The stat syscall is disallowed by Android's seccomp policy on linux/amd64. Use the fstatat syscall with AT_FDCWD and zero flags to achieve the same behavior. CL 109835 did the same for package syscall. Change-Id: Iaa7d0dbf17ade4803f59b4361973ce627bcb65b4 Reviewed-on: https://go-review.googlesource.com/110061 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.