Manpage of RMDIR
Section: Linux Programmer's Manual (2)
Return to Main Contents
rmdir - delete a directory
int rmdir(const char *pathname);
deletes a directory, which must be empty.
On success, zero is returned. On error, -1 is returned, and
is set appropriately.
The filesystem containing
does not support the removal of directories.
pathname points outside your accessible address space.
Write access to the directory containing
was not allowed for the process's effective uid, or one of the
did not allow search (execute) permission.
The directory containing
has the sticky-bit
set and the process's effective uid is neither the uid of the file to
be deleted nor that of the directory containing it.
pathname was too long.
A directory component in
does not exist or is a dangling symbolic link.
or a component used as a directory in
is not, in fact, a directory.
contains entries other than
. and .. .
is the current working directory or root directory of some process.
Insufficient kernel memory was available.
refers to a file on a read-only filesystem.
Too many symbolic links were encountered in resolving
SVr4, SVID, POSIX, BSD 4.3
Infelicities in the protocol underlying NFS can cause the unexpected
disappearance of directories which are still being used.
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 15:14:12 GMT, July 17, 2018