diff options
author | Changkun Ou <hi@changkun.de> | 2021-07-22 17:50:42 +0200 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2021-08-19 17:30:19 +0000 |
commit | 0e598e7da42aea47b6b9d52c4292f202368d2f19 (patch) | |
tree | fc57d2f99791cf7361c0cb44f33872397c706f13 /doc | |
parent | 91e2e3b9030440713b59dcc7dd9deae71b18d9fc (diff) | |
download | go-0e598e7da42aea47b6b9d52c4292f202368d2f19.tar.gz go-0e598e7da42aea47b6b9d52c4292f202368d2f19.zip |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.18.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/go1.18.html b/doc/go1.18.html index 2dc4c1427d..df4b56c49f 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -82,3 +82,20 @@ Do not send CLs removing the interior tags from such phrases. <p> TODO: complete this section </p> + +<dl id="syscall"><dt><a href="/pkg/syscall/">syscall</a></dt> + <dd> + <p><!-- CL 336550 --> + The new function <a href="/pkg/syscall/?GOOS=windows#SyscallN"><code>SyscallN</code></a> + has been introduced for Windows, allowing for calls with arbitrary number + of arguments. As results, + <a href="/pkg/syscall/?GOOS=windows#Syscall"><code>Syscall</code></a>, + <a href="/pkg/syscall/?GOOS=windows#Syscall6"><code>Syscall6</code></a>, + <a href="/pkg/syscall/?GOOS=windows#Syscall9"><code>Syscall9</code></a>, + <a href="/pkg/syscall/?GOOS=windows#Syscall12"><code>Syscall12</code></a>, + <a href="/pkg/syscall/?GOOS=windows#Syscall15"><code>Syscall15</code></a>, and + <a href="/pkg/syscall/?GOOS=windows#Syscall18"><code>Syscall18</code></a> are + deprecated in favor of <a href="/pkg/syscall/?GOOS=windows#SyscallN"><code>SyscallN</code></a>. + </p> + </dd> +</dl><!-- syscall -->
\ No newline at end of file |