.TH RMDIR 2 "2 July 1983"
rmdir \- remove a directory file
The directory must not have any entries other
than \*(lq.\*(rq and \*(lq..\*(rq.
A 0 is returned if the remove succeeds; otherwise a \-1 is
returned and an error code is stored in the global location \fIerrno\fP\|.
The named file is removed unless one or more of the
The named directory contains files other than ``.'' and ``..'' in it.
The pathname contains a character with the high-order bit set.
The pathname was too long.
A component of the path prefix is not a directory.
The named file does not exist.
A component of the path prefix denies search permission.
Write permission is denied on the directory containing the link
The directory to be removed is the mount point
for a mounted file system.
The directory entry to be removed resides on a read-only file system.
points outside the process's allocated address space.
Too many symbolic links were encountered in translating the pathname.