site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hello, You might want to look at this example: http://gobsd.com/code/freebsd/lib/libkvm/kvm_file.c Bye Alex Am 25.12.2005 um 17:32 schrieb Chen Ben: Hi all! How can I list all open files of one process? I have used sysctl to list many process infomations, but I cannot find a way to get something like the vnode or file descripters of one process. What should I do? _______________________________________________ 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... I am currently working on this, too, and sysctl sounds to be a good way to got with CTL_KERN and KERN_FILE. Something that scared me was this post: http://lists.apple.com/ archives/darwin-kernel/2004/Mar/msg00034.html but I will try if that still is the case Thanks -- Ben Chen, Apple Technology Lab of Software Engineering School, Tongji University _______________________________________________ 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/below%40mac.com This email sent to below@mac.com This email sent to site_archiver@lists.apple.com