-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
update 32-bit architectures in the std lib to use 64-bit time to prepare for year 2038 #4726
Copy link
Copy link
Open
Labels
arch-arm32-bit Arm32-bit Armarch-cskyCSKYCSKYarch-m68kMotorola 680x0 and ColdFireMotorola 680x0 and ColdFirearch-mips32-bit MIPS32-bit MIPSarch-powerpc32-bit Power ISA32-bit Power ISAarch-sparc32-bit SPARC32-bit SPARCarch-x8632-bit x8632-bit x86contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.os-linuxLinuxLinuxstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
arch-arm32-bit Arm32-bit Armarch-cskyCSKYCSKYarch-m68kMotorola 680x0 and ColdFireMotorola 680x0 and ColdFirearch-mips32-bit MIPS32-bit MIPSarch-powerpc32-bit Power ISA32-bit Power ISAarch-sparc32-bit SPARC32-bit SPARCarch-x8632-bit x8632-bit x86contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.os-linuxLinuxLinuxstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Now that #4538 is done, it's zig std lib's turn to update. This task is to change
time_tand related structs to be 64-bits and to call the 64-bit syscalls rather than the 32-bit ones. Here's a nice list of libc functions that have 64 bit versions:Any of these that match syscalls (or libc calls) that the zig std lib uses, should be upgraded.