Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2d1c846b
Commit
2d1c846b
authored
Apr 23, 2003
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified new fsync() docs.
parent
5eccabc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Doc/lib/libos.tex
Doc/lib/libos.tex
+5
-4
No files found.
Doc/lib/libos.tex
View file @
2d1c846b
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment