public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* sendmsg/recvmsg file descriptor passing
@ 2004-01-15  6:27 David Rosenbloom
  2004-01-15 17:02 ` Brian Ford
  0 siblings, 1 reply; 3+ messages in thread
From: David Rosenbloom @ 2004-01-15  6:27 UTC (permalink / raw)
  To: cygwin

I am unable to get sendmsg and recvmsg to successfully pass open file
descriptors between processes. I am using the Stevens APUE sample as a template,
the 4.3BSD version, since that matches the msghdr struct in cygwin/socket.h. I
notice a bunch of postings in the archive indicating (a) that file descriptor
passing was not supported at one time, and (b) that it may have been
subsequently added - I can't tell from the threads.

What is the current status of this? If implemented, does it have any caveats or
conditions which differ from the BSD implementation? If not implemented for the
passing of open file descriptors, is there an alternative approach (for two
cygwin processes)?

tia,
 - davidr



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sendmsg/recvmsg file descriptor passing
  2004-01-15  6:27 sendmsg/recvmsg file descriptor passing David Rosenbloom
@ 2004-01-15 17:02 ` Brian Ford
  2004-01-15 17:23   ` David Rosenbloom
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Ford @ 2004-01-15 17:02 UTC (permalink / raw)
  To: davidr; +Cc: cygwin

On Thu, 15 Jan 2004, David Rosenbloom wrote:

> I am unable to get sendmsg and recvmsg to successfully pass open file
> descriptors between processes. I am using the Stevens APUE sample as a template,
> the 4.3BSD version, since that matches the msghdr struct in cygwin/socket.h. I
> notice a bunch of postings in the archive indicating (a) that file descriptor
> passing was not supported at one time, and (b) that it may have been
> subsequently added - I can't tell from the threads.
>
I haven't seen any that imply it has been added.

http://sources.redhat.com/ml/cygwin/2004-01/msg00060.html

seems pretty clear to me.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sendmsg/recvmsg file descriptor passing
  2004-01-15 17:02 ` Brian Ford
@ 2004-01-15 17:23   ` David Rosenbloom
  0 siblings, 0 replies; 3+ messages in thread
From: David Rosenbloom @ 2004-01-15 17:23 UTC (permalink / raw)
  To: Brian Ford; +Cc: cygwin

Thanks for the clarification - I missed that post, and was distracted by this
earlier one, which induced optimism:
http://sources.redhat.com/ml/cygwin/2002-06/msg00657.html

So apparently that's that for file descriptor passing. Plz advise if there's
another method that works in cygwin.

- davidr



On Thu, 15 Jan 2004, Brian Ford wrote:

> On Thu, 15 Jan 2004, David Rosenbloom wrote:
>
> > I am unable to get sendmsg and recvmsg to successfully pass open file
> > descriptors between processes. I am using the Stevens APUE sample as a template,
> > the 4.3BSD version, since that matches the msghdr struct in cygwin/socket.h. I
> > notice a bunch of postings in the archive indicating (a) that file descriptor
> > passing was not supported at one time, and (b) that it may have been
> > subsequently added - I can't tell from the threads.
> >
> I haven't seen any that imply it has been added.
>
> http://sources.redhat.com/ml/cygwin/2004-01/msg00060.html
>
> seems pretty clear to me.
>
> --
> Brian Ford
> Senior Realtime Software Engineer
> VITAL - Visual Simulation Systems
> FlightSafety International
> Phone: 314-551-8460
> Fax:   314-551-8444
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-15 17:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-15  6:27 sendmsg/recvmsg file descriptor passing David Rosenbloom
2004-01-15 17:02 ` Brian Ford
2004-01-15 17:23   ` David Rosenbloom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).