4 ms·
Thank god all my shit is 64-bit now.
by Subsentient 5y ago
Thank god all my shit is 64-bit now.
- masklinn 5y agoIf you're on a GNU/Linux system that is not actually relevant unless you've also opted into glibc's 64b time_t, and recompiled everything locally: by default, glibc uses 32b time_t even on 64b machines.
- AnssiH 5y agotime_t has always been 64-bit on 64-bit glibc (https://sourceware.org/glibc/wiki/Y2038ProofnessDesign https://sourceware.org/glibc/wiki/Y2038ProofnessDesign , https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html https://www.gnu.org/software/libc/manual/html_node/Feature-T...). > Currently it defaults to 64 bits on most architectures. Although it defaults to 32 bits on some traditional architectures (i686, ARM), this is planned to change and applications should not rely on this.
- petters 5y agoThis is certainly not true: #include <time.h> #include <stdio.h> int main() { printf("size: %lu\n", sizeof(time_t)); return 0; } prints 8 on my system when compiled with just "gcc test.c"