Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-08-30
22:49 • Ticket [455021ffff] remove obsolete, private FS apis status still Closed wit... artifact: ebb9aed4d0 user: dgp
16:22 • Closed ticket [455021ffff]. artifact: a7630406ba user: vincentdarley
02:14 • Ticket [455021ffff]: 4 changes artifact: e99d7974c7 user: dgp
01:22 • Ticket [455021ffff]: 4 changes artifact: b2498168a4 user: vincentdarley
01:22 • Add attachment fsObsRemove4.patch to ticket [455021ffffffffff|455021fff... artifact: df1ea90642 user: vincentdarley
01:22 • Ticket [455021ffff] remove obsolete, private FS apis status still Open with ... artifact: 5e7efe6da6 user: vincentdarley
00:15 • Ticket [455021ffff]: 4 changes artifact: b330757b45 user: vincentdarley
2001-08-29
23:48 • Add attachment test.log to ticket [455021ffff] artifact: 074431a497 user: dgp
23:48 • Ticket [455021ffff] remove obsolete, private FS apis status still Open with ... artifact: 791665264f user: dgp
23:30 • Ticket [455021ffff]: 4 changes artifact: 062f760507 user: vincentdarley
23:30 • Ticket [455021ffff]: 4 changes artifact: f9752375e2 user: vincentdarley
23:05 • Ticket [455021ffff]: 4 changes artifact: 88ed580691 user: vincentdarley
23:05 • Ticket [455021ffff]: 4 changes artifact: 08d3e75f99 user: vincentdarley
16:34 • Ticket [455021ffff]: 4 changes artifact: 8d7e448468 user: vincentdarley
2001-08-25
01:21 • Ticket [455021ffff]: 4 changes artifact: bc2f630b45 user: hobbs
00:57 • Ticket [455021ffff]: 4 changes artifact: 15a5c7b33f user: dgp
2001-08-24
17:28 • New ticket [455021ffff]. artifact: 9c6af9effa user: vincentdarley

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: