summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2002-05-13 13:19:59 (GMT)
committervincentdarley <vincentdarley>2002-05-13 13:19:59 (GMT)
commit18b4a36a1a37a62808c9caa0b3d6eb1882c3ed65 (patch)
tree54e38ca856778879fde314424eee2707f709d2f0 /win/tclWinChan.c
parentffae2997ee93cabad7b2024b2a18767ade8b4790 (diff)
downloadtcl-18b4a36a1a37a62808c9caa0b3d6eb1882c3ed65.zip
tcl-18b4a36a1a37a62808c9caa0b3d6eb1882c3ed65.tar.gz
tcl-18b4a36a1a37a62808c9caa0b3d6eb1882c3ed65.tar.bz2
memory cleanup
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index d850b62..ad10251 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinChan.c,v 1.21 2002/03/15 01:10:19 mdejong Exp $
+ * RCS: @(#) $Id: tclWinChan.c,v 1.22 2002/05/13 13:20:00 vincentdarley Exp $
*/
#include "tclWinInt.h"
@@ -1215,18 +1215,19 @@ TclWinOpenFileChannel(handle, channelName, permissions, appendMode)
/*
*----------------------------------------------------------------------
*
- * TclWinOpenFileChannel --
+ * TclWinFlushDirtyChannels --
*
- * Constructs a File channel for the specified standard OS handle.
- * This is a helper function to break up the construction of
- * channels into File, Console, or Serial.
+ * Flush all dirty channels to disk, so that requesting the
+ * size of any file returns the correct value.
*
* Results:
- * Returns the new channel, or NULL.
+ * None.
*
* Side effects:
- * May open the channel and may cause creation of a file on the
- * file system.
+ * Information is actually written to disk now, rather than
+ * later. Don't call this too often, or there will be a
+ * performance hit (i.e. only call when we need to ask for
+ * the size of a file).
*
*----------------------------------------------------------------------
*/