Messages in this thread |  | | From | "Andrey G. Kaplanov" <> | Subject | Question about I_SENDFD | Date | Thu, 7 Sep 2000 15:51:24 +0600 |
| |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> <HTML> <HEAD>
<META content=text/html;charset=koi8-r http-equiv=Content-Type> <META content='"MSHTML 4.72.3110.7"' name=GENERATOR> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT size=2>Respected colleagues!<BR>In advanced Unix systems, including SCO UnixWare, SUN OS </FONT></DIV> <DIV><FONT size=2>there is a facility of transmission of descriptor of openning file </FONT></DIV> <DIV><FONT size=2>through stream, by means of the command ioctl I_SENDFD. </FONT></DIV> <DIV><FONT size=2>For instance, following command writes transDsc descriptor to the stream streamDsc.<BR> int ret = ioctl(streamDsc, I_SENDFD, transDsc);<BR>On Red Hat Linux kernel 2.2.16 ret is -1, errno is 22 - Invalid argument.<BR>That is here done not so, or be other ways of transmission of file descriptor between processes?</FONT></DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT size=2></FONT> </DIV> <DIV><FONT size=2>Andrey Kaplanov.</FONT></DIV></BODY></HTML>
|  |