summaryrefslogtreecommitdiffstats
path: root/doc/FileSystem.3
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-10-03 17:24:34 (GMT)
committervincentdarley <vincentdarley>2003-10-03 17:24:34 (GMT)
commit83a630291a551dac5d2d0fa1c01857c25a41f245 (patch)
tree0111cd485b7df3a074bec49e5128a91d95efea8f /doc/FileSystem.3
parent56216c88782e49447fa139c9caeb58faf47572fd (diff)
downloadtcl-83a630291a551dac5d2d0fa1c01857c25a41f245.zip
tcl-83a630291a551dac5d2d0fa1c01857c25a41f245.tar.gz
tcl-83a630291a551dac5d2d0fa1c01857c25a41f245.tar.bz2
FileSystem.3
Diffstat (limited to 'doc/FileSystem.3')
-rw-r--r--doc/FileSystem.324
1 files changed, 16 insertions, 8 deletions
diff --git a/doc/FileSystem.3 b/doc/FileSystem.3
index 010c408..8cc70b0 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.32.2.1 2003/06/23 10:49:14 vincentdarley Exp $
+'\" RCS: @(#) $Id: FileSystem.3,v 1.32.2.2 2003/10/03 17:24:34 vincentdarley Exp $
'\"
.so man.macros
.TH Filesystem 3 8.4 Tcl "Tcl Library Procedures"
@@ -546,14 +546,22 @@ not require additional conversions.
\fBTcl_FSGetTranslatedPath\fR attempts to extract the translated path
from the given Tcl_Obj.
.PP
-If the translation succeeds (i.e. the object is a valid path), then it
-is returned. Otherwise NULL will be returned, and an error message may
-be left in the interpreter. A "translated" path is one which
-contains no "~" or "~user" sequences (these have been expanded to
-their current representation in the filesystem).
-.PP
-\fBTcl_FSGetTranslatedStringPath\fR does the same as
+If the translation succeeds (i.e. the object is a valid path), then it is
+returned. Otherwise NULL will be returned, and an error message may be
+left in the interpreter. A "translated" path is one which contains no
+"~" or "~user" sequences (these have been expanded to their current
+representation in the filesystem). The object returned is owned by the
+caller, which must store it or call Tcl_DecrRefCount to ensure memory is
+freed. This function is of little practical use, and
+\fBTcl_FSGetNormalizedPath\fR or \fBTcl_GetNativePath\fR are usually
+better functions to use for most purposes.
+.PP
+\fBTcl_FSGetTranslatedStringPath\fR does the same as
\fBTcl_FSGetTranslatedPath\fR, but returns a character string or NULL.
+The string returned is dynamically allocated and owned by the caller,
+which must store it or call ckfree to ensure it is freed. Again,
+\fBTcl_FSGetNormalizedPath\fR or \fBTcl_GetNativePath\fR are usually
+better functions to use for most purposes.
.PP
\fBTcl_FSNewNativePath\fR performs something like that reverse of the
usual obj->path->nativerep conversions. If some code retrieves a path