Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/sys
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.16.0
Choose a base ref
...
head repository: golang/sys
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.19.0
Choose a head ref
  • 17 commits
  • 54 files changed
  • 13 contributors

Commits on Jan 8, 2024

  1. unix: add more SECCOMP constants

    Update the SECCOMP regex to fetch more SECCOMP constants.
    
    Change-Id: I192ff7cb11fc38f0b0f08d6cba0a4f8649f9775e
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/553776
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Matthew Dempsky <mdempsky@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Matt Layher <mdlayher@gmail.com>
    florianl authored and gopherbot committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    0d9df52 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. unix: in TestDirent, make as many ReadDirent calls as are needed

    This CL just port CL 376334 from main repo with minor modification.
    
    Fixes golang/go#65015
    
    Change-Id: I327d33bde39a2fcb818e28bcb7ff524ca19c4a38
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/554875
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Run-TryBot: M Zhuo <mzh@golangcn.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    mengzhuo committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    f69d32a View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. windows: fix parsing of non-ASCII entries in token.Environ

    Fixes golang/go#65055, the unexpected behavior of token.Environ in parsing entries containing runes larger than 2 bytes in size
    
    Change-Id: I753d2c605e3a2d7a1d90cd18601d6b918f0d3f7a
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/556895
    Auto-Submit: Bryan Mills <bcmills@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
    kmirzavaziri authored and gopherbot committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    c3fa2b8 View commit details
    Browse the repository at this point in the history
  2. windows: build env_windows_test.go only go Go 1.21 and above

    This test imports the "slices" package, which did not exist in Go 1.20.
    The test passes on Go 1.21 and above, and the behavior of the function
    under test is unlikely to vary by platform, so it doesn't seem worth
    refactoring the test to work with older releases.
    
    Updates golang/go#65055.
    Fixes golang/go#65223.
    
    Change-Id: I5f32106d6057b779579a87750633bc57f97fe152
    Cq-Include-Trybots: luci.golang.try:x_sys-go1.20-windows-386,x_sys-go1.20-windows-amd64-longtest
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/557975
    Auto-Submit: Bryan Mills <bcmills@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Bryan C. Mills authored and gopherbot committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    b3ce6a3 View commit details
    Browse the repository at this point in the history
  3. unix/linux: update Linux kernel to 6.7

    Change-Id: Ie0cc6803af5b3ede657ce516e657b0356cd91175
    GitHub-Last-Rev: 255f0eb
    GitHub-Pull-Request: #185
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/554555
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Run-TryBot: Bryan Mills <bcmills@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    mauri870 authored and tklauser committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    5710a32 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. unix: move mksyscall regexp to package level variables

    Avoid compiling regular expressions for each loop iteration, rather
    declare them as package level variables so they are only compiled once.
    
    Change-Id: I5c29a44e986ef8d97326134e8fc8e983671e68d8
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/542955
    Reviewed-by: Joel Sing <joel@sing.id.au>
    Run-TryBot: Joel Sing <joel@sing.id.au>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    joshuasing authored and 4a6f656c committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    bef1bd8 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. windows: support nil done parameter in ReadFile and WriteFile

    Win32 defines the `done` param as optional for ReadFile and WriteFile
    functions. We should support this case too.
    
    Fixes golang/go#65365.
    
    Change-Id: I961ff66a63d3a8ffa5560b6dab21fbd4ac9817ae
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/559375
    Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    qmuntal committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    628365d View commit details
    Browse the repository at this point in the history
  2. Revert "windows: support nil done parameter in ReadFile and WriteFile"

    This reverts CL 559375.
    
    Reason for revert: introduced a different regression (golang/go#65378).
    
    Fixes golang/go#65378.
    Updates golang/go#65365.
    
    Change-Id: Ie2a602415913b04b9d9b65fee5c6a54c0267b35e
    Cq-Include-Trybots: luci.golang.try:x_sys-gotip-windows-amd64-longtest
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/559502
    Auto-Submit: Bryan Mills <bcmills@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    Bryan Mills authored and gopherbot committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    511ec84 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. 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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    qmuntal committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    914b96c View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2024

  1. unix: update IFLA and NETKIT constants with Linux kernel 6.7

    Change-Id: I5034ceb384f6a4945a969b00ca420c80aa03d941
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/561575
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: David Chase <drchase@google.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    florianl authored and gopherbot committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    2f2cc5d View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. unix: suppress ENOMEM errors from sysctl's implementing Uname(uname *…

    …Utsname) on FreeBSD due to truncated fields.
    
    Fixes golang/go#65585.
    
    Change-Id: I7e529eaef224be977e3b0c20d071802f49b297e7
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/562617
    Reviewed-by: Than McIntosh <thanm@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    paulzhol authored and gopherbot committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    6b4eab5 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. unix: drop go version tags for unsupported versions

    go.mod specifies go 1.18. Drop go1.n version tags for older, unsupported
    versions.
    
    Change-Id: I8563bd2cc8e86bd560a45b885a9aa2e6bcc95c47
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/559415
    Reviewed-by: Than McIntosh <thanm@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    tklauser authored and gopherbot committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    7ff74af View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. 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 <thanm@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    IlyaHanov authored and gopherbot committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    360f961 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. unix: expose mmap calls on z/OS

    The calls `Mmap` and `Munmap` were removed for z/OS.
    Syscall removed occurred in: 508397
    
    This change exposes them in a z/OS specific file
    (to remove the accidental deletion of them in future refactors of the APIs for `unix-like` OSes).
    
    Change-Id: Ice0cabfb4547cab2ffa7130b7c26d9cc38233afe
    GitHub-Last-Rev: e7b4680
    GitHub-Pull-Request: #186
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/569359
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    MacMalainey authored and gopherbot committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    4be02d3 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. x/sys/windows: add func windows.DisconnectNamedPipe(handle Handle) (e…

    …rr error)
    
    Fixes golang/go#66234
    
    Change-Id: I1e4a94e1ca8c01a29bab18e0bf12238c511fe1c6
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/570435
    Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    peter-hoogendijk authored and qmuntal committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    95f07ec View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. windows: add serial comm functions

    Serial ports are still widely used to communicate with a large range of
    devices.
    
    This change adds the remaining functions described in "Serial
    Communications in Win32", enabling Go applications and libraries to be
    written that support the full set of serial port functionality on
    Windows.
    
    x/sys/unix already has equivalent functionality through termios.
    
    See https://learn.microsoft.com/en-us/previous-versions/ms810467(v=msdn.10).
    
    Change-Id: I57f9ed6b7dbcc2331f740bd95b6483f141b0ad6f
    GitHub-Last-Rev: 0a5a744
    GitHub-Pull-Request: #187
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/572295
    Reviewed-by: David Chase <drchase@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    twpayne authored and odeke-em committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    1a50d97 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. 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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    twpayne authored and gopherbot committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    cabba82 View commit details
    Browse the repository at this point in the history
Loading