<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Read (system call) - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=read_(system_call)&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=read_%28system_call%29&amp;p=3">3.Next</a>
</p>
<p>the number of which is specified by the caller, from the file and stores then into a buffer supplied by the calling process.</p>

<p>The read system call takes three arguments:</p>

<p>
# The file descriptor of the file.<br/>
# The buffer where the read data is to be stored.<br/>
# The number of bytes to be read from the file.</p>

<p><big>POSIX usage</big></p>
<p>The read system call interface is standardized by the POSIX specification. Data from a file is read by calling the read function:</p>

<p><syntaxhighlight lang="c">ssize_t read(int fd, void* buf, size_t count);</syntaxhighlight></p><p>
<a accesskey="1" href="page.php?w=read_(system_call)&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=read_%28system_call%29&amp;p=3">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
