Skip to content
Snippets Groups Projects
Commit fd59c87e authored by Joel Sing's avatar Joel Sing
Browse files

syscall: provide and use fcntlPtr for all BSD platforms

Provide fcntlPtr for all BSD platforms, then use this for FcntlFlock.
This reduces darwin and openbsd specific code, as well as avoiding
the use of an indirect system call on OpenBSD.

Updates #63900

Change-Id: I5c701f0d8413fab5477b9e21381395621d1fb6d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/540018


Reviewed-by: default avatarBryan Mills <bcmills@google.com>
Reviewed-by: default avatarHeschi Kreinick <heschi@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: default avatarJosh Rickmar <jrick@zettaport.com>
parent 9d836d41
No related branches found
No related tags found
No related merge requests found
Showing
with 158 additions and 48 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment