[Python-checkins] python/dist/src/Doc/lib libos.tex,1.117,1.118
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Wed, 23 Apr 2003 12:47:19 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv2211/python/Doc/lib
Modified Files:
libos.tex
Log Message:
Clarified new fsync() docs.
Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.117
retrieving revision 1.118
diff -C2 -d -r1.117 -r1.118
*** libos.tex 23 Apr 2003 02:39:16 -0000 1.117
--- libos.tex 23 Apr 2003 19:47:14 -0000 1.118
***************
*** 449,460 ****
\begin{funcdesc}{fsync}{fd}
! Force write of file with filedescriptor \var{fd} to disk.
! On Windows this calls the MS \cfunction{_commit()} function. If you're
! starting with a Python file object \var{f}, first do
\code{\var{f}.flush()}, and then do \code{os.fsync(\var{f}.fileno()},
to ensure that all internal buffers associated with \var{f} are written
to disk.
! Availability: \UNIX, and Windows starting in 2.3.
\end{funcdesc}
--- 449,461 ----
\begin{funcdesc}{fsync}{fd}
! Force write of file with filedescriptor \var{fd} to disk. On \UNIX,
! this calls the native \cfunction{fsync()} function; on Windows, the
! MS \cfunction{_commit()} function.
! If you're starting with a Python file object \var{f}, first do
\code{\var{f}.flush()}, and then do \code{os.fsync(\var{f}.fileno()},
to ensure that all internal buffers associated with \var{f} are written
to disk.
! Availability: \UNIX, and Windows starting in 2.2.3.
\end{funcdesc}