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.10.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.12.0
Choose a head ref
  • 15 commits
  • 58 files changed
  • 11 contributors

Commits on Jul 13, 2023

  1. unix: add Mremap for netbsd

    Fixes golang/go#60409
    
    Change-Id: I2d872a1a6fb63c27ab3753deff370e1c2f752bdd
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/508397
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Benny Siegert <bsiegert@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    tklauser authored and gopherbot committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    3fead03 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. windows: remove repetitive words

    Change-Id: I9c944eca6117b1039f0c5287706cb447b75c8cbd
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/509835
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    cuishuang authored and gopherbot committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    706fa98 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2023

  1. unix: fix last argument of pselect6 on linux

    On Linux, the last argument of pselect6 system call is **not** a
    sigseg_t * pointer, but instead it is a structure of the form:
    
        struct {
            const sigset_t *ss;     /* Pointer to signal set */
            size_t          ss_len; /* Size (in bytes) of object pointed
        };
    
    See man 2 pselect6.
    
    Fixes #61251
    
    Change-Id: Id0aa122a77796713bc6d624dc395d396fbc0c5e2
    GitHub-Last-Rev: cb3c6d7
    GitHub-Pull-Request: #167
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/510195
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    mauri870 authored and gopherbot committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    25d0004 View commit details
    Browse the repository at this point in the history
  2. all: fix some typos

    Change-Id: Id4bf4ce8aee8b98baa2f1a9c62a72a9554f7d557
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/510595
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Run-TryBot: shuang cui <imcusg@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    cuishuang authored and gopherbot committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    c406141 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. unix: add more block device ioctl numbers

    This adds a few additional ioctl numbers for performing various block
    device operations.
    
    Change-Id: I1dc836f4017bbc175b2dee759fece728f1caa010
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/511597
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Run-TryBot: Bryan Mills <bcmills@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    lorenz authored and gopherbot committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    ad7130c View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. unix: retry fetching of lists through sysctl if the size changes

    On macOS, the SysctlKinfoProcSlice() function may be used to fetch the contents of the process table. As the process table may grow between the first and second call to sysctl(), the second call may fail with ENOMEM. In that case we simply need to retry.
    
    Change-Id: I40229653ed383603c33762f37b0dc2e7de47bcb6
    GitHub-Last-Rev: b63b6b8
    GitHub-Pull-Request: #169
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/513036
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Matthew Dempsky <mdempsky@google.com>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    EdSchouten authored and gopherbot committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    70f4e40 View commit details
    Browse the repository at this point in the history
  2. unix: add riscv_hwprobe for riscv64

    The riscv_hwprobe system call was introduced in Linux 6.4 and allows
    the caller to determine a number of interesting pieces of information
    about the underlying RISC-V CPUs, e.g., which extensions they support
    and whether they allow fast unaligned memory accesses.  For more information
    please see:
    
    https://docs.kernel.org/riscv/hwprobe.html
    
    We also update linux/mksysnum.go to ensure that the generated syscall constants
    written to the zsysnum_linux_*.go files are always sorted by their syscall numbers
    in ascending order.
    
    Updates golang/go#61416
    
    Change-Id: Iedb0a86adb65faac9061b9a5969ffa09eb5b303a
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/510795
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Matthew Dempsky <mdempsky@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    markdryan authored and gopherbot committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    104d401 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. windows: add TimeBeginPeriod and TimeEndPeriod syscalls

    Updates golang/go#44343
    Fixes golang/go#61723
    
    Change-Id: I920f2fad6b3a2a9ba67ff2fafea4319644a0bc8c
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/515915
    Reviewed-by: qiulaidongfeng <2645477756@qq.com>
    Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    qmuntal committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    60ecf13 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. unix: add SchedSetAttr and SchedGetAttr for Linux

    Add wrappers for sched_getattr(2) and sched_setattr(2), as well as
    various SCHED_ values usable for these.
    
    The kludge in linux/types.go is needed so we can include both
    linux/sched/types.h (for struct sched_attr) and sched.h (for a few
    defines from include/bits/cpu-set.h).
    
    Unfortunately, they both define struct sched_param, thus the need to
    mask one of the definitions.
    
    Change-Id: I3e13cf49ccef7ae81a75d33826d18de84a52106d
    Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/516756
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    kolyshkin authored and gopherbot committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    ee57887 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. unix: avoid setting O_NONBLOCK needlessly by checking flags beforehand

    Change-Id: I227118221df469a677f3ff140ca7b94acb7f9571
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/517576
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    Run-TryBot: Andy Pan <panjf2000@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    panjf2000 authored and gopherbot committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    552c4e8 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. cpu: add support for amx detection

    Added detection for x86 AMX,
    including AMX-Tile, AMX-INT8 and AMX-BF16
    instruction sets.
    
    Change-Id: Ib3d663430b64d46b46b22bdd05d40f1992e37ee0
    GitHub-Last-Rev: 7986ed6
    GitHub-Pull-Request: #170
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/516815
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    anton-kuklin authored and gopherbot committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    eabbd5c View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. cpu: remove repetitive word

    Change-Id: I6dbed409b549ab2cfc862094f19373816b7c0859
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/519076
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    cuishuang authored and gopherbot committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    7023367 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. windows: use SyscallN in mkwinsyscall

    The mkwinsyscall command has a hard limit of 15 on the
    number of syscall arguments. Windows has several system
    calls with more than 15 arguments, for example CreateFontPackage
    has 18 arguments.
    
    If the number of arguments is higher than 15 we use SyscallN.
    
    Fixes golang/go#57914
    
    Change-Id: I4205e779a960ae10c0778de7876154e0d7ec00a1
    GitHub-Last-Rev: 1f1e96f
    GitHub-Pull-Request: #171
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/518995
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
    mauri870 authored and gopherbot committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    ad02017 View commit details
    Browse the repository at this point in the history
  2. windows: don't check non-existent return code in GetStartupInfo

    Same as CL 520275 did in package syscall.
    
    For golang/go#31316
    
    Change-Id: Ie9d8fed7f40b9e562534d5e91488b4ba1ac44f34
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/520295
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    tklauser authored and gopherbot committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    e8190d9 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2023

  1. unix/linux: update to gcc 13.2.0, qemu 8.0.3 for loong64 and and Go 1…

    ….21.0 for all
    
    Running `GOOS=linux GOARCH={amd64,arm64,loong64,mips64le,riscv64} ./mkall.sh`
    produces no changes, as expected.
    
    Update Loong64's cross toolchain to support for the ELF psABI v2.0 relocs [1].
    
    Updates #58784.
    
    [1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html
    
    Change-Id: I676893b934d8cfc30b9f3702fc92a5ab82f7f116
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/483455
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Meidan Li <limeidan@loongson.cn>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    abner-chenc authored and gopherbot committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    5154691 View commit details
    Browse the repository at this point in the history
Loading