Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: "Fyles, Matthew" <matthew.fyles@superh.com>
Cc: gdb@sources.redhat.com
Subject: Re: ser-pipe.c porting to MinGW
Date: Fri, 21 Feb 2003 21:46:00 -0000	[thread overview]
Message-ID: <3E569F2E.9000502@redhat.com> (raw)
In-Reply-To: <9FF3133289A7A84E81E2ED8F5E56B379537CBA@sh-uk-ex01.uk.w2k.superh.com>

> 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



      parent reply	other threads:[~2003-02-21 21:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-20 18:13 Fyles, Matthew
2003-02-21  1:34 ` Christopher Faylor
2003-02-21 21:46 ` Andrew Cagney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E569F2E.9000502@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=matthew.fyles@superh.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox