diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-04-23 19:47:14 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-04-23 19:47:14 (GMT) |
commit | 2d1c846b738d72d007569e59dbd96401a0002118 (patch) | |
tree | 29a7c65eddc32b14ccdf7829d0c5a6939ad706c5 /Doc/lib/libos.tex | |
parent | 5eccabc7306db0e0db237c41424a56b61056db09 (diff) | |
download | cpython-2d1c846b738d72d007569e59dbd96401a0002118.zip cpython-2d1c846b738d72d007569e59dbd96401a0002118.tar.gz cpython-2d1c846b738d72d007569e59dbd96401a0002118.tar.bz2 |
Clarified new fsync() docs.
Diffstat (limited to 'Doc/lib/libos.tex')
-rw-r--r-- | Doc/lib/libos.tex | 9 |
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} |