lkml.org 
[lkml]   [2000]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question about I_SENDFD


On Thu, 7 Sep 2000, Andrey G. Kaplanov wrote:

> Respected colleagues!
> In advanced Unix systems, including SCO UnixWare, SUN OS
> there is a facility of transmission of descriptor of openning file
> through stream, by means of the command ioctl I_SENDFD.

Linux has no streams. It's Missed'em'Vism and it's not supported.
Use sockets.

> For instance, following command writes transDsc descriptor to the stream streamDsc.
> int ret = ioctl(streamDsc, I_SENDFD, transDsc);
> On Red Hat Linux kernel 2.2.16 ret is -1, errno is 22 - Invalid argument.
> That is here done not so, or be other ways of transmission of file descriptor between processes?

Same as on every sane UNIX system. sendmsg() on AF_UNIX socket with
SCM_RIGHTS cookie.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.071 / U:3.848 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site