Tags: golang/sys
Tags
windows: add SIO_UDP_NETRESET constant In order to get BSD like behavior with regard to ICMP, it is necessary to set SIO_UDP_NETRESET as well as SIO_UDP_CONNRESET. Updates golang/go#68614 Change-Id: Ibdf5b6ea6bc08a9d3a0aeac9037864670cf765c0 Reviewed-on: https://go-review.googlesource.com/c/sys/+/609295 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Funda Secgin <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Alex Brainman <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
unix: add missing ETHTOOL_FLAG_ constants Some constants were removed in CL 600516 that included changes for the Linux kernel 6.10. This kernel version moved C defines to an enum ethtool_header_flags that was not picked up by the mkall.sh script. For enums, there is a perl script that needs to be run manually, and the output must be added by hand to the list of constants in unix/linux/types.go. See https://elixir.bootlin.com/linux/v6.10.3/source/include/uapi/linux/ethtool_netlink.h#L120 Fixes golang/go#68761 Change-Id: Idb189886d257d0fe66a4e832757a469e17f86c34 GitHub-Last-Rev: 08b8ef5 GitHub-Pull-Request: #212 Reviewed-on: https://go-review.googlesource.com/c/sys/+/604098 Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
unix: provide Mount on openbsd Note that Mount is already provided for both darwin and linux, with differing signatures. Change-Id: Iaddae1769e436aad5125b78e31b2d62d22e45b16 Reviewed-on: https://go-review.googlesource.com/c/sys/+/595735 Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
unix: add PthreadChdir and PthreadFchdir on darwin Fixes golang/go#68226 Change-Id: I92052e2319e4edde21b5e1e47ddb5b261d81448a GitHub-Last-Rev: bc02d6d GitHub-Pull-Request: #201 Reviewed-on: https://go-review.googlesource.com/c/sys/+/595677 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
unix: skip ethtool driver test for busy interface This CL skips IoctlGetEthtoolDrvinfo on busy interface tests since ethtool getting the same result too. Fixes golang/go#67350 Change-Id: Ia65678e3caab8a9dd42b9cdb8e4cb7f7f0b476da Reviewed-on: https://go-review.googlesource.com/c/sys/+/586435 Reviewed-by: Tobias Klauser <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
unix: extend support for z/OS This change syncs the IBM internal version of sys/unix with the public repository. There are a variety of new syscalls and const definitions that have been accumulated over the past few years to support developers using Go on the platform. Old simulations of calls like 'epoll' and 'fstatfs' have been replaced with their real counterparts. The zos/s390x syscalls also have extensive trampolining to handle zos systems that might not have support for some of these new system calls. Closes golang/go#67071 Change-Id: I973d9e0abca2b05365308cf2b890438e50ae5957 Reviewed-on: https://go-review.googlesource.com/c/sys/+/582035 Reviewed-by: David Chase <[email protected]> Reviewed-by: Bill O'Farrell <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
windows: use uint32 for serial comm flags for consistency This is a follow-up to https://go-review.googlesource.com/c/sys/+/572295 and specifically the comment https://go-review.googlesource.com/c/sys/+/572295/comment/a00e1a2e_e3b01666/. All other structs and methods us uint32 in golang.org/x/sys/windows for flag bitmasks, so make the serial communication structs use uint32 to be consistent with the rest of the package. As a side effect the DTR_CONTROL_* and RTS_CONTROL_* constants are updated to reflect the positions of the bits in the 32-bit flags. Change-Id: Ie19774a8ef5411d7df1e5b0d36806aa1d401fa86 GitHub-Last-Rev: bc93d94 GitHub-Pull-Request: #189 Reviewed-on: https://go-review.googlesource.com/c/sys/+/575635 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Alex Brainman <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
unix: add API for fsconfig system call Fixes golang/go#59537 Change-Id: I8d806ace3adad423c633813455d8f758706cee1d Reviewed-on: https://go-review.googlesource.com/c/sys/+/484995 Reviewed-by: Than McIntosh <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
windows: support ill-formed UTF-16 in UTF16PtrToString UTF16PtrToString does not support ill-formed UTF-16 because it uses utf16.Decode, which expects well-formed UTF-16. This CL updates the UTF16PtrToString implementation to use UTF16ToString instead of utf16.Decode, which supports ill-formed UTF-16 since go1.21 via syscall.UTF16ToString. Change-Id: Ifb72b6d38a8c08ad90ec6a47eed05fc3739500a1 Reviewed-on: https://go-review.googlesource.com/c/sys/+/560355 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
windows: add SetFileValidData Fixes golang/go#61834 Change-Id: Iaff01f5662aa2309e8ac41b346e0d3a42d28af91 Reviewed-on: https://go-review.googlesource.com/c/sys/+/517575 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alex Brainman <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Quim Muntal <[email protected]> Reviewed-by: Quim Muntal <[email protected]> Reviewed-by: Keith Randall <[email protected]>
PreviousNext