diff options
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r-- | win/tclWinChan.c | 17 |
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). * *---------------------------------------------------------------------- */ |