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.8.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.10.0
Choose a head ref
  • 18 commits
  • 54 files changed
  • 13 contributors

Commits on May 4, 2023

  1. windows/svc: use separate (and more descriptive) service names in tests

    Notably, the DisplayName field was set to the same thing in both
    sys.TestExample and mrg.TestMyService, which may explain the collision
    reported in golang/go#59298.
    
    Moreover, the adjective ”my” conveys no information whatsoever — we
    shouldn't use it in tests or examples.
    
    Also skip the tests that install services if GO_BUILDER_NAME is not
    set, to reduce the likelihood of 'go test all' in a user's working
    directory being mistaken for a malicious or compromised program.
    
    Fixes golang/go#59298.
    
    Change-Id: Ib00bf7400bfaa34e1a1d49125c43b97019b53c82
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/481015
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Run-TryBot: Bryan Mills <bcmills@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Bryan Mills <bcmills@google.com>
    Bryan C. Mills authored and gopherbot committed May 4, 2023
    Configuration menu
    Copy the full SHA
    1911637 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. cpu: define IsBigEndian on wasm

    For golang/go#57237
    
    Change-Id: Ia2aa943e93c8df51cd08003535fa026d2bb8003e
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/494856
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    tklauser authored and gopherbot committed May 16, 2023
    Configuration menu
    Copy the full SHA
    c43fe1e View commit details
    Browse the repository at this point in the history
  2. cpu: add test for IsBigEndian

    For golang/go#57237
    
    Change-Id: I11d1c954f942ebd836c4deb9c710c40778dc5599
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/494858
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    tklauser authored and gopherbot committed May 16, 2023
    Configuration menu
    Copy the full SHA
    352d833 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2023

  1. windows: fix EnumProcesses to pass the correct array size

    Implementation generated directly with mkwinsyscall has a wrong
    assumption about the expected value for PIDs buffer size.
    
    This change adds some small manual code that converts the input
    slice length to the number of bytes of the array backing the slice.
    
    A test is also added. It fails with the previous implementation.
    
    Fixes golang/go#60223
    
    Change-Id: I5e2414acb29c6c949e5e6acd328043f8a8883887
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/495995
    Commit-Queue: Quim Muntal <quimmuntal@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
    Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    roman-mazur authored and qmuntal committed May 19, 2023
    Configuration menu
    Copy the full SHA
    c8ea6b0 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. unix: update BPF constants with Linux kernel 6.2

    Change-Id: Iaa92ec9e8ff6e337457ea4f57b4c046221128d43
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/496675
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    florianl authored and gopherbot committed May 23, 2023
    Configuration menu
    Copy the full SHA
    b5c7a09 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. unix: add Getresuid, Getresgid for linux

    Fixes golang/go#60483
    
    Change-Id: Id4c1bf8367066485a16bedeea337c384a3555942
    GitHub-Last-Rev: 61f0fe6
    GitHub-Pull-Request: #159
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/499055
    Run-TryBot: Ian Lance Taylor <iant@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>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    mateusz834 authored and gopherbot committed May 31, 2023
    Configuration menu
    Copy the full SHA
    b52f544 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2023

  1. unix: remove absolute path of pwd from mkall.sh

    The pwd command does not always reside under /bin for all Linux
    distributions. As a $PATH is otherwise always assumed, here too.
    
    Change-Id: I8a9b65fedc0bdd6b963f30e69d5c98b1550326cd
    GitHub-Last-Rev: ff9227d
    GitHub-Pull-Request: #161
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/500656
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@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>
    oxzi authored and gopherbot committed Jun 4, 2023
    Configuration menu
    Copy the full SHA
    ff98eae View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. unix: add Getresuid and Getresgid for OpenBSD

    Addresses golang/go#60483 for OpenBSD.
    
    This change was successfully tested on amd64 and adjusted accordingly for the other architectures.
    
    Change-Id: Id63cca342d81d2cc5854eb2923ca7e66bfaa91bf
    GitHub-Last-Rev: cff1170
    GitHub-Pull-Request: #160
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/500655
    Reviewed-by: David Chase <drchase@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    oxzi authored and gopherbot committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    81c8a6c View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. unix: replace use of strcpy in mkerrors.sh

    On OpenBSD-current, clang emits a warning message to standard output for the use of strcpy, e.g.:
    
    _errors.c(/tmp/_errors-673190.o:(main)): warning: strcpy() is almost always misused, please use strlcpy()
    
    This message makes it into the Go source being created, causing gofmt to error on the invalid syntax, and leaving the zerrors file empty.
    
    Using strlcpy would be preferred here, but strncpy is enough to silence this message, and is more portable.
    
    Change-Id: I16404d74c4406dadda87f211fc0ba062de0d11ac
    GitHub-Last-Rev: a43b6fb
    GitHub-Pull-Request: #147
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/468399
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: David Chase <drchase@google.com>
    jrick authored and gopherbot committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    304f187 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. unix: implement Ptrace{Set,Get}Regs using PTRACE_{GET,SET}REGSET for …

    …Linux
    
    The same change was already done in CL 501756.
    
    Fixes #60679.
    
    Change-Id: I5d1f4ad89cabb0ac120b3d72876944fb3283ec6f
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/501795
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Reviewed-by: David Chase <drchase@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    abner-chenc authored and gopherbot committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    5059a07 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. unix: remove recently introduced debug/elf dependency

    CL 501795 added a dependency on debug/elf (and thus compress/gzip,
    debug/dwarf, hash/adler32)
    
    Add a copy of the const instead.
    
    Change-Id: I2c86094ef7de61b8dd0bdd727f6e547ac7f58527
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/502356
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: David Chase <drchase@google.com>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    bradfitz authored and gopherbot committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    55b11dc View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. unix/linux: update to Linux kernel 6.3 and Go 1.20.5

    Change-Id: I347341ae0e45e73477e9a310a3749d37bafa8da7
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/503255
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    tklauser authored and gopherbot committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    df9fef2 View commit details
    Browse the repository at this point in the history
  2. unix: add missing IFLA_* consts on linux

    Change-Id: Ib221d98f8d7e5aac7ff2db207cdd92145fe1dc60
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/503715
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    tklauser authored and gopherbot committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    ca096e4 View commit details
    Browse the repository at this point in the history
  3. unix: add Mremap for linux

    For golang/go#60409
    
    Change-Id: I75a9732ee996f0aeb91599d80803f96ada468c27
    GitHub-Last-Rev: c348b61
    GitHub-Pull-Request: #164
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/502715
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    anton-kuklin authored and gopherbot committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    e0c3b6e View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2023

  1. windows/svc/mgr: add Service.RecoveryActionsOnNonCrashFailures

    Fixes golang/go#59016
    
    Change-Id: I5e16f61ea2fc384052565342c6517687562260a1
    GitHub-Last-Rev: 3626b01
    GitHub-Pull-Request: #157
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/484896
    Run-TryBot: Bryan Mills <bcmills@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    craig65535 authored and alexbrainman committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    2b751dd View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. unix/linux: update TUN flags and virtio_net_hdr constants

    TUN_F_USO{4,6} and VIRTIO_NET_HDR_GSO_UDP_L4 are new in Linux v6.2.
    
    Change-Id: I7e3dc34118d1c03afeb87fb8699d8167a6e49b7f
    GitHub-Last-Rev: c658b9b
    GitHub-Pull-Request: #165
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/506455
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Auto-Submit: Carlos Amedee <carlos@golang.org>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    jwhited authored and gopherbot committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    d1abdad View commit details
    Browse the repository at this point in the history
  2. windows: make TestSystemModuleVersions more tolerant

    One file can't be read on LUCI's Windows image:
    
        syscall_windows_test.go:892: CimFS.SYS: The specified resource type cannot be found in the image file.
    
    That doesn't seem like a good enough reason to fail the test. Skip the
    file if this error is encountered.
    
    Change-Id: Id9a65b3ff748bbf7ef7fac37d3741c16e001a4b0
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/505220
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Run-TryBot: Heschi Kreinick <heschi@google.com>
    Auto-Submit: Heschi Kreinick <heschi@google.com>
    Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
    heschi authored and gopherbot committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    0a92922 View commit details
    Browse the repository at this point in the history
  3. unix/linux: update to Linux kernel 6.4 and Go 1.21rc2

    Also fix the glibc 2.37 release date in a comment.
    
    Change-Id: Ibd972a2846f0085bacf67c847ce4726bf130d5ba
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/506017
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Auto-Submit: Carlos Amedee <carlos@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    tklauser authored and gopherbot committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    a1a9c4b View commit details
    Browse the repository at this point in the history
Loading