]> Cypherpunks repositories - gostls13.git/commit
syscall, cmd/go/internal/lockedfile/internal/filelock: add and use Flock on illumos
authorTobias Klauser <tklauser@distanz.ch>
Wed, 16 Sep 2020 20:15:13 +0000 (22:15 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 17 Sep 2020 06:20:06 +0000 (06:20 +0000)
commit7f24142b7b289df7e98ed3e1ccd673824dd1d0ee
tree493d5c0591413e9423d529c1c0e74e165a83e3ae
parentf5d59d0e382dc59195537a128fe9423a49a4cea8
syscall, cmd/go/internal/lockedfile/internal/filelock: add and use Flock on illumos

Copy the syscall wrapper from golang.org/x/sys/unix CL 255377 to provide
Flock on illumos and switch cmd/go/internal/lockedfile/internal/filelock
to use it.

Fixes #35618

Change-Id: I876a2b782329a988fa85361fb1ea58eb6f329af1
Reviewed-on: https://go-review.googlesource.com/c/go/+/255258
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go
src/cmd/go/internal/lockedfile/internal/filelock/filelock_unix.go
src/syscall/syscall_illumos.go [new file with mode: 0644]
src/syscall/types_illumos_amd64.go [new file with mode: 0644]