Overview
| Artifact ID: | ba2b2fa71d5d730c3f65c6fdb74886b2aabaa31eb2f1689b4c5b39ce357b2725 |
|---|---|
| Ticket: | d40b9c8503eb4deeaeb01352b2d0937f77624e49
Enforcing 64-bit time_t? |
| User & Date: | chrstphrchvz on 2023-03-26 05:34:21 |
Changes
- icomment:
<blockquote>I think that Tcl 9.0 - indeed - should enforce 64-bit time_t. … So, if you want to provide a patch for your platform (best place would be in tcl.m4), yes please!</blockquote> Thanks for the suggestion, I have zero experience with M4 but have cargo culted roughly how this could be done anyway: <ul> <li>Hack <tt>SC_TCL_EARLY_FLAG()</tt> to accept a 4th optional argument for the value to define a C macro to (<tt>1</tt> by default)</li> <li>Define <tt>_FILE_OFFSET_BITS=64</tt> during <tt>SC_TCL_EARLY_FLAGS</tt> if that is needed to get 64-bit <tt>off_t</tt></li> <li> Define <tt>_TIME_BITS=64</tt> during <tt>SC_TCL_64BIT_FLAGS</tt> if that is needed to get 64-bit <tt>time_t</tt></li> <li>Error out if 64-bit <tt>time_t</tt> is unavailable. </li> </ul> See [https://github.com/tcltk/tcl/compare/main...chrstphrchvz:tcl:timet64] (currently based on main branch, but would eventually prefer to base it on bug-02b58d5d04).
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"