From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11685 invoked by alias); 12 Apr 2007 19:37:48 -0000 Received: (qmail 11674 invoked by uid 22791); 12 Apr 2007 19:37:47 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Apr 2007 20:37:44 +0100 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0) with ESMTP id l3CJbPTx002901; Thu, 12 Apr 2007 21:37:25 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0/Submit) id l3CJbOA0022777; Thu, 12 Apr 2007 21:37:24 +0200 (CEST) Date: Thu, 12 Apr 2007 19:37:00 -0000 Message-Id: <200704121937.l3CJbOA0022777@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: eliz@gnu.org CC: brobecker@adacore.com, gdb@sourceware.org In-reply-to: (message from Eli Zaretskii on Thu, 12 Apr 2007 22:33:24 +0300) Subject: Re: [mingw32] stdin redirection References: <20070411134219.GA33609@adacore.com> <20070411144451.GA21140@caradoc.them.org> <20070411145104.GE58502@adacore.com> <20070411151234.GA22185@caradoc.them.org> <20070412145818.GG3886@adacore.com> <20070412151221.GA856@caradoc.them.org> <20070412164744.GL3886@adacore.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00086.txt.bz2 > Date: Thu, 12 Apr 2007 22:33:24 +0300 > From: Eli Zaretskii > > > Date: Thu, 12 Apr 2007 18:47:44 +0200 > > From: Joel Brobecker > > > > > > If we could find a way to replace the current implementation of > > > > fd_is_pipe into something that avoids using any of the pipe functions, > > > > then that would probably solve our problem. Unfortunately, despite > > > > our intensive search of MSDN, nothing turned up. > > > > > > To the best of my knowledge there is no way. > > > > That's what we though too :-(. > > Can't we maintain a list of all file descriptors used by GDB, where > those which are open on a pipe are marked as such? Then we'd _know_ > what API with each fd to use without relying on dysfunctional tests. Guys, it sounds like you're reinventing a big chunk of Cygwin.