9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] tclport - stat problems
@ 2003-04-30  9:10 will551
  0 siblings, 0 replies; 3+ messages in thread
From: will551 @ 2003-04-30  9:10 UTC (permalink / raw)
  To: 9fans

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-01  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <282797405@snellwilcox.com>
2003-04-30  9:33 ` [9fans] tclport - stat problems steve.simon
2003-05-01  8:09   ` [9fans] tclport - stat problems - fix will551
2003-04-30  9:10 [9fans] tclport - stat problems will551

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).