diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2019-12-20 23:34:23 +0100 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2019-12-31 12:11:24 +0000 |
| commit | bbd25d26c0a86660fb3968137f16e74837b7a9c6 (patch) | |
| tree | e3d5b9963deaf74ac6945bbe9e120f3878bfe926 /src/database/sql | |
| parent | aa175a196d74f2788ec3d02b990487f7ca2af5b0 (diff) | |
| download | go-bbd25d26c0a86660fb3968137f16e74837b7a9c6.tar.xz | |
internal/poll: use correct fcntl implementations
Use the libc fcntl (via syscall.fcntl) on aix and solaris like it is
already done for darwin.
For the syscall-based fcntl implementation use FcntlSyscall from
internal/syscall/unix in order to get fcntl64 on 32-bit Linux
systems.
On aix, fcntl with F_DUPFD_CLOEXEC is not supported. Thus, defined
F_DUPFD_CLOEXEC = 0 in the syscall package and check its value before
calling fcntl(fd, syscall.F_DUPFD_CLOEXEC, 0).
On js/wasm, fcntl is not supported thus let its implementation return
ENOSYS directly.
Updates #36211
Change-Id: I96a2ea79e5c4eed2fefd94d0aefd72c940825682
Reviewed-on: https://go-review.googlesource.com/c/go/+/212278
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
