Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to list all files opened by a process on the Mac OS X?




On Jan 24, 2006, at 12:02 PM, email@hidden wrote:

From: Alexander von Below <email@hidden>
Subject: Re: How to list all files opened by a process on the Mac OS
	X?
To: Chen Ben <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hello,

I am currently working on this, too, and sysctl sounds to be a good
way to got with CTL_KERN and KERN_FILE.

You might want to look at this example:
http://gobsd.com/code/freebsd/lib/libkvm/kvm_file.c

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

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?

To start with, why are you interested in this information? What do you expect to do with it?


 = Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.