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

📄 syscalls_26.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 - readlink</TITLE>
<P>Go to the <A HREF="syscalls_25.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_25.html">previous</A>, <A HREF="syscalls_27.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_27.html">next</A> section.<P>
<H2><A NAME="SEC26" HREF="syscalls_toc.html#SEC26" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_toc.html#SEC26">readlink</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int readlink(const char *<VAR>path</VAR>, char *<VAR>buf</VAR>, size_t
<VAR>bufsiz</VAR>);</CODE>
<P>
<H3>PARAMETERS</H3>
<P>
<VAR>path</VAR>: [in] points to the symlink to read.
<P>
<VAR>buf</VAR>: [out] points to the buffer where to put the information.
<P>
<VAR>bufsiz</VAR>: [in] the maximum size of the buffer.
<P>
<H3>DESCRIPTION</H3>
<P>
Reads the content of a symlink.
<P>
<H3>RETURN VALUE</H3>
<P>
On success, returns the number of bytes read. On error, returns -1 and
sets <CODE>errno</CODE> to one of the following value:
<P>
<UL>
<LI><CODE>EINVAL</CODE>: the path contains a character outside the [0,127]
range or the file is not a symlink.
<LI><CODE>ENOTDIR</CODE>, <CODE>ENAMETOOLONG</CODE>, <CODE>ENOENT</CODE>,
<CODE>EACCESS</CODE>, <CODE>ELOOP</CODE>, <CODE>EIO</CODE> or <CODE>EFAULT</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_25.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_25.html">previous</A>, <A HREF="syscalls_27.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_27.html">next</A> section.<P>

⌨️ 快捷键说明

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