From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13925 invoked by alias); 20 Feb 2003 18:13:01 -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 13902 invoked from network); 20 Feb 2003 18:13:00 -0000 Received: from unknown (HELO ns2.uk.superh.com) (193.128.105.170) by 172.16.49.205 with SMTP; 20 Feb 2003 18:13:00 -0000 Received: from sh-uk-ex01.uk.w2k.superh.com (sh-uk-ex01 [192.168.16.17]) by ns2.uk.superh.com (8.11.6+Sun/8.11.6) with ESMTP id h1KHtFC02320 for ; Thu, 20 Feb 2003 17:55:15 GMT content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: ser-pipe.c porting to MinGW X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Thu, 20 Feb 2003 18:13:00 -0000 Message-ID: <9FF3133289A7A84E81E2ED8F5E56B379537CBA@sh-uk-ex01.uk.w2k.superh.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Fyles, Matthew" To: X-SW-Source: 2003-02/txt/msg00423.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.=20 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. Any thoughts?