Skip to content
Tcl Source Code Artifact [438eb731da]
Login

Artifact [438eb731da]

Artifact 438eb731dac55bca9760c7da6f16510f80ffdb5b:

Ticket change [438eb731da] - New ticket [698146ffffffffff|698146ffff] <i>file atime &amp; mtime broken for 64 bit OSs</i>. by jods on 2003-03-05 18:26:56.
D 2003-03-05T18:26:56
J assignee dkf
J cmimetype text/plain
J comment When\stcl\sis\scompiled\sfor\sa\s64-bit\sIRIX64\splatform\sthe\n'file\satime'\sand\s'file\smtime'\scommands\sdo\snot\sset\sthe\ntimes\scorrectly.\s\n\nThis\sis\sdue\sto\sa\sbug\sin\stclCmdAH.c\s:\nLine\s841\s-\s844\scontain\nif\s(Tcl_GetLongFromObj(interp,\sobjv[3],\n(long*)(&buf.st_atime))\s!=\sTCL_OK)\s{\n\s\s\s\sreturn\sTCL_ERROR;\n}\n\nBut\sthe\sstat\sbuf\scontains\s32\sbit\sints\sfor\satime\s&\nmtime,\snot\s64\sbit\slongs,\sso\sthe\scode\scould\sbe\sreplaced\nwith\sthis:\n\n\s\s\s\s\s\slong\salong;\nif\s(Tcl_GetLongFromObj(interp,\sobjv[3],\n&along)\s!=\sTCL_OK)\s{\n\s\s\s\sreturn\sTCL_ERROR;\n}\nbuf.st_mtime\s=\salong;\n\nWhere\sthe\slast\sline\simplicitly\sdoes\sthe\stype\nconversion.\n\nSimilar\sfor\smtime.
J foundin obsolete:\s8.4.2
J priority 5\sMedium
J resolution None
J status Open
J submitter jods
J subsystem 16.\sCommands\sA-H
J title file\satime\s&\smtime\sbroken\sfor\s64\sbit\sOSs
J type Bug
K 698146ffffffffffffffffffffffffffffffffff
U jods
Z 451be1d8d79fd6f837101a0d25002217