Re: ok, dumb question, but ...
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Good luck, davez On Apr 4, 2006, at 3:38 AM, jmzorko@mac.com wrote: Dave, Regards, John, "I used to read books, but ..." -- Pink Floyd, "Not Now John" Falling You - exploring the beauty of voice and sound http://www.fallingyou.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... There are no officially condoned ways of doing what you want. There are debug tools such as lsof that do it, but they grope around kernel data structures directly. The Unix philosophy is that if you want such a thing in your program, maintain a table that is updated at open()/close() in your program. :-P The ident field is something you passed into the kqueue in the first place. You should, with your data structures, be able to map it back to whatever resource you allocated. After a brief hiatus, i'm back to playing with kqueue / kevent. I've a simple question, though ... from the kevent.ident field, how to I determine the actual resource that this references (filename, socket, etc.)? Oh I understand this ... if I added it, I should know what I added. I likely phrased my question wrong -- is there a way I can map the ident field back into whatever it is e.g. is there a way I can map a FD to a filename (if the ident field is really an FD)? I thought I remembered old C stuff to do this, but ... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Zarzycki