Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com From: Corinna Vinschen Date: Tue, 19 Dec 2000 10:47:46 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" To: cygwin-developers AT cygwin DOT com Subject: RFD: remove(3) Reply-To: cygwin-developers AT cygwin DOT com MIME-Version: 1.0 Message-Id: <00121910474600.28008@cygbert> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA12563 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