5 POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/rmdir.html}
9 Portability problems fixed by Gnulib:
12 This function mistakenly removes a directory with
13 @code{rmdir("dir/./")} on some platforms:
16 This function fails with @code{EINVAL} instead of the expected
17 @code{ENOTDIR} for @code{rmdir("file/")} on some platforms:
21 Portability problems not fixed by Gnulib:
24 When @code{rmdir} fails because the specified directory is not empty, the
25 @code{errno} value is system dependent.
27 POSIX requires that @code{rmdir("link-to-empty/")} remove @file{empty}
28 and leave @file{link-to-empty} as a dangling symlink. This is
29 counter-intuitive, so some systems fail with @code{ENOTDIR} instead: