Date: Sat, 26 Feb 2005 01:39:07 -0800 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: Yan Yu <yanyu@CS.UCLA.EDU> Cc: freebsd-hackers@freebsd.org Subject: Re: send file descriptor via ipc Message-ID: <20050226093907.GM89312@funkthat.com> In-Reply-To: <Pine.GSO.4.58.0502260043200.12442@panther.cs.ucla.edu> References: <20050226072645.76950.qmail@web26802.mail.ukl.yahoo.com> <Pine.GSO.4.58.0502260043200.12442@panther.cs.ucla.edu>
index | next in thread | previous in thread | raw e-mail
Yan Yu wrote this message on Sat, Feb 26, 2005 at 00:58 -0800:
> Hello, there,
> I am looking for the function that handle send/recv file descriptors
> through sendmsg/recvmsg?
> by looking through source files,
> unp_internalize/unp_externalize in kern/uipc-usrreq.c seems relevant..
>
> but i am not sure since i could not guess the meaning of the function
> name.. (btw, what is "unp", the prefix in the function name stands for?)
> Can someone please confirm if it is the right function or point
> me to the right one i should look at?
I'd highly recommend that you get the book APUE (Advance Programming
in the Unix Environment by the late Richard Stevens... It's a great
book and covers this topic...
You can also look at unix(4) which has a brief description.. You must
use unix domain sockets in order to pass file descriptors, and so the
unp probably refers to UNix Protocol... but I could be wrong about
that...
--
John-Mark Gurney Voice: +1 415 225 5579
"All that I will do, has been done, All that I have, has not."
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050226093907.GM89312>
