/* rmdir.c (emx+gcc) -- Copyright (c) 1990-1996 by Eberhard Mattes */

#include <stdlib.h>
#include <errno.h>
#include <emx/syscalls.h>

int _rmdir (const char *name)
{
  if (__rmdir (name) == 0)
    return 0;
  if (errno == EACCES)
    errno = ENOTEMPTY;
  return -1;
}
