aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql_test.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2019-12-20 23:34:23 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2019-12-31 12:11:24 +0000
commitbbd25d26c0a86660fb3968137f16e74837b7a9c6 (patch)
treee3d5b9963deaf74ac6945bbe9e120f3878bfe926 /src/database/sql/sql_test.go
parentaa175a196d74f2788ec3d02b990487f7ca2af5b0 (diff)
downloadgo-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/sql_test.go')
0 files changed, 0 insertions, 0 deletions