Skip to content
Tcl Source Code Artifact [89e2caa777]
Login

Artifact [89e2caa777]

Artifact 89e2caa77782bd09387353cf0facd0146ad04f83ca6adbe48dd97866641cf721:

Ticket change [89e2caa777] - Ticket [d40b9c8503eb4dee|d40b9c8503] <i>Enforcing 64-bit time_t?</i> status still Open with 4 other changes by chrstphrchvz on 2023-03-24 13:31:00.
D 2023-03-24T13:31:00.109
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<s>/conflicts</s>\swith\sthe\sapproach\sof\sdefining\s<tt>_LARGEFILE64_SOURCE</tt>,\sas\s<s>proposed</s>\sremoved\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 icomment I\sbelieve\sI\smisunderstood\sthe\spurpose\sof\sthe\sbug-02b58d5d04\sbranch,\sand\sthat\sthe\sproposal\sin\sthis\sticket\swould\sactually\scomplement\sthe\swork\sin\sit:\s<tt>_FILE_OFFSET_BITS=64</tt>\saffects\sthe\sfunctions\sexposed\sby\s<tt>_LARGEFILE_SOURCE</tt>,\sas\san\salternative\sto\susing\sfunctions\sexposed\sby\s<tt>_LARGEFILE64_SOURCE</tt>\swhich\sthat\sbranch\sremoves\susage\sof.\sCan\sthat\sbranch\splease\sbe\supdated\sfrom\sthe\scurrent\smain\sbranch?
J login chrstphrchvz
J mimetype text/x-fossil-wiki
K d40b9c8503eb4deeaeb01352b2d0937f77624e49
U chrstphrchvz
Z 1786a66e968ddd7305a54f691a4fe43e