]> granicus.if.org Git - python/commitdiff
Clarified new fsync() docs.
authorTim Peters <tim.peters@gmail.com>
Wed, 23 Apr 2003 19:47:14 +0000 (19:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 23 Apr 2003 19:47:14 +0000 (19:47 +0000)
Doc/lib/libos.tex

index 84376142ddf670545ac14334cd44688546b0bb94..971403605536ab73383838cb725eb85bb08511c3 100644 (file)
@@ -448,14 +448,15 @@ Availability: \UNIX.
 \end{funcdesc}
 
 \begin{funcdesc}{fsync}{fd}
-Force write of file with filedescriptor \var{fd} to disk.
+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.
 
-On Windows this calls the MS \cfunction{_commit()} function.  If you're
-starting with a Python file object \var{f}, first do
+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.
+Availability: \UNIX, and Windows starting in 2.2.3.
 \end{funcdesc}
 
 \begin{funcdesc}{ftruncate}{fd, length}