]> Cypherpunks.ru repositories - gostls13.git/commit
syscall: add SyscallN
authorChangkun Ou <hi@changkun.de>
Thu, 22 Jul 2021 15:50:42 +0000 (17:50 +0200)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 19 Aug 2021 17:30:19 +0000 (17:30 +0000)
commit0e598e7da42aea47b6b9d52c4292f202368d2f19
treefc57d2f99791cf7361c0cb44f33872397c706f13
parent91e2e3b9030440713b59dcc7dd9deae71b18d9fc
syscall: add SyscallN

This CL adds a new syscall.SyscallN API.

The proposal discussion also suggests the API should not only for
Windows but other platforms. However, the existing API set already
contain differences between platforms, hence the CL only implements
the Windows platform.

Moreover, although the API offers variadic parameters, the permitted
parameters remains up to a limit, which is selected as 42, and arguably
large enough.

Fixes #46552

Change-Id: I66b49988a304d9fc178c7cd5de46d0b75e167a4f
Reviewed-on: https://go-review.googlesource.com/c/go/+/336550
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Trust: Matthew Dempsky <mdempsky@google.com>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
doc/go1.18.html
src/runtime/export_windows_test.go
src/runtime/sys_windows_amd64.s
src/runtime/syscall_windows.go
src/runtime/syscall_windows_test.go
src/syscall/dll_windows.go