[dtrace-discuss] Re: How to get absolute path?
Ian
ian.archer.am.i at gmail.com
Mon Jan 8 15:07:37 PST 2007
Assuming we lack access to the fds structure, what would an alternative be? I ask because I'm using an implementation of dtrace on Mac OS X, which seems to be a mostly complete port with a few missing pieces.
I'm comfortable building and maintaining my own fds structure, populating it with the path argument to open that precedes reads and writes on the fd. This approach has been met with some success. However, open accepts relative paths, meaning sometimes the file name will not be useful.
I tried to bypass this by using the cwd of the accessing process, but even this was often incomplete! Is there any way around this?
This message posted from opensolaris.org
More information about the dtrace-discuss
mailing list