rmdir: work around cygwin 1.5.x and mingw bugs
authorEric Blake <ebb9@byu.net>
Wed, 16 Sep 2009 16:08:55 +0000 (10:08 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 17 Sep 2009 02:31:07 +0000 (20:31 -0600)
commitb433e6454b40de02a3f208a52a4a3813d26a14e8
treee6081c8917ebe108e149b4c5169d504bfd33246b
parentc9dd0005fe00602d13c3d54f0834655b1e769520
rmdir: work around cygwin 1.5.x and mingw bugs

* m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
* lib/rmdir.c (rmdir): Work around it.
* modules/rmdir (Status, Notice): No longer obsolete.
(Files): Add dos.m4.
(Depends-on): Add unistd.
(configure.ac): Set witnesses.
(License): Relax to LGPLv2+.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
* modules/unistd (Makefile.am): Substitute witnesses.
* lib/unistd.in.h (rmdir): Declare replacement.
* doc/posix-functions/rmdir.texi (rmdir): Document this.
* modules/rmdir-tests: New tests.
* tests/test-rmdir.c: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/rmdir.texi
lib/rmdir.c
lib/unistd.in.h
m4/rmdir.m4
m4/unistd_h.m4
modules/rmdir
modules/rmdir-tests [new file with mode: 0644]
modules/unistd
tests/test-rmdir.c [new file with mode: 0644]