Skip to content

x86: 64-bit time#994

Open
FedorLap2006 wants to merge 6 commits intomanagarm:masterfrom
FedorLap2006:time64
Open

x86: 64-bit time#994
FedorLap2006 wants to merge 6 commits intomanagarm:masterfrom
FedorLap2006:time64

Conversation

@FedorLap2006
Copy link
Copy Markdown
Contributor

Currently time_t is long, which is fine 64 bit arches, since long is always 8 bytes wide.
However, on x86 long is 4 bytes wide.

This PR changes time_t to always be 8 bytes wide, by making it __mlibc_int64.

@FedorLap2006
Copy link
Copy Markdown
Contributor Author

FedorLap2006 commented Feb 17, 2024

After a bit of research, I've found out this problem is not so trivial, since linux ABI on x86 requires time_t to be long
(4 bytes wide)

@FedorLap2006 FedorLap2006 changed the title Make time_t always use 64 bit signed integer x86: 64-bit time Mar 4, 2024
Comment thread sysdeps/linux/generic/sysdeps.cpp
Comment thread options/internal/include/bits/field-padding.h Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants