/* this function is a POSIX compliant version, which will remove a directory. */
int rmdir(const char *pathname)
/* this function is a POSIX compliant version, which will remove a directory. */
int rmdir(const char *pathname)
{
    int result;
    result = dfs_file_unlink(pathname);
    if (result < 0)
    {
        rt_set_errno(result);
        return -1;
    }
    return 0;
}