Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* passing an open file or socket descriptor
@ 2001-11-29 22:16 David Nicol
  2001-11-30 22:47 ` Oisin McGuinness
  0 siblings, 1 reply; 3+ messages in thread
From: David Nicol @ 2001-11-29 22:16 UTC (permalink / raw)



is there a way to pass an open fd to another process?


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

* Re: passing an open file or socket descriptor
  2001-11-29 22:16 passing an open file or socket descriptor David Nicol
@ 2001-11-30 22:47 ` Oisin McGuinness
  2001-11-30 23:38   ` Oisin McGuinness
  0 siblings, 1 reply; 3+ messages in thread
From: Oisin McGuinness @ 2001-11-30 22:47 UTC (permalink / raw)


David Nicol wrote:
> 
> is there a way to pass an open fd to another process?


Read Chapter 15 in the late great W. Richard Stevens' book, "Advanced
Programming in the Unix Environment",
published by Addison Wesley, 1992, ISBN 0-201-56317-7. (Everyone should
own this book.)
He describes the ins and outs of this, with lots of source code. (If you
are doing this for IPC, you
should also consult Volume 2 of the 2nd edition of his "Unix Network
Programming", Prentice Hall 1999, ISBN 0-13-081081-9. It is a great pity
volume 3 did not get done.)

-- 

Oisin McGuinness

SMBC Capital Markets
277 Park Avenue
New York NY 10172
USA

(212)-224-4913, email: oisin@smbc-cm.com


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

* Re: passing an open file or socket descriptor
  2001-11-30 22:47 ` Oisin McGuinness
@ 2001-11-30 23:38   ` Oisin McGuinness
  0 siblings, 0 replies; 3+ messages in thread
From: Oisin McGuinness @ 2001-11-30 23:38 UTC (permalink / raw)


Oisin McGuinness wrote:
> 
> David Nicol wrote:
> ?
> ? is there a way to pass an open fd to another process?
> 
> Read Chapter 15 in the late great W. Richard Stevens' book, "Advanced
> Programming in the Unix Environment",
> published by Addison Wesley, 1992, ISBN 0-201-56317-7. (Everyone should
> own this book.)
> He describes the ins and outs of this, with lots of source code.
> 
> --
> 
> Oisin McGuinness

It is sort of obnoxious to follow up on my own reply, but all three of
the techniques
described in section 15.3 of Stevens are supported under Tru64Unix: see
streamio(7) for the SVR4 method
used in Stevens 15.3.1, and sendmsg(2) for support for both BSD4.4 and
BSD4.3 methods
as used in Stevens 15.3.3 and 15.3.2 respectively.


-- 

Oisin McGuinness

SMBC Capital Markets
277 Park Avenue
New York NY 10172
USA

(212)-224-4913, email: oisin@smbc-cm.com


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

end of thread, other threads:[~2001-11-30 23:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-29 22:16 passing an open file or socket descriptor David Nicol
2001-11-30 22:47 ` Oisin McGuinness
2001-11-30 23:38   ` Oisin McGuinness

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox