vendor/golang.org/x/sys/unix/syscall_linux.go
changeset 272 e9ffa471eeb3
parent 265 05c40b36d3b2
child 274 cea6d2f4f728
--- a/vendor/golang.org/x/sys/unix/syscall_linux.go	Sat Feb 04 13:35:58 2023 +0100
+++ b/vendor/golang.org/x/sys/unix/syscall_linux.go	Sat Feb 18 04:11:30 2023 +0000
@@ -1800,6 +1800,7 @@
 //sysnb	Capset(hdr *CapUserHeader, data *CapUserData) (err error)
 //sys	Chdir(path string) (err error)
 //sys	Chroot(path string) (err error)
+//sys	ClockAdjtime(clockid int32, buf *Timex) (state int, err error)
 //sys	ClockGetres(clockid int32, res *Timespec) (err error)
 //sys	ClockGettime(clockid int32, time *Timespec) (err error)
 //sys	ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error)
@@ -1999,7 +2000,7 @@
 // offs2lohi splits offs into its low and high order bits.
 func offs2lohi(offs int64) (lo, hi uintptr) {
 	const longBits = SizeofLong * 8
-	return uintptr(offs), uintptr(uint64(offs) >> longBits)
+	return uintptr(offs), uintptr(uint64(offs) >> (longBits - 1) >> 1) // two shifts to avoid false positive in vet
 }
 
 func Readv(fd int, iovs [][]byte) (n int, err error) {