From: Michael Pratt Date: Mon, 11 Dec 2023 20:03:39 +0000 (-0500) Subject: doc/go1.22: document syscall changes X-Git-Tag: go1.22rc1~44 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=78dcb5327a45a6a9cd7829dbbf62ad853c60793d;p=gostls13.git doc/go1.22: document syscall changes For #61422. Change-Id: I976b8cc14893b91e5140c7b53d0773bca57cb19d Reviewed-on: https://go-review.googlesource.com/c/go/+/548936 LUCI-TryBot-Result: Go LUCI Auto-Submit: Michael Pratt Reviewed-by: Michael Knyszek --- diff --git a/doc/go1.22.html b/doc/go1.22.html index 631184a0e8..0b222a2e49 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -655,6 +655,10 @@ defer func() { IO_REPARSE_TAG_MOUNT_POINT reparse points.

+

+ On Windows, passing O_SYNC to OpenFile now causes write operations to go directly to disk, equivalent to O_SYNC on Unix platforms. +

+

TODO: https://go.dev/issue/58808: arrange zero-copy of os.File and TCPConn to UnixConn

@@ -809,15 +813,18 @@ defer func() {
syscall

- TODO: https://go.dev/issue/60797: undeprecate + The syscall package has been frozen since Go 1.4 and was marked as deprecated in Go 1.11, causing many editors to warn about any use of the package. + However, some non-deprecated functionality requires use of the syscall package, such as the os/exec.Cmd.SysProcAttr field. + To avoid unnecesary complaints on such code, the syscall package is no longer marked as deprecated. + The package remains frozen to most new functionality, and new code remains encouraged to use golang.org/x/sys/unix or golang.org/x/sys/windows where possible.

- TODO: https://go.dev/cl/520266: syscall: add support to get pidfd from ForkExec on Linux + On Linux, the new SysProcAttr.PidFD field allows obtaining a PID FD when starting a child process via StartProcess or os/exec.

- TODO: https://go.dev/cl/541015: syscall: support O_SYNC flag for os.OpenFile on windows + On Windows, passing O_SYNC to Open now causes write operations to go directly to disk, equivalent to O_SYNC on Unix platforms.