Skip to content
Tcl Source Code View Ticket
Login

View Ticket

remove obsolete, private FS apis

Closed / Fixed455021ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-08-24 17:28:38
This patch will remove all obsolete private Tcl fs 
APIs which are not called by any known extension.

The likely candidate list is given by:

Tcl(p
(Access|Stat|Lstat|Chdir|CopyFile|GetCwd|ReadLink|ListV
olumes|RenameFile|DeleteFile|CreateDirectory|CopyDirect
ory|RemoveDirectory)|Stat|Access)

(I may have missed some)

but I'm currently evaluating which of these either

(i) might be called internally
(ii) might be called by extensions.

Vince.
dgpplain2001-08-25 00:57:44
Logged In: YES 
user_id=80530

where's the patch?
hobbsplain2001-08-25 01:21:24
Logged In: YES 
user_id=72656

The primary extensions to analyse would be TclX and BLT.  
If those don't use it, then it is unlikely others would 
have poked that far.
vincentdarleyplain2001-08-29 16:34:39
File Added - 10124: fsObsRemove.patch

Logged In: YES 
user_id=32170

I examined BLT, TclX, TclPro, Mktclapp and Tk.   Both 
Tclpro and Mktclapp use the access/stat/open 'hooks' and 
TclX uses 'TclpGetCwd'.  Otherwise nothing internal is used 
anywhere.

Patch attached (it removes a fair amount of code, which is 
nice).
vincentdarleyplain2001-08-29 23:05:10
Logged In: YES 
user_id=32170

Updated patch.  Objectifies a bit more and simplifies mac 
code.
vincentdarleyplain2001-08-29 23:05:12
File Deleted - 10124: 



File Added - 10131: fsObsRemove2.patch
vincentdarleyplain2001-08-29 23:30:28
File Added - 10132: fsObsRemove2.patch
vincentdarleyplain2001-08-29 23:30:29
File Deleted - 10131:
dgpplain2001-08-29 23:48:14
File Added - 10134: test.log

Logged In: YES 
user_id=80530

I applied fsObsRemove2.patch, and 'make test' reported
25 errors in fCmd.test.  See test.log, attached.  You can
ignore the fCmd-18.10 failure -- that's normal for Linux.
vincentdarleyplain2001-08-30 00:15:22
File Deleted - 10132: 



File Added - 10137: fsObsRemove3.patch

Logged In: YES 
user_id=32170

Ok, that was a silly error.  Fix one problem, introduce 25 
more.  I believe those problems should be gone now.
vincentdarleyplain2001-08-30 01:22:32
Logged In: YES 
user_id=32170

Added some more tests, and fixed a potential problem on 
Windows.
vincentdarleyplain2001-08-30 01:22:33
File Deleted - 10137: 



File Added - 10139: fsObsRemove4.patch
dgpplain2001-08-30 02:14:40
Logged In: YES 
user_id=80530

tests pass now.
vincentdarleyplain2001-08-30 16:22:46
Logged In: YES 
user_id=32170

These latest changes, now applied, mean most simple 
filesystem operations are 20-30% faster than Tcl 8.3.x.  
Also vfs support is now improved to the point where Tcl is 
happy to have entire file protocols mounted as volumes 
(e.g. the tclvfs extension can mount 'ftp://' as a root 
volume).  A few small bugs have been fixed, in particular 
the handling of './~not_a_user' is completely consistent 
across both native fs and vfs.
dgpplain2001-08-30 22:49:21
Logged In: YES 
user_id=80530

The test filename-4.19 leaves behind a directory
named tildetmp.
Log in (anonymous is fine) to add a comment.

Attachments: