Re: Using struct proc
Re: Using struct proc
- Subject: Re: Using struct proc
- From: Matt Jaffa <email@hidden>
- Date: Sat, 10 Jan 2004 14:41:21 -0700
Ok I figured out how to get the path of the current running apps, even
those found within Classic.
I have another question though, Is there a way to view or atleast
maybe know what socket filters are running on machine?
On Jan 10, 2004, at 11:53 AM, Justin Walker wrote:
On Saturday, January 10, 2004, at 10:21 AM, Matt Jaffa wrote:
Hi,
Using the Proc structure, is there a way to get the information of
the app's name, including the directory it is in?
Like /Applications/TextEdit.app/contents/MacOS/TextEdit ?
No. The proc structure contains a (possibly shortened) command name,
but not the directory path. It also contains a pointer to the vnode
for the executable. You could use that to work backwards to get "a"
path to the executable. There really is no way to know what path was
used (because of links, symbolic or hard).
What are you trying to do?
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Some people have a mental
| horizon of radius zero, and
| call it their point of view.
| -- David Hilbert
*--------------------------------------
*-------------------------------*
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.