Opened 2 years ago

Last modified 22 months ago

#21735 new enhancement

Add support for unsigned time_t, to support QNX

Reported by: nickm Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: tor-build portability signed-time unlikely
Cc: ryankung Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

On #18184, ryankung reports that QNX has an unsigned time_t, and therefore is unsupported by Tor.

To support unsigned time_t, someone will need to audit all our uses of time_t, and make sure that we don't do any signed/unsigned comparisons with it, that we can't underflow it, and that we don't use any negative sentinel values. Then we can revert the configuration code in #18184 that blocked compilation when time_t is unsigned.

Child Tickets

Change History (1)

comment:1 Changed 22 months ago by nickm

Keywords: tor-build portability signed-time unlikely added
Note: See TracTickets for help on using tickets.