📄 syscalls_33.html
字号:
<!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - unlink</TITLE>
<P>Go to the <A HREF="syscalls_32.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_32.html">previous</A>, <A HREF="syscalls_34.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_34.html">next</A> section.<P>
<H2><A NAME="SEC33" HREF="syscalls_toc.html#SEC33" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_toc.html#SEC33">unlink</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int unlink(const char *<VAR>path</VAR>);</CODE>
<H3>PARAMETERS</H3>
<P>
<VAR>path</VAR>: [in] points to the path of the file to unlink.
<P>
<H3>DESCRIPTION</H3>
<P>
Deletes a link to a file. If the file is not used and it was the last
link, the file is also deleted.
<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 directory has the stiky bit on but the calling
taks uid does not match the file uid or the directory uid.
<LI><CODE>EFAULT</CODE>, <CODE>EACCESS</CODE>, <CODE>ENAMETOOLONG</CODE>, <CODE>ENOENT</CODE>,
<CODE>ENOTDIR</CODE>, <CODE>EISDIR</CODE>, <CODE>ENOMEM</CODE>, <CODE>EROFS</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_32.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_32.html">previous</A>, <A HREF="syscalls_34.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_34.html">next</A> section.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -