Skip to content
Tcl Source Code Artifact [12308a95d4]
Login

Artifact [12308a95d4]

Artifact 12308a95d40ed049700adae1018372d5bb07a440735e2bb0ab7fdd2d7d662bb3:

Ticket change [12308a95d4] - New ticket [d40b9c8503eb4dee|d40b9c8503] <i>Enforcing 64-bit time_t?</i>. by chrstphrchvz on 2023-03-08 09:38:00.
D 2023-03-08T09:38:00.966
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment To\swhat\sextent\sdoes/should\sTcl\s9.0\sassume/require/enforce\s64-bit\s<tt>time_t</tt>?\r\n\r\nCurrently,\swhen\sI\sbuild\sTcl\s9.0\son\sia32\s(32-bit\sx86)\sLinux,\sit\suses\s32-bit\s<tt>time_t</tt>,\sbut\sthe\stests\scmdAH-24.20.1\sand\scmdAH-24.20.2\sfail\s(rather\sthan\sskip\sas\swith\s8.7;\stimestamp\s3155760000\soverflows\sto\s-1139207296).\sI\scan\salso\sreproduce\sthe\sissue\sin\s[fa128568a597].\s(Maybe\sthe\ssame\swould\shappen\sfor\s32-bit\sARM.)\r\n\r\nI\sread\selsewhere\sthat\sglibc\s2.34\sand\sLinux\skernel\s5.6\ssupport\s64-bit\s<tt>time_t</tt>\son\s32-bit\ssystems\sby\scompiling\swith\s<tt>_FILE_OFFSET_SIZE=64</tt>\sand\s<tt>_TIME_BITS=64</tt>\sdefined,\sand\sthat\sfuture\sglibc\smay\seven\sdefine\sthese\sby\sdefault.\sI\stried\sbuilding\sTcl\s9.0\sagain\swith\sthese\sdefined,\sand\sconfirmed\sthat\sdoing\sso\savoids\sthe\soverflow\sissues.\sThis\sapproach\sreportedly\ssupersedes/conflicts\swith\sthe\sapproach\sof\sdefining\s<tt>_LARGEFILE64_SOURCE</tt>,\sas\sproposed\sin\sthe\sbug-02b58d5d04\sbranch.\sWould\sit\sbe\sappropriate\sfor\sTcl/Tk\sto\sinstead\sdefine\s<tt>_FILE_OFFSET_SIZE=64</tt>\sand\s<tt>_TIME_BITS=64</tt>\sby\sdefault\s(possibly\sbefore\spackage\smanagers\sall\sbegin\sseparately\strying\sto\sdo\sso\sthemselves)?
J foundin trunk
J is_private 0
J login chrstphrchvz
J priority 5\sMedium
J private_contact 6133eb3026f9b10aa9b7b48da92ae2834fc225b0
J resolution None
J severity Minor
J status Open
J submitter chrstphrchvz
J subsystem 52.\sPortability\sSupport
J title Enforcing\s64-bit\stime_t?
J type RFE
K d40b9c8503eb4deeaeb01352b2d0937f77624e49
U chrstphrchvz
Z 11b2dba99b8d84a4f3ff9e6e039580bf