📄 syscalls_28.html
字号:
<!-- This HTML file has been created by texi2html 1.29
from syscalls.texi on 4 June 1994 -->
<TITLE>Syscall specifications of Linux - rmdir</TITLE>
<P>Go to the <A HREF="syscalls_27.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_27.html">previous</A>, <A HREF="syscalls_29.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_29.html">next</A> section.<P>
<H2><A NAME="SEC28" HREF="syscalls_toc.html#SEC28" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_toc.html#SEC28">rmdir</A></H2>
<P>
<H3>SYNOPSIS</H3>
<P>
<CODE>int rmdir(const char *<VAR>path</VAR>);</CODE>
<H3>PARAMETERS</H3>
<P>
<VAR>path</VAR>: [in] points to path of directory to remove.
<P>
<H3>DESCRIPTION</H3>
<P>
Removes a directory. The directory to be removed must be empty.
<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 directory removal,
or the directory containing <VAR>path</VAR> and the task's effective uid is
not equal to the uid of the file or the directory containing it.
<LI><CODE>EFAULT</CODE>, <CODE>EACCESS</CODE>, <CODE>ENAMETOOLONG</CODE>, <CODE>ENOENT</CODE>,
<CODE>ENOTDIR</CODE>, <CODE>ENOTEMPTY</CODE>, <CODE>EBUSY</CODE>, <CODE>ENOMEM</CODE>,
<CODE>EROFS</CODE> or <CODE>ELOOP</CODE>.
</UL>
<P>
<P>Go to the <A HREF="syscalls_27.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_27.html">previous</A>, <A HREF="syscalls_29.html" tppabs="http://personal.xfol.com/%7erezaie/syscall/syscalls_29.html">next</A> section.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -