36 lines
1.5 KiB
HTML
36 lines
1.5 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 - write</TITLE>
|
|
<P>Go to the <A HREF="syscalls_34.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_34.html">previous</A>, <A HREF="syscalls_36.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_36.html">next</A> section.<P>
|
|
<H2><A NAME="SEC35" HREF="syscalls_toc.html#SEC35" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_toc.html#SEC35">write</A></H2>
|
|
<P>
|
|
<H3>SYNOPSIS</H3>
|
|
<P>
|
|
<CODE>size_t write(int <VAR>fd</VAR>, const char *<VAR>buf</VAR>, size_t <VAR>count</VAR>);</CODE>
|
|
|
|
<H3>PARAMETERS</H3>
|
|
<P>
|
|
<VAR>fd</VAR>: [in] the file descriptor to read from.
|
|
<P>
|
|
<VAR>buf</VAR>: [out] the buffer where to store the data read.
|
|
<P>
|
|
<VAR>count</VAR>: [in] the maximum count of bytes to read.
|
|
<P>
|
|
<H3>DESCRIPTION</H3>
|
|
<P>
|
|
Read up to <VAR>count</VAR> bytes form <VAR>fd</VAR>.
|
|
<P>
|
|
<H3>RETURN VALUE</H3>
|
|
<P>
|
|
On success, the number of bytes read. On error, returns -1 and sets
|
|
<CODE>errno</CODE> to one of the following values:
|
|
<P>
|
|
<UL>
|
|
<LI><CODE>EINVAL</CODE>: the kind of object attached to <VAR>fd</VAR> cannot be
|
|
written to.
|
|
<LI><CODE>EBADF</CODE>, <VAR>EFAULT</VAR>, <VAR>EPIPE</VAR>, <CODE>EINTR</CODE>,
|
|
<CODE>EAGAIN</CODE>, <CODE>ENOSPC</CODE>.
|
|
</UL>
|
|
<P>Go to the <A HREF="syscalls_34.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_34.html">previous</A>, <A HREF="syscalls_36.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_36.html">next</A> section.<P>
|