Go to the previous, next section.
int rmdir(const char *path);
path: [in] points to path of directory to remove.
Removes a directory. The directory to be removed must be empty.
On success, returns zero. On error, returns -1 and sets errno
to
one of the following value:
EPERM
: the file system does not support directory removal,
or the directory containing path and the task's effective uid is
not equal to the uid of the file or the directory containing it.
EFAULT
, EACCESS
, ENAMETOOLONG
, ENOENT
,
ENOTDIR
, ENOTEMPTY
, EBUSY
, ENOMEM
,
EROFS
or ELOOP
.
Go to the previous, next section.