From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28995 invoked by alias); 21 Feb 2003 21:46:00 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 28988 invoked from network); 21 Feb 2003 21:46:00 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 21 Feb 2003 21:46:00 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B7F6B2EF9; Fri, 21 Feb 2003 16:50:38 -0500 (EST) Message-ID: <3E569F2E.9000502@redhat.com> Date: Fri, 21 Feb 2003 21:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.0.2) Gecko/20030217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Fyles, Matthew" Cc: gdb@sources.redhat.com Subject: Re: ser-pipe.c porting to MinGW References: <9FF3133289A7A84E81E2ED8F5E56B379537CBA@sh-uk-ex01.uk.w2k.superh.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00488.txt.bz2 > The pipe_open() function written to work for solaris and linux uses > sockets to re-direct the stdin and stdout of the child process. > Unfortunately Microsoft do not allow sockets to be used with the posix > compatibility functions read, write and dup2 under windows. > > Would the most sensible fix be to use standard pipes and change scb->fd > to have scb->rfd and scd->wfd and then put a wrapper around the > ser_unix_readchar and ser_unix_write functions in ser-pipe.c or can > anyone suggest a more sensible fix. This will work on all hosts not just > win32 so in should be a satisfactory solution, my only concern is > renaming the scb->fd. Ignoring mingw, given that pipe() is so much more portable then socket(), a rewrite, wouldn't hurt. I just don't undersand your comment about ser_unix_*char. Andrew