From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <15b201c30ef8$6859a6d0$eb4a800a@will5510> From: "will551" To: <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: [9fans] tclport - stat problems Date: Wed, 30 Apr 2003 10:10:55 +0100 Topicbox-Message-UUID: 9bf5dc40-eacb-11e9-9e20-41e7f4b1d025 hi The tcl port is going well - I have a standalone binary "tclsh" at the moment and am successfully running some test scripts. I am have a problem with the function stat. When I ask for the file size of a file with the tcl "file" command I get a huge number that doesnt seem to relate to the file size at all: % file size blah.file 512341234556 I have traced the call in the tcl code and all it does is call the stat function. I wrote the code in a standalone C program and it worked fine. So maybe its memory problems? but I have tried a malloc on the stat structure and tried sending the address of a stat structure, all to no avail. The tcl binary is about 5.5 megs... Anyone have any ideas l8r will551