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

📄 syscalls_30.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 - symlink</TITLE>
<P>Go to the <A HREF="syscalls_29.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_29.html">previous</A>, <A HREF="syscalls_31.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_31.html">next</A> section.<P>
<H2><A NAME="SEC30" HREF="syscalls_toc.html#SEC30" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_toc.html#SEC30">symlink</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int symlink(const char *<VAR>src</VAR>, const char *<VAR>dest</VAR>);</CODE>
 
<H3>PARAMETERS</H3>
<P>
<VAR>src</VAR>: [in] the new link.
<P>
<VAR>dest</VAR>: [in] the file to point to.
<P>
<H3>DESCRIPTION</H3>
<P>
Creates a symlink form <VAR>src</VAR> to <VAR>dest</VAR>. The destination does not
need to exist at the time of the creation of the link.
<P>
<H3>RETURN VALUE</H3>
<P>
On success, returns zero. On error, returns -1 and sets <CODE>errno</CODE> to
one of the following value:
<P>
<UL>
<LI><CODE>EPERM</CODE>: the file system does not support symlinks.
<LI><CODE>EFAULT</CODE>, <CODE>EACCESS</CODE>, <CODE>ENAMETOOLONG</CODE>, <CODE>ENOENT</CODE>,
<CODE>ENOTDIR</CODE>, <CODE>ENOMEM</CODE>, <CODE>EROFS</CODE>, <CODE>EEXIST</CODE>,
<CODE>ELOOP</CODE>, <CODE>ENOSPC</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_29.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_29.html">previous</A>, <A HREF="syscalls_31.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_31.html">next</A> section.<P>

⌨️ 快捷键说明

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