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

View File

@@ -369,7 +369,7 @@
]
},
{
"project": "golang.org/x/sys/unix",
"project": "golang.org/x/sys",
"licenses": [
{
"type": "BSD 3-clause \"New\" or \"Revised\" License",