summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-04-23 19:47:14 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-04-23 19:47:14 (GMT)
commit2d1c846b738d72d007569e59dbd96401a0002118 (patch)
tree29a7c65eddc32b14ccdf7829d0c5a6939ad706c5
parent5eccabc7306db0e0db237c41424a56b61056db09 (diff)
downloadcpython-2d1c846b738d72d007569e59dbd96401a0002118.zip
cpython-2d1c846b738d72d007569e59dbd96401a0002118.tar.gz
cpython-2d1c846b738d72d007569e59dbd96401a0002118.tar.bz2
Clarified new fsync() docs.
-rw-r--r--Doc/lib/libos.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index 8437614..9714036 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -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}