]> Cypherpunks repositories - gostls13.git/commit
internal/poll, internal/syscall/unix, net: move and export fcntl syscall wrapper
authorTobias Klauser <tklauser@distanz.ch>
Wed, 17 May 2023 07:57:34 +0000 (09:57 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 18 May 2023 09:15:25 +0000 (09:15 +0000)
commit27906bb74a0bb7a684b89b92d813e52be8608991
tree3d6a69a4e87a47ddbe5d5f60d0d4ca7d728d1643
parent6ed847431709c673adbb783d3bbc3d75e4df590c
internal/poll, internal/syscall/unix, net: move and export fcntl syscall wrapper

This will allow to use the fcntl syscall in packages other than
internal/poll.

For #60181

Change-Id: I76703766a655f2343c61dad95faf81aad58e007f
Reviewed-on: https://go-review.googlesource.com/c/go/+/494916
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
14 files changed:
src/internal/poll/fcntl_libc.go [deleted file]
src/internal/poll/fcntl_syscall.go [deleted file]
src/internal/poll/fcntl_wasm.go [deleted file]
src/internal/poll/fd_fsync_darwin.go
src/internal/poll/fd_unix.go
src/internal/poll/splice_linux.go
src/internal/syscall/unix/fcntl_linux_32bit.go [deleted file]
src/internal/syscall/unix/fcntl_unix.go [new file with mode: 0644]
src/internal/syscall/unix/fcntl_wasm.go [new file with mode: 0644]
src/internal/syscall/unix/nonblocking.go [deleted file]
src/internal/syscall/unix/nonblocking_unix.go [moved from src/internal/syscall/unix/nonblocking_libc.go with 58% similarity]
src/net/fcntl_libc_test.go [deleted file]
src/net/fcntl_syscall_test.go [deleted file]
src/net/unixsock_readmsg_test.go