golang/go

syscall: updates types related to "time_t" to 64-bit on linux/arm

Open

#60,248 opened on May 17, 2023

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsInvestigationcompiler/runtimehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

What version of Go are you using (go version)?

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

linux/arm

What did you do?

What did you expect to see?

I'm hoping it can be made compatible with the 64-bit "time_t" type to solve the "2038 problem".

What did you see instead?

All types in ztypes_linux_arm.go related to "time_t" are 32-bit (such as Timespec, Timeval, Time_t, etc.). However, as of Linux 5.10, all "time_t"-related types have been updated to 64-bit (although I'm not certain from which kernel version this change was made).

Contributor guide