]> Cypherpunks repositories - gostls13.git/commit
internal/poll, internal/syscall/unix, net, runtime: convert openbsd (except mips64...
authorTobias Klauser <tklauser@distanz.ch>
Fri, 26 Aug 2022 10:09:34 +0000 (12:09 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 31 Aug 2022 16:59:38 +0000 (16:59 +0000)
commit0d6a7f9d2eb2e5e9b96cd1b144d122f6eb5aac81
tree0a0d9741b6f3159a9cd38511445e6ebe0979c93c
parent59b15726d113324d0c91d8aae559e9fb7cb04495
internal/poll, internal/syscall/unix, net, runtime: convert openbsd (except mips64) to direct libc calls

Call libc wrappers directly rather than calling using syscall(2).

Updates golang/go#36435

Change-Id: I40be410c7472f7d89cbec2ebdc7c841c7726ca4a
Reviewed-on: https://go-review.googlesource.com/c/go/+/425637
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
14 files changed:
src/internal/poll/fcntl_libc.go
src/internal/poll/fcntl_syscall.go
src/internal/syscall/unix/at.go
src/internal/syscall/unix/at_fstatat.go
src/internal/syscall/unix/at_libc2.go [moved from src/internal/syscall/unix/at_darwin.go with 95% similarity]
src/internal/syscall/unix/getentropy_openbsd.go
src/internal/syscall/unix/getentropy_openbsd_mips64.go [new file with mode: 0644]
src/internal/syscall/unix/nonblocking.go
src/internal/syscall/unix/nonblocking_libc.go
src/net/fcntl_libc_test.go
src/net/fcntl_syscall_test.go
src/runtime/export_openbsd_test.go [new file with mode: 0644]
src/runtime/nbpipe_fcntl_libc_test.go
src/runtime/nbpipe_fcntl_unix_test.go