Hash :
6ca71ffe
Author :
Date :
2009-09-14T16:57:55
remove: new module, for mingw and Solaris 9 bugs
Mingw obeys C89, but not POSIX, by not handling directories.
Solaris remove("file/") mistakenly succeeded.
* modules/remove: New file.
* lib/remove.c: Likewise.
* m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
* modules/stdio (Makefile.am): Use them.
* lib/stdio.in.h (remove): Declare replacement.
* MODULES.html.sh (systems lacking POSIX:2008): Mention module.
* doc/posix-functions/remove.texi (remove): Likewise.
* modules/remove-tests: New test.
* tests/test-remove.c: Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Description:
remove(): remove a file or directory
Files:
lib/remove.c
m4/dos.m4
m4/remove.m4
Depends-on:
rmdir
stdio
unlink
configure.ac:
gl_FUNC_REMOVE
gl_STDIO_MODULE_INDICATOR([remove])
Makefile.am:
Include:
<stdio.h>
License:
LGPL
Maintainer:
Eric Blake