pkg/fileutil: use fcntl syscall wrappers from golang.org/x/sys/unix (#12316)

Direct syscalls using syscall.Syscall(SYS_*, ...) should no longer be
used on darwin, see [1]. Instead, use the fcntl libSystem wrappers
provided by the golang.org/x/sys/unix package which implement the same
functionality.

[1] https://golang.org/doc/go1.12#darwin
This commit is contained in:
Tobias Klauser
2020-09-25 08:02:32 +02:00
committed by GitHub
parent 4136df7933
commit add86bbd1a
5 changed files with 19 additions and 17 deletions

1
go.mod
View File

@@ -42,6 +42,7 @@ require (
go.uber.org/zap v1.15.0
golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7
golang.org/x/sys v0.0.0-20200918174421-af09f7315aff
golang.org/x/text v0.3.3 // indirect
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2
google.golang.org/grpc v1.26.0