From owner-freebsd-questions@FreeBSD.ORG Wed Jul 14 08:50:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D4F516A4CE for ; Wed, 14 Jul 2004 08:50:41 +0000 (GMT) Received: from web52204.mail.yahoo.com (web52204.mail.yahoo.com [206.190.39.86]) by mx1.FreeBSD.org (Postfix) with SMTP id B6CA343D2D for ; Wed, 14 Jul 2004 08:50:40 +0000 (GMT) (envelope-from ewemasq@yahoo.com) Message-ID: <20040714085040.12143.qmail@web52204.mail.yahoo.com> Received: from [67.163.79.52] by web52204.mail.yahoo.com via HTTP; Wed, 14 Jul 2004 01:50:40 PDT Date: Wed, 14 Jul 2004 01:50:40 -0700 (PDT) From: Tyler Durdan To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: mmap()ed filenames? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2004 08:50:41 -0000 Is there a way to get the filename of an mmap()ed file in the current process? For example, in Linux I can open /proc/self/maps and get the filenames right there. However, if I try to open /proc/getpid()/map on FBSD, the only mapping info is "vnode" or "default" on FBSD 4.10-BETA. Is there any way to convert this info into the filenames of mapped files? Or perhaps an alternate method to accomplish this goal? __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail