Re: Current Directory of a Process
Re: Current Directory of a Process
- Subject: Re: Current Directory of a Process
- From: Quinn <email@hidden>
- Date: Thu, 10 Jul 2003 15:25:03 +0100
At 9:58 -0400 10/7/03, Robert Sandilands wrote:
I have seen that basically all file access does provide the full
path except the Terminal.
I guess it depends on whether you want a 100% solution, or just a
statistically significant one.
To keep track of the current directory you just have to keep track
of all SYS_chdir calls... But it is really ugly, but not as ugly as
the solutions you mention.
Indeed.
If I could add a feature request wish for a future version of the
kernel, I would like to see a variable somewhere that stores the
current working directory on a per process basis.
The best place to put such feature requests is into our bug tracking
database. Please include a high-level description of what you're
trying to do and how the feature would facilitate your product.
<
http://developer.apple.com/bugreporter/>
These go directly to the engineers responsible.
I get the impression that your design is predicated on patching the
system call table? If so, I feel compelled to warn you that this is
unlikely to be binary compatible with future releases of Mac OS X.
If you base a product on this technology and ship that product to end
users, you must be prepared to release updates as we update Mac OS X.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.