38 lines
1.6 KiB
HTML
38 lines
1.6 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 - readlink</TITLE>
|
|
<P>Go to the <A HREF="syscalls_25.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_25.html">previous</A>, <A HREF="syscalls_27.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_27.html">next</A> section.<P>
|
|
<H2><A NAME="SEC26" HREF="syscalls_toc.html#SEC26" tppabs="http://www.infran.ru/TechInfo/syscalls/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://www.infran.ru/TechInfo/syscalls/syscalls_25.html">previous</A>, <A HREF="syscalls_27.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_27.html">next</A> section.<P>
|