[Bug 1223169] gcc14 compilation fails in 2038
https://bugzilla.suse.com/show_bug.cgi?id=1223169 https://bugzilla.suse.com/show_bug.cgi?id=1223169#c12 Richard Biener <rguenther@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz@suse.com, | |schwab@suse.com --- Comment #12 from Richard Biener <rguenther@suse.com> --- So why would the following only fail in 2038? Does stat() stop working because it embeds struct timespec and with -m32 this isn't Y2038 clean? I had the impression we switched to 64bit time even with 32bit in Factory? #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int main () { FILE *f, *g; struct stat st1, st2; f = fopen ("foo", "w"); g = fopen ("bar", "w"); if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) return 1; if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) return 1; fclose(f); fclose(g); return 0; } -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com