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.21.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.23.0
Choose a head ref
  • 19 commits
  • 75 files changed
  • 13 contributors

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

Commits on Jul 9, 2024

  1. unix: implements RenamexNp and RenameatxNp for darwin

    Fixes golang/go#48425
    
    Change-Id: Ib3619863e238eadf09da479bd2e1e47d9ab6f274
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/361958
    Auto-Submit: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    zchee authored and gopherbot committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    4cafe5c View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. cpu: add support for DIT detection

    Change-Id: I9f0991da9684ebd297e40a754e34130c418c34d0
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/597377
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    rolandshoemaker committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    47fe916 View commit details
    Browse the repository at this point in the history
  2. unix: skip TestIoctlFileDedupeRange on EOPNOTSUPP error

    Fixes golang/go#68372
    
    Change-Id: Id3b8fb920b1458e39e7370195591183ee7e450ff
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/597555
    Reviewed-by: Cherry Mui <cherryyz@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: Ian Lance Taylor <iant@google.com>
    Commit-Queue: Ian Lance Taylor <iant@google.com>
    ianlancetaylor authored and gopherbot committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    ee0e627 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. LICENSE: update per Google Legal

    Very minor tweaks:
     - Remove (c) pseudosymbol.
     - Remove "All Rights Reserved."
     - Change "Google Inc." (no longer exists) to "Google LLC".
    
    [git-generate]
    echo '
    ,s/\(c\) //
    ,s/ All rights reserved.//
    ,s/Google Inc./Google LLC/
    w
    q
    ' | sam -d LICENSE
    
    Change-Id: I9373310143631467badd0131416d741b02c9bd10
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/598528
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Auto-Submit: Russ Cox <rsc@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    rsc authored and gopherbot committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    dce4e64 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. cpu: add DIT option and hwcap DIT support

    Follow-up to https://go.dev/cl/597377, add a option for DIT so it can be
    set via GODEBUG, and add hwcap support for Linux.
    
    Change-Id: Ib094b520edea9c099d37f121b09d02b31644a433
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/598719
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    rolandshoemaker committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    0c18c88 View commit details
    Browse the repository at this point in the history
  2. windows: add flags for GetAdaptersAddresses

    This commit adds all missing flags for GetAdaptersAddresses.
    
    Change-Id: I874623b6ac77af4ced49205493258e118a4f1b26
    GitHub-Last-Rev: 384c92a
    GitHub-Pull-Request: #203
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/597915
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    database64128 authored and alexbrainman committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    0eac9b5 View commit details
    Browse the repository at this point in the history
  3. windows: add GetKeyboardLayout & ToUnicodeEx

    These are used along with GetForegroundWindow and GetWindowThreadProcessId to determine the current user layout and translate the base key the user has pressed.
    
    Change-Id: Ib833ba7ab54213d83e889ff74c5bc0ace5edbe95
    GitHub-Last-Rev: 2afe997
    GitHub-Pull-Request: #188
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/574755
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    Reviewed-by: Than McIntosh <thanm@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Reviewed-by: Ayman Bagabas <ayman.bagabas@gmail.com>
    aymanbagabas authored and alexbrainman committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    bce4cf7 View commit details
    Browse the repository at this point in the history
  4. cpu: add Int8 matrix multiplication instructions CPU feature flag for…

    … ARM64
    
    References:
    https://github.com/torvalds/linux/blob/5bbd9b249880dba032bffa002dd9cd12cd5af09c/arch/arm64/include/uapi/asm/hwcap.h#L75C9-L75C31
    
    https://developer.arm.com/documentation/ddi0601/2024-03/AArch64-Registers/ID-AA64ISAR1-EL1--AArch64-Instruction-Set-Attribute-Register-1
    
    Change-Id: Ic4e1cf2c23097c7e8695453b6d0b335756d474bc
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/595678
    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@golang.org>
    Reviewed-by: Cherry Mui <cherryyz@google.com>
    hmartinez82 authored and gopherbot committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    7bb0bf7 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. windows: correctly generate GetAce syscall

    GetAce expects a failretval==0, and we shouldn't call GetLastError on
    error.
    
    For golang/go#66850
    
    Change-Id: I812d71b066d56e8285324e70b8b5b5fb42b5ce35
    GitHub-Last-Rev: 40cf750
    GitHub-Pull-Request: #205
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/599295
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
    Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
    aymanbagabas authored and gopherbot committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    beb5949 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. unix: update glibc to 2.40

    Change-Id: I691cc18fe046600a6192c492cf573c8223aa573e
    GitHub-Last-Rev: 7a25e88
    GitHub-Pull-Request: #208
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/600517
    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>
    Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
    mauri870 authored and gopherbot committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    d03a807 View commit details
    Browse the repository at this point in the history
  2. unix: update to Linux kernel 6.10

    Change-Id: I87cac997e5fad645ae04b8a808063389fc468e5a
    GitHub-Last-Rev: 3104aaf
    GitHub-Pull-Request: #207
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/600516
    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: Ian Lance Taylor <iant@google.com>
    mauri870 authored and gopherbot committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    31ef9e7 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. unix: add linux mseal system call

    The mseal system call was added in Linux 6.10.
    
    See https://lwn.net/Articles/954936.
    
    Change-Id: Ic812a5d784effbc1f362045ffeb6f7e50ee5f8bb
    GitHub-Last-Rev: de3924e
    GitHub-Pull-Request: #209
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/600518
    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: Michael Knyszek <mknyszek@google.com>
    mauri870 authored and gopherbot committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    cde4660 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2024

  1. unix: provide Mount on openbsd

    Note that Mount is already provided for both darwin and linux, with
    differing signatures.
    
    Change-Id: Iaddae1769e436aad5125b78e31b2d62d22e45b16
    Reviewed-on: https://go-review.googlesource.com/c/sys/+/595735
    Reviewed-by: Ian Lance Taylor <iant@google.com>
    LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
    Reviewed-by: Michael Knyszek <mknyszek@google.com>
    4a6f656c committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    aa1c4c8 View commit details
    Browse the repository at this point in the history
Loading