From owner-freebsd-fs@FreeBSD.ORG Fri Jul 2 19:29:41 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC42416A4CE for ; Fri, 2 Jul 2004 19:29:41 +0000 (GMT) Received: from web13123.mail.yahoo.com (web13123.mail.yahoo.com [216.136.174.141]) by mx1.FreeBSD.org (Postfix) with SMTP id 9CF1543D2F for ; Fri, 2 Jul 2004 19:29:41 +0000 (GMT) (envelope-from k_tutorials@yahoo.com) Message-ID: <20040702192845.79255.qmail@web13123.mail.yahoo.com> Received: from [209.213.198.25] by web13123.mail.yahoo.com via HTTP; Fri, 02 Jul 2004 12:28:45 PDT Date: Fri, 2 Jul 2004 12:28:45 -0700 (PDT) From: Krishna Monian To: fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Getting the complete path for a file X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 19:29:41 -0000 Hi All, I am in the process of writing a file logging utility. I am going about doing this by rerouting vfs system calls, and logging the information needed. However I am facing the following problem. When files are accessed through the terminal, relative paths are used as opposed to complete paths. Is there any way that I can reconstruct the complete path, given that I have access to all the information that is normally passed to the vfs system calls. Thanks Krishna __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail