While writing the BadgerOS sysdeps (which I will eventually seek to upstream), I noticed that certain types, most notably including time_t are defined as long, which would make them 32-bit on 32-bit systems. For time, however, this has the 2038 bug as struct timespec would contain a signed 32-bit integer for tv_sec. I would like to request an option to make these __mlibc_int64 instead so users can enable a 2038-safe type on 32-bit platforms as well.
While writing the BadgerOS sysdeps (which I will eventually seek to upstream), I noticed that certain types, most notably including
time_tare defined aslong, which would make them 32-bit on 32-bit systems. For time, however, this has the 2038 bug asstruct timespecwould contain a signed 32-bit integer fortv_sec. I would like to request an option to make these__mlibc_int64instead so users can enable a 2038-safe type on 32-bit platforms as well.