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.18.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.22.0
Choose a head ref
  • 19 commits
  • 89 files changed
  • 14 contributors

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

Commits on Apr 11, 2024

  1. unix: update to Linux kernel 6.4

    Change-Id: I88b628a97f5cfb76083968be2ff2e9857ce56557
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/577975
    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>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    tklauser authored and gopherbot committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    27dc90b View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. windows: drop go version tags for unsupported versions

    go.mod specifies go 1.18. Drop go1.n version tags for older, unsupported
    versions.
    
    Change-Id: I7a23a9f4ba558999ac417b7b4647fa1061d69c06
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/566038
    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>
    Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    tklauser authored and gopherbot committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    9a28524 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. cpu: add support for sve2 detection

    Fixes golang/go#66952
    
    Change-Id: Idaf2ce3b09baf33cf29079677a83a51ea9c4b255
    GitHub-Last-Rev: eac0088
    GitHub-Pull-Request: #193
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/580655
    Reviewed-by: Ian Lance Taylor <iant@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: David Chase <drchase@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    mhr3 authored and gopherbot committed May 3, 2024
    Configuration menu
    Copy the full SHA
    7758090 View commit details
    Browse the repository at this point in the history
  2. 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 <drchase@google.com>
    Reviewed-by: Bill O'Farrell <billotosyr@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    dustin-ward authored and gopherbot committed May 3, 2024
    Configuration menu
    Copy the full SHA
    7d69d98 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. unix: add types for SOCK_DIAG

    Change-Id: Ifcc90735b6e42b6c9971d4ba15c31b8169e005fe
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/579996
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    florianl authored and gopherbot committed May 6, 2024
    Configuration menu
    Copy the full SHA
    6dfb94e View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. windows: add net user enum

    In the go windows package, you can get user information by using
    `NetUserGetInfo` along with a specified level. However, there is
    no way to get a list of the users.
    The only options are to
    1. know the users,
    2. brute force users, or
    3. use an external tool or command (`net users`).
    
    I suggest adding a function that implements the windows api for
    `NetUserEnum`. This will allow a built in way to enumerate
    users and follow the standard.
    
    A side note is that I used `buf **byte` because
    it is how the others are done, but using `buf *byte`
    works just as well.
    
    Change-Id: Ifcc916659eb1d796175cd18acd2e81f2661bfcd2
    GitHub-Last-Rev: 3d01bca
    GitHub-Pull-Request: #190
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/578475
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Auto-Submit: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: David Chase <drchase@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    JoeyShapiro authored and gopherbot committed May 9, 2024
    Configuration menu
    Copy the full SHA
    f34bb9f View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. unix: update to Linux kernel 6.9

    Change-Id: Ib7bd9dabfcb8234c522ec357d32bfa3e87af53db
    GitHub-Last-Rev: 4bea205
    GitHub-Pull-Request: #194
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/585135
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    mauri870 authored and gopherbot committed May 13, 2024
    Configuration menu
    Copy the full SHA
    92f3ad6 View commit details
    Browse the repository at this point in the history
  2. unix/linux: update glibc to 2.39

    Change-Id: I5c2b996180073ca10f1b7c86201a19eaf0557e43
    GitHub-Last-Rev: a092f56
    GitHub-Pull-Request: #195
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/585136
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    mauri870 authored and gopherbot committed May 13, 2024
    Configuration menu
    Copy the full SHA
    6943ab6 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. 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 <tobias.klauser@gmail.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    mengzhuo authored and tklauser committed May 17, 2024
    Configuration menu
    Copy the full SHA
    673e0f9 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. windows/svc: do not pass theService to windows.RegisterServiceCtrlHan…

    …dlerEx
    
    windows.RegisterServiceCtrlHandlerEx context parameter is uintptr, so it
    is unsafe to pass pointers in that parameter. Use theService global
    variable in ctlHandler function instead.
    
    Fixes golang/go#67437
    
    Change-Id: I84c910eaa354603c2a5114421cd61788cb40b86f
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/591475
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Pratt <mpratt@google.com>
    Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
    Reviewed-by: David Chase <drchase@google.com>
    alexbrainman committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    348425a View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. windows: add GetAce Windows API

    GetAce obtains a pointer to an access control entry (ACE) in an
    discretionary access control list (DACL), which controls access to
    an object.
    
    Adds the ACE_HEADER and ACCESS_ALLOWED_ACE structs.
    Adds GetEntriesFromACL function which returns an array of ACEs from the
    given ACL if no errors have been encountered.
    
    References:
    
    - https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-ace_header
    - https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-access_allowed_ace
    - https://learn.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-getace
    
    Fixes golang/go#66850
    
    Change-Id: I98306ff7e947e586a58d563d364169a2555492f4
    GitHub-Last-Rev: d14ca7f
    GitHub-Pull-Request: #191
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/578976
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Damien Neil <dneil@google.com>
    Reviewed-by: David Chase <drchase@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    claudiubelu authored and neild committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    7670087 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. unix: add unsafe mmap, munmap, mremap

    Fixes golang/go#56123
    
    Change-Id: I63a7a6fb3a5b1bb556ac19d76a1e0b04a03ebcfa
    GitHub-Last-Rev: 39dbc8e
    GitHub-Pull-Request: #197
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/592415
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    ncruces authored and gopherbot committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    daa2394 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. unix: fix MremapPtr test failing on NetBSD

    NetBSD apparently doesn't allow remapping into used address space.
    This means that the test that uses mremap to move a mmapped page
    into a new address should first mmap (to reserve)
    then munmap (to free) the destination.
    
    Fixes golang/go#68180
    
    Change-Id: If66b67e7166ca4dc4331a8cfc3e3a285416e9849
    GitHub-Last-Rev: 92058c2
    GitHub-Pull-Request: #198
    Cq-Include-Trybots: luci.golang.try:x_sys-gotip-netbsd-amd64
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/594756
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Joedian Reid <joedian@google.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    ncruces authored and gopherbot committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    a0ef40a View commit details
    Browse the repository at this point in the history
  2. unix: fix MmapPtr test failing on OpenBSD

    OpenBSD apparently doesn't allow unmapping address space if part of the region is already unmapped.
    This tweaks the test so that munmapping twice no longer happens.
    
    Fixes golang/go#68181
    
    Change-Id: I588255f5e10ec015dbb7188eac79cee6be570680
    GitHub-Last-Rev: 2535abd
    GitHub-Pull-Request: #199
    Cq-Include-Trybots: luci.golang.try:go1.22-openbsd-amd64
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/595095
    TryBot-Bypass: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@golang.org>
    ncruces authored and gopherbot committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    c892bb7 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. 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 <iant@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    espadolini authored and gopherbot committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    faed7ec View commit details
    Browse the repository at this point in the history
Loading