Artifact
350cd196e98285f5d3d89eef73f5819d586ebfc5:
Ticket change
[350cd196e9]
- Ticket
[2651823fffffffff|2651823fff] <i>Tcl_StatBuf definition problem with VS2005 and Win XP x64</i> status still Open with 5 other changes
by
patthoyts on
2009-04-30 04:51:06.
D 2009-04-30T04:51:06
J icomment The\sapplied\spatch\sfixes\sthe\sbuild\swith\sMSVC\s2008\sbut\sbreaks\sit\sfor\severy\sother\sversion\sso\sI\sreverted\sthe\spatch\sfrom\sboth\sbranches.\n\nIn\stclWinFile.c\sNativeStat\sfunction\swe\sexplicitly\sassign\sall\sthe\stime\smembers\sas\stime_t\sand\sthe\ssize\smember\sas\sa\sTcl_WideInt.\sSo\sall\sthe\sifdeffery\sis\sjust\sto\stry\sto\sobtain\sa\sstat\sstructure\sthat\smatches\sthis\susage.\sOnce\supon\sa\stime\s(msvc6\sup\sto\smsvc8)\sthis\swas\s_stati64.\sMore\srecently\sthis\sstructure\shas\sdisappeared\sand\sin\smsvc9\swe\sneed\sto\suse\s_stat32i64\son\six86\sand\sstat64\son\sx86_64.\sWho\sis\sto\ssay\swhat\sthey'll\sdo\snext\stime\saround.\n\nSo\sI\ssuggest\swe\sdefine\sit\sthusly:\nstruct\sTcl_StatBuf_\s{\n\s\s\s\s_dev_t\sst_dev;\n\s\s\s\s_ino_t\sst_ino;\n\s\s\s\sunsigned\sshort\sst_mode;\n\s\s\s\sshort\sst_nlink;\n\s\s\s\sshort\sst_uid;\n\s\s\s\sshort\sst_gid;\n\s\s\s\s_dev_t\sst_rdev;\n\s\s\s\sTcl_WideInt\sst_size;\n\s\s\s\stime_t\sst_atime;\n\s\s\s\stime_t\sst_mtime;\n\s\s\s\stime_t\sst_ctime;\n};\nI've\sbeen\sbuilding\sa\sversion\sof\stcl\swith\sthat\sand\sso\sfar\sit\sseems\srobust.\stclvfs\sworks\swith\sthis\swhich\sseemed\slike\sthe\smost\slikely\scandidate\sto\sfail\sin\sthe\sface\sof\sTcl_StatBuf\smismatches.\n\n
J login patthoyts
J mimetype text/plain
J priority 9\sImmediate
J username patthoyts
K 2651823fffffffffffffffffffffffffffffffff
U patthoyts
Z b68077e60141a598b2de0fd658b2dc8b