From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6114 invoked by alias); 18 Dec 2014 17:23:20 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 6104 invoked by uid 89); 18 Dec 2014 17:23:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout21.012.net.il Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Dec 2014 17:23:18 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NGS00D00G686M00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Thu, 18 Dec 2014 19:23:15 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGS00C2TGARZA90@a-mtaout21.012.net.il>; Thu, 18 Dec 2014 19:23:15 +0200 (IST) Date: Thu, 18 Dec 2014 17:23:00 -0000 From: Eli Zaretskii Subject: Re: [patch] compile: rm -rf -> ftw()+rmdir()+unlink() [Re: [patch] compile: Fix MinGW build] In-reply-to: <20141217210144.GA26674@host2.jankratochvil.net> To: Jan Kratochvil Cc: ktietz@redhat.com, sellcey@imgtec.com, brobecker@adacore.com, yao@codesourcery.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83wq5oub28.fsf@gnu.org> References: <20141217210144.GA26674@host2.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00535.txt.bz2 > Date: Wed, 17 Dec 2014 22:01:44 +0100 > From: Jan Kratochvil > Cc: Eli Zaretskii , brobecker@adacore.com, yao@codesourcery.com, > gdb-patches@sourceware.org > > > Why not using here instead an implementation using FTW-API? > > Done. > > > > At least mingw-w64 added this API recently to runtime for gcc's sake, so > > implementation of an 'rm -rf' should be pretty easy. > > It has built on Fedora 21 x86_64 mingw64 for both 32-bit and 64-bit targets. > I am not sure about various other Unices but if the patch gets approved... There's no ftw in MinGW32.