27 lines
1.2 KiB
HTML
27 lines
1.2 KiB
HTML
<html><!-- This HTML file has been created by texi2html 1.29
|
|
from syscalls.texi on 4 June 1994 -->
|
|
|
|
<TITLE>Syscall specifications of Linux - fsync</TITLE>
|
|
<P>Go to the <A HREF="syscalls_14.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_14.html">previous</A>, <A HREF="syscalls_16.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_16.html">next</A> section.<P>
|
|
<H2><A NAME="SEC15" HREF="syscalls_toc.html#SEC15" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC15">fsync</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>int fsync(int <VAR>fd</VAR>);</CODE>
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
Synchronizes the state of the file on disk with the state of the file in
|
|
core. (For one thing, it flushes the file buffers.)
|
|
<P>
|
|
<H3>PARAMETERS</H3>
|
|
<P>
|
|
<VAR>fd</VAR>: [in] the file to sync.
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
On success zero is returned. On error, -1 is returned and <CODE>errno</CODE> is
|
|
set to one of: <CODE>EINVAL</CODE>, <CODE>EBADF</CODE> or <CODE>EIO</CODE>.
|
|
<P>
|
|
<P>Go to the <A HREF="syscalls_14.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_14.html">previous</A>, <A HREF="syscalls_16.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_16.html">next</A> section.<P>
|