RMDIR(2) System Calls RMDIR(2)
rmdir - remove (delete) a directory
int rmdir (const char *path);
rmdir will remove the directory named by path if the directory is
empty, if it is not a mount point, and if the calling process has write
permission in the parent directory. The directory is considered empty
when it contains only . and .. entries.
0 if successful, -1 and sets errno otherwise.
Since rmdir is not yet implemented as a system call but as a library
call, it is possible to delete a directory which is being used by a
process, including that of rmdir.
Devin Reade, <email@example.com>
GNO 17 October 1997 RMDIR(2)
Man(1) output converted with