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.3.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.4.0
Choose a head ref
  • 12 commits
  • 68 files changed
  • 7 contributors

Commits on Dec 12, 2022

  1. unix/linux: use Go 1.20rc1 to generate files

    Change-Id: I1bdf6c1d61a3a9835d2f6a7fd54b38a8a16efa16
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/456455
    Reviewed-by: Than McIntosh <thanm@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    tklauser authored and gopherbot committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    127c0dd View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2022

  1. unix: improve Sendmsg and Recvmsg documentation

    This clarifies these functions' behavior when the non-control data is
    empty but there is a control data present.
    
    It also makes clear the difference between Sendmsg, SendmsgN, and
    SendmsgBuffers, and between Recvmsg and RecvmsgBuffers.
    
    Fixes golang/go#56911
    
    Change-Id: I1e35659e66e493c192af7f5a426a316f6052475c
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/456816
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    dpifke authored and gopherbot committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    96e75de View commit details
    Browse the repository at this point in the history
  2. unix: add ClockGettime on *bsd and solaris

    The same wrapper is already implemented on linux and darwin.
    
    Change-Id: Ia986fdfc28767356451d157e53f11e8d9ca86f2c
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/456795
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    tklauser authored and gopherbot committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    cffae8e View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2022

  1. unix: offs2lohi should shift by bits, not bytes

    Fixes golang/go#57291
    
    Change-Id: I212ab8a9f47563d9c124a0f20c17df35d7aa8e6d
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/457315
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    ericlagergren authored and gopherbot committed Dec 15, 2022
    Configuration menu
    Copy the full SHA
    72f772c View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2022

  1. cpu: parse /proc/cpuinfo on linux/arm64 on old kernels when needed

    Updates tailscale/tailscale#5793
    Fixes golang/go#57336
    
    Change-Id: I4f8128bebcc58f265d447ecaaad2473aafa9131c
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/458315
    Reviewed-by: Michael Pratt <mpratt@google.com>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: David Chase <drchase@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    bradfitz authored and gopherbot committed Dec 20, 2022
    Configuration menu
    Copy the full SHA
    2204b66 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. unix: avoid allocations for common uses of Readv, Writev, etc.

    Fixes golang/go#57296
    
    Change-Id: Ifd57487122a590df467e97e2d35f388a58cc080d
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/457815
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Benny Siegert <bsiegert@gmail.com>
    Reviewed-by: Matt Layher <mdlayher@gmail.com>
    ericlagergren authored and gopherbot committed Dec 21, 2022
    Configuration menu
    Copy the full SHA
    3b1fc93 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2022

  1. unix: convert openbsd/mips64 to direct libc calls

    The current code has continued to work on OpenBSD, since it has been using
    syscall(2) via libc. However, the system call numbers are still hardcoded in
    golang.org/x/sys/unix. Various system call changes have been made in OpenBSD,
    resulting in changes to the system call numbers and arguments, which now
    fail when this package is used.
    
    Switch to calling various system calls directly via libc, rather than calling
    via libc using syscall(2).
    
    Unfortunately, this will no longer work on upstream Go since the changes
    needed to convert it to libc are still blocked pending review. This means
    that we're in a less than ideal situation where upstream Go openbsd/mips64
    does not work on any supported OpenBSD release (in fact has not since
    OpenBSD 6.8, which was EOL over a year ago), however golang.org/x/sys/unix
    is now unusable with the Go package that ships with supported releases via
    OpenBSD ports. It would seem that being able to actually use Go software on
    a supported OpenBSD release trumps maintaining compatibility with the
    unusable upstream Go source.
    
    Updates golang/go#36435
    
    Change-Id: Id8947cd0e4e05709e96c3d4478ac8789b924d416
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/459497
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    4a6f656c committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    7c6badc View commit details
    Browse the repository at this point in the history
  2. unix: remove Mclpool from openbsd types

    This struct was removed from the OpenBSD headers more than eight years
    ago (r1.157 of net/if.h).
    
    Change-Id: Ic2d1b3325dc5d00859584b3756a9f7c56b4ec417
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/459498
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    4a6f656c committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    2b11e6b View commit details
    Browse the repository at this point in the history
  3. unix: regen on OpenBSD 7.2

    Regenerate z{errors,sysctl,types} on OpenBSD 7.2 for all ports.
    
    Change-Id: I351f7b2e1504a8be764582897af64c8a50c49f06
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/459499
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    4a6f656c committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    3086868 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2022

  1. unix: support TIOCGETA on GNU/Hurd

    Add minimal support for GNU/Hurd to allow building third party packages
    which detect terminal support.
    
    Change-Id: Ia13fe8e9e4880e8ab062f9a2efb581320637f017
    GitHub-Last-Rev: f612efb
    GitHub-Pull-Request: #144
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/459895
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    sthibaul authored and gopherbot committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    b360406 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2023

  1. unix: gofmt hurd files after CL 459895

    As suggested by Dmitri.
    
    Change-Id: Ia42331fc7e7baa22a392e0b3a23485da61d12428
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/460155
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    tklauser authored and gopherbot committed Jan 1, 2023
    Configuration menu
    Copy the full SHA
    b751db5 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. unix: add Uvmexp and SysctlUvmexp for NetBSD

    NetBSD has both struct uvmexp (used internally) and struct uvmexp_sysctl
    (preferred for interfacing from user code). Expose the latter as type
    Uvmexp with the same interface as on OpenBSD.
    
    I am not sure if it makes sense to even have a name parameter for
    SysctlUvmexp, since the only valid value can be "vm.uvmext2".
    
    Change-Id: I40a743536c28e3fb7a54253768db35b1629fabfe
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/460156
    Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Benny Siegert <bsiegert@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    bsiegert committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    b60007c View commit details
    Browse the repository at this point in the history
Loading