Skip to content

Time types could overflow on 32-bit systems #1600

Description

@robotman2412

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions