summaryrefslogtreecommitdiffstats
path: root/doc/FileSystem.3
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-08-31 09:20:07 (GMT)
committervincentdarley <vincentdarley>2004-08-31 09:20:07 (GMT)
commit2dff694c415bcb05ec35723e1d67c61c07d7bfaa (patch)
tree28e5ff79e11f47a2fa58fc11d62d0ccc75d97643 /doc/FileSystem.3
parente8d73728c49a16146477d579a1c0859b30546ec9 (diff)
downloadtcl-2dff694c415bcb05ec35723e1d67c61c07d7bfaa.zip
tcl-2dff694c415bcb05ec35723e1d67c61c07d7bfaa.tar.gz
tcl-2dff694c415bcb05ec35723e1d67c61c07d7bfaa.tar.bz2
two bugs fixed in filesystem docs and tests
Diffstat (limited to 'doc/FileSystem.3')
-rw-r--r--doc/FileSystem.322
1 files changed, 17 insertions, 5 deletions
diff --git a/doc/FileSystem.3 b/doc/FileSystem.3
index 6820c46..0792b14 100644
--- a/doc/FileSystem.3
+++ b/doc/FileSystem.3
@@ -4,7 +4,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: FileSystem.3,v 1.44 2004/07/17 12:18:21 vincentdarley Exp $
+'\" RCS: @(#) $Id: FileSystem.3,v 1.45 2004/08/31 09:20:09 vincentdarley Exp $
'\"
.so man.macros
.TH Filesystem 3 8.4 Tcl "Tcl Library Procedures"
@@ -1306,7 +1306,10 @@ copied (i.e. the function is much simpler than the Tcl level 'file
copy' subcommand). Note that,
if the filesystem supports symbolic links, Tcl will always call this
function and not Tcl_FSCopyDirectoryProc when needed to copy them
-(even if they are symbolic links to directories).
+(even if they are symbolic links to directories). Finally, if the
+filesystem determines it cannot support the file copy action,
+calling \fBTcl_SetErrno(EXDEV)\fR and returning a non
+TCL_OK result will tell Tcl to use its standard fallback mechanisms.
.SH RENAMEFILEPROC
.PP
Function to process a \fBTcl_FSRenameFile()\fR call. If not implemented,
@@ -1321,7 +1324,10 @@ typedef int Tcl_FSRenameFileProc(
.CE
.PP
The return value is a standard Tcl result indicating whether an error
-occurred in the renaming process.
+occurred in the renaming process. If the
+filesystem determines it cannot support the file rename action,
+calling \fBTcl_SetErrno(EXDEV)\fR and returning a non
+TCL_OK result will tell Tcl to use its standard fallback mechanisms.
.SH COPYDIRECTORYPROC
.PP
Function to process a \fBTcl_FSCopyDirectory()\fR call. If not
@@ -1343,7 +1349,10 @@ the file or directory which caused the error should be placed in
directory-name which should become the mirror-image of
\fIsrcPathPtr\fR. It is not the name of a directory into which
\fIsrcPathPtr\fR should be copied (i.e. the function is much simpler
-than the Tcl level 'file copy' subcommand).
+than the Tcl level 'file copy' subcommand). Finally, if the
+filesystem determines it cannot support the directory copy action,
+calling \fBTcl_SetErrno(EXDEV)\fR and returning a non
+TCL_OK result will tell Tcl to use its standard fallback mechanisms.
.SH LOADFILEPROC
.PP
Function to process a \fBTcl_FSLoadFile()\fR call. If not implemented, Tcl
@@ -1371,7 +1380,10 @@ only parameter when Tcl needs to unload the file. For example, for the
native filesystem, the \fBTcl_LoadHandle\fR returned is currently a token
which can be used in the private \fBTclpFindSymbol\fR to access functions
in the new code. Each filesystem is free to define the
-\fBTcl_LoadHandle\fR as it requires.
+\fBTcl_LoadHandle\fR as it requires. Finally, if the
+filesystem determines it cannot support the file load action,
+calling \fBTcl_SetErrno(EXDEV)\fR and returning a non
+TCL_OK result will tell Tcl to use its standard fallback mechanisms.
.SH UNLOADFILEPROC
.PP
Function to unload a previously successfully loaded file. If load was