8000 Comparing v0.14.0...v0.17.0 · golang/sys · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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.14.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.17.0
Choose a head ref
  • 19 commits
  • 64 files changed
  • 14 contributors

Commits on Nov 6, 2023

  1. unix: use fcntl(2) libc stub on OpenBSD

    Future OpenBSD releases will remove the syscall(2) interface.
    This converts the Fcntl functions to use fcntl(2) from libc,
    rather than indirectly through syscall(2).
    
    Updates golang/go#63900.
    
    Change-Id: I50c3b91cb40245653c772e65b0b15c625974bebe
    GitHub-Last-Rev: 9c62104
    GitHub-Pull-Request: #179
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/538995
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Joel Sing <joel@sing.id.au>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Run-TryBot: Joel Sing <joel@sing.id.au>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    jrick authored and 4a6f656c committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    ec230da View commit details
    Browse the repository at this point in the history
  2. unix: use fchmodat2 in Fchmodat

    The fchmodat2 syscall was added in Linux kernel 6.6. Use it in Fchmodat
    if flags are given. It will return ENOSYS on older kernels (or EINVAL or
    any other bogus error in some container implementations).
    
    Fixes golang/go#61636
    
    Change-Id: Ibbc9a08733b7186907b2fe5837cb997446c38357
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/539635
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    tklauser committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    2d0c736 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. unix: update BPF constants for Linux kernel 6.6

    This re-adds BPF_F_KPROBE_MULTI_RETURN which was removed by CL 538378
    because it was changed from a #define to an enum in the upstream bpf.h
    header, see
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c5487f8d9186
    
    Fixes golang/go#63969
    
    Change-Id: Icbf180d8fb8d51fd2fa4a29a615f7071abda9a8b
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/540395
    Reviewed-by: Heschi Kreinick <heschi@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Bryan Mills <bcmills@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    tklauser authored and gopherbot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    9888904 View commit details
    Browse the repository at this point in the history
  2. unix: fix trimmed socket opt string in GetsockoptString

    Fixes golang/go#63217
    
    Change-Id: Ia1b0ae88b7e7a7c611067a0b30e454b66f45ce51
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/530897
    Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    Reviewed-by: Cherry Mui <cherryyz@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: Heschi Kreinick <heschi@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    KSDaemon authored and gopherbot committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    e4099bf View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. windows: add AddDllDirectory and RemoveDllDirectory

    Per https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-adddlldirectory
    and https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-removedlldirectory.
    
    Change-Id: If44a3758720345d1bbd9af96ec2481fbe9398a08
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/537755
    Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
    Auto-Submit: Roland Shoemaker <roland@golang.org>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    rolandshoemaker authored and gopherbot committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    11eadc0 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. unix: add IoctlLoopConfigure on linux

    LOOP_CONFIGURE ioctl is used to setup and configure all loop device
    parameters in a single step.
    Add to the unix package a new function that exposes LOOP_CONFIGURE.
    
    Fixes golang/go#63962
    
    Change-Id: Ia169d268b52b1384febc6bff9c707b721ab2bb24
    GitHub-Last-Rev: f9cc4c9
    GitHub-Pull-Request: #181
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/540075
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: David Chase <drchase@google.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Matthew Dempsky <mdempsky@google.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    alex-matei authored and gopherbot committed Nov 18, 2023
    Configuration menu
    Copy the full SHA
    13b15b7 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. unix: add Netfilter and NFTables constants

    Fixes golang/go#64426
    
    Change-Id: I7332f73e27396d187ed63715100af299a949eaf9
    GitHub-Last-Rev: a6b267b
    GitHub-Pull-Request: #182
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/545495
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    LionelJouin authored and gopherbot committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    5ff87d7 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2023

  1. unix: remove extra trailing newlines in zsyscall_openbsd_*.go

    These newlines are written by mksyscall.go but should not appear in the final
    generated files once the output is passed through gofmt.  This is done by
    mkall.sh but I had written a custom script just to generate these openbsd
    zsyscall files in CL 468095.
    
    Running the mksyscall.go output through gofmt fixes this issue.
    
    Fixes golang/go#64820
    
    Change-Id: I1b1bf55145bd5a5208e091ded24a973f953c479f
    GitHub-Last-Rev: 514272b
    GitHub-Pull-Request: #183
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/551715
    Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Carlos Amedee <carlos@golang.org>
    Run-TryBot: Jorropo <jorropo.pgm@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Reviewed-by: Than McIntosh <thanm@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    jrick authored and tklauser committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    f0c7190 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2023

  1. unix: don't redefine constants already defined in glibc headers

    These are all present in glibc 2.37 which is currently used to generate
    these constants.
    
    Change-Id: I3ffbd8f8581e85e8854222ad3f2c7f44aac106c7
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/552417
    Reviewed-by: David Chase <drchase@google.com>
    Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Matt Layher <mdlayher@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    tklauser authored and gopherbot committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    32cdffc View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. windows: add SetFileValidData

    Fixes golang/go#61834
    
    Change-Id: Iaff01f5662aa2309e8ac41b346e0d3a42d28af91
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/517575
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    TryBot-Result: Gopher Robot <gobot@golang.org>
    Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
    Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
    Reviewed-by: Keith Randall <khr@google.com>
    kanak-clumio authored and alexbrainman committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    0829ab1 View commit details
    Browse the repository at this point in the history

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.google
    6D40
    source.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
Loading
0