]> Cypherpunks repositories - gostls13.git/commit
runtime: use timer_settime64 on 32-bit Linux
authorabdullahkiani007 <abdullahkiani931@gmail.com>
Sat, 18 Oct 2025 14:43:53 +0000 (14:43 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 21 Oct 2025 16:35:47 +0000 (09:35 -0700)
commit4620db72d273097a1c5fd11e44ce688618559579
tree460e7596f8338171c8358489cf52a523db872c5e
parentb31dc77ceab962c0f4f5e4a9fc5e1a403fbd2d7c
runtime: use timer_settime64 on 32-bit Linux

Linux introduced new syscalls to fix the year 2038 issue.
To still be able to use the old ones, the Kconfig option
COMPAT_32BIT_TIME would be necessary.

Use the new 64-bit syscall for timer_settime by default.
Add a fallback to use the 32-bit syscall when the
64-bit version returns _ENOSYS.

Fixes #75133

Change-Id: Iccb8831b67f665067ee526e93c3ff2f4f5392edf
GitHub-Last-Rev: 6c3d62d60e5ff02ebe61e56e06d6365e530ec39e
GitHub-Pull-Request: golang/go#75957
Reviewed-on: https://go-review.googlesource.com/c/go/+/712642
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
src/runtime/defs_linux_386.go
src/runtime/defs_linux_arm.go
src/runtime/defs_linux_mipsx.go
src/runtime/os_linux.go
src/runtime/os_linux_settime32.go [new file with mode: 0644]
src/runtime/os_linux_settime64.go [new file with mode: 0644]
src/runtime/sys_linux_386.s
src/runtime/sys_linux_arm.s
src/runtime/sys_linux_mipsx.s