This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Bug: remove() only works on files
- From: "David A. Ramos" <daramos at stanford dot edu>
- To: newlib at sourceware dot org
- Date: Fri, 15 Apr 2011 00:09:46 -0700
- Subject: Bug: remove() only works on files
Hi All,
My understanding of ISO C's remove() function is that it should work for both files and directories. That is, it should call unlink() or rmdir(), respectively. However, the code in newlib/libc/stdio/remove.c just forwards the call to unlink(), which fails for directories.
Is this intentional?
Thanks,
-David