From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1416 invoked by alias); 15 Dec 2014 17:48:21 -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 1400 invoked by uid 89); 15 Dec 2014 17:48:20 -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,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout26.012.net.il Received: from mtaout26.012.net.il (HELO mtaout26.012.net.il) (80.179.55.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Dec 2014 17:48:13 +0000 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NGM00500XC94G00@mtaout26.012.net.il> for gdb-patches@sourceware.org; Mon, 15 Dec 2014 19:47:16 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGM00KU6XERV380@mtaout26.012.net.il>; Mon, 15 Dec 2014 19:47:16 +0200 (IST) Date: Mon, 15 Dec 2014 17:48:00 -0000 From: Eli Zaretskii Subject: Re: [mingw rfc] Add mkdtemp to gdb/gnulib/ [Re: [PATCH v4 14/14] the "compile" command] In-reply-to: <20141215171225.GA19674@host2.jankratochvil.net> To: Jan Kratochvil Cc: brobecker@adacore.com, yao@codesourcery.com, gdb-patches@sourceware.org, ktietz@redhat.com Reply-to: Eli Zaretskii Message-id: <83388gyfck.fsf@gnu.org> References: <20141123192713.32193.57150.stgit@host1.jankratochvil.net> <20141123192900.32193.65726.stgit@host1.jankratochvil.net> <87r3w2vkhv.fsf@codesourcery.com> <20141214075258.GA26795@host2.jankratochvil.net> <87egs2vcfu.fsf@codesourcery.com> <20141214182341.GA2908@host2.jankratochvil.net> <87a92pvc0w.fsf@codesourcery.com> <20141215124358.GU5457@adacore.com> <20141215171225.GA19674@host2.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00404.txt.bz2 > Date: Mon, 15 Dec 2014 18:12:25 +0100 > From: Jan Kratochvil > Cc: Yao Qi , gdb-patches@sourceware.org, Kai Tietz > > Does it mean that after upgrading gnulib we can drop the MS-Windows host > routines (which need to be written yet) again? > > IMO a more clean solution would be s/gdb_select/select/g, drop gdb_select from > mingw-hdep.c and import gnulib select instead which handles what gdb_select is > there fore, hopefully more transparently. But I haven't tried any of that. Beware: each such replacement must be carefully studied before concluding that it is what we want. In particular, Gnulib's 'select' is a "package deal": when you import it, you get more than what you asked for. Some potential issues are with blocking/non-blocking sockets and anonymous pipes. IOW, it's not an easy decision, at least not with 'select'.