]> Cypherpunks.ru repositories - gostls13.git/commit
runtime,syscall: convert syscall on openbsd/amd64 to libc
authorJoel Sing <joel@sing.id.au>
Sun, 15 Nov 2020 17:47:56 +0000 (04:47 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 26 Jan 2021 07:10:57 +0000 (07:10 +0000)
commit8634a234df2a9e93ed1de58bf59d2eb843d8f464
treea7df86fe6b54bf9a72820ab6877dbd3b658b72d2
parent1d5e14632edc2ba76156c8a771a2a1a5c5387326
runtime,syscall: convert syscall on openbsd/amd64 to libc

Convert the syscall package on openbsd/amd64 to use libc rather than performing
direct system calls.

Updates #36435

Change-Id: Ieb5926a91ed34f7c722e3667004ec484c86804ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/270380
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
19 files changed:
src/runtime/sys_openbsd3.go [new file with mode: 0644]
src/runtime/sys_openbsd_amd64.s
src/syscall/asm9_unix1_amd64.s
src/syscall/asm_openbsd_amd64.s [new file with mode: 0644]
src/syscall/asm_unix_amd64.s
src/syscall/exec_bsd.go
src/syscall/exec_libc2.go [moved from src/syscall/exec_darwin.go with 99% similarity]
src/syscall/exec_unix.go
src/syscall/mkall.sh
src/syscall/mkasm.go [new file with mode: 0644]
src/syscall/mkasm_openbsd.go [moved from src/syscall/mkasm_darwin.go with 51% similarity]
src/syscall/mksyscall.pl
src/syscall/syscall_openbsd.go
src/syscall/syscall_openbsd1.go [new file with mode: 0644]
src/syscall/syscall_openbsd_libc.go [new file with mode: 0644]
src/syscall/zsyscall_darwin_amd64.s
src/syscall/zsyscall_darwin_arm64.s
src/syscall/zsyscall_openbsd_amd64.go
src/syscall/zsyscall_openbsd_amd64.s [new file with mode: 0644]