Re: Get socket creator (ie: PID & UID)
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Feb 19, 2005, at 12:15 PM, Vincent Pottier wrote: Hi folks, Does someone can explain me how to use it? Thanks in advance, Hi Vincent, the definition is in <sys/vm.h> (in Kernel.framework) ... struct proc *current_proc(void); Regards.....Peter _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I've the tcplogger sample code and I would like to get the socket creator PID and UID. After a few search, It looks that I can get it via current_proc() called on socreate time. But this feature is disable in the sample I have and I get an error when using it. (warning: implicit declaration of function 'current_proc'). I've already try to #include some object but can't make it work. Vincent The struct is subject to change of course, but if you're working with tcplogger then you already know that. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Lovell