This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]