add directory Ref-docs
This commit is contained in:
33
Ref-docs/syscalls/syscalls_33.html
Normal file
33
Ref-docs/syscalls/syscalls_33.html
Normal file
@@ -0,0 +1,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://www.infran.ru/TechInfo/syscalls/syscalls_32.html">previous</A>, <A HREF="syscalls_34.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_34.html">next</A> section.<P>
|
||||
<H2><A NAME="SEC33" HREF="syscalls_toc.html#SEC33" tppabs="http://www.infran.ru/TechInfo/syscalls/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://www.infran.ru/TechInfo/syscalls/syscalls_32.html">previous</A>, <A HREF="syscalls_34.html" tppabs="http://www.infran.ru/TechInfo/syscalls/syscalls_34.html">next</A> section.<P>
|
||||
Reference in New Issue
Block a user