⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syscalls_35.html

📁 Linux系统调用
💻 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://personal.xfol.com/%7erezaie/syscall/syscalls_34.html">previous</A>, <A HREF="syscalls_36.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_36.html">next</A> section.<P>
<H2><A NAME="SEC35" HREF="syscalls_toc.html#SEC35" tppabs="http://personal.xfol.com/%7erezaie/syscall/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://personal.xfol.com/%7erezaie/syscall/syscalls_34.html">previous</A>, <A HREF="syscalls_36.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_36.html">next</A> section.<P>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -