rmdir
=====

POSIX specification:
 http://www.opengroup.org/onlinepubs/9699919799/functions/rmdir.html

Gnulib module: rmdir

Portability problems fixed by Gnulib:

  * This function mistakenly removes a directory with rmdir("dir/./") on some platforms: Cygwin 1.5.x.

  * This function fails with EINVAL instead of the expected ENOTDIR for rmdir("file/") on some platforms: mingw.

Portability problems not fixed by Gnulib:

  * When rmdir fails because the specified directory is not empty, the errno value is system dependent.

  * POSIX requires that rmdir("link-to-empty/") remove empty and leave link-to-empty as a dangling symlink.  This is counter-intuitive, so some systems fail with ENOTDIR instead: glibc