From: Michael Pratt 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() {
- 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.