rmdir(3)
DESCRIPTION
Removes an empty directory at path.
SYNOPSIS
#include <unistd.h> int rmdir(const char *path);
RETURN VALUE
- Returns zero, or -1 and sets errno.
ERRORS
-EFAULT- Path is null or cannot be read.
-EINVAL- Path resolution fails.
-ENOENT- The directory does not exist.
-ENOTDIR- Path names a non-directory.
-ENOTEMPTY- The directory contains an entry.
-EEXIST- Path is the mounted filesystem root.
NOTES
This is the native unlink operation with its remove-directory flag.