Skip to content
Tcl Source Code View Ticket
Login

View Ticket

make stat() a public interface

Closed / Fixed218494ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:18
OriginalBugID: 712 RFE
Version: 8.0.3
SubmitDate: '1998-10-13'
LastModified: '1999-08-12'
Severity: LOW
Status: Released
Submitter: admin
ChangedBy: hobbs
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-08-12'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'


I'm currently updating Sybtcl and Oratcl, 8.0-objectifing and trying to
use Tcl_xxx() functions where I can.  One point that is missing for my
code is a public interface to TclStat().  I'd like to propose that
TclStat() be upgraded to Tcl_Stat(), and and likewise the stat buf typedef
TclStat_ become Tcl_StatBufPtr, all moved into tcl.h.

Thanks!
-- 
Tom Poindexter


I think this would mean that we would need to define our own
"struct stat" definition that is the same for every platform.
Which in turn would imply each UNIX platform would need to have
routines to convert the platform specific "struct stat" to the
cross-platform definition of Tcl_Stat.

Currently, (I believe) stat is defined in tclPort.h because it
is very platform dependent.  That more than any other reason is
why it is not in tclInt.h or tcl.h.

None the less, I think it would be a good idea.  Certainly would
make it easier for people to port extensions that are mucking
with the file system.
-Ray

Tcl_Stat now exists in the public interface (included sometime
before 8.2). 
-- 08/12/1999 hobbs
welch Closed ticket [218494ffff]. [History diff]2000-10-26 08:23:18
dgp Open ticket [218494ffff]. [History diff]2001-04-16 22:46:10
dgp Ticket [218494ffff]: 1 change [History diff]2001-04-16 22:47:03
dgp Closed ticket [218494ffff]. [History diff]2001-04-16 22:50:43
Log in (anonymous is fine) to add a comment.