On Jul 6, 2004, at 14:04, Krishna Monian wrote: I am loggin file accesses in certain directories, and passing this on to the user and the user needs the complete path. However, when system calls are made at the terminal only relative paths are used. It would be nice if there was a way to reconstruct the whole path in the kext and pass it on to the user. There *really* is no good way to do that, and if there were, I would argue against doing it in the kernel. At best, you could try to do the (re)construction of the "full path" in user mode. The problem is that "path name" is a unix abstraction, and is not necessarily a file-system concept. In addition, there may not be a well-defined "full path" to a file (think links, hard and symbolic). Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | It's not whether you win or lose... | It's whether *I* win or lose. *--------------------------------------*-------------------------------* _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Justin Walker