#include <unistd.h> int rmdir( const char *pathname );
pathname does not support the removal
of directories.
pathname points ouside your accessible address space.
pathname was not
allowed for the process's effective uid, or one of the directories in
pathname did not allow search (execute) permission.
pathname has the stickybit (S_ISVTX)
set and the process's effective uid is neither the uid of the file to
be delected nor that of the director containing it.
pathname was too long.
pathname does not exist or is a
dangling symbolic link.
pathname, or a component used as a directory in pathname,
is not, in fact, a directory.
pathname contains entries other than . and .. .
pathname is the current working directory or root directory of
some process
pathname is the current directory or root directory of some
process.
pathname refers to a file on a read-only filesystem.
pathname contains a reference to a circular symbolic link
rmdir deletes a directory, which must be empty
NONE
Copyright © 1988-2004 OAR Corporation