This is the mail archive of the
cygwin-developers@sources.redhat.com
mailing list for the Cygwin project.
RFD: remove(3)
- To: cygwin-developers at cygwin dot com
- Subject: RFD: remove(3)
- From: Corinna Vinschen <vinschen at redhat dot com>
- Date: Tue, 19 Dec 2000 10:47:46 +0100
- Reply-To: cygwin-developers at cygwin dot com
The remove(3) call in newlib is implemented as a simple call to unlink(2).
SUSv2/Linux/OpenBSD on the other hand define remove(3) as follows:
If path does not name a directory, remove(path) is equivalent to unlink(path).
If path names a directory, remove(path) is equivalent to rmdir(path).
I would plead to implement our own remove(3) call, overriding the newlib
implementation. AFAICS, we can't change the newlib implementation because
newlib doesn't know of rmdir(2) at all.
Thoughts?
Corinna