From owner-cvs-src@FreeBSD.ORG Fri Apr 11 09:09:28 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C836D1065673; Fri, 11 Apr 2008 09:09:28 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BB0DD8FC16; Fri, 11 Apr 2008 09:09:28 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3B99S91084020; Fri, 11 Apr 2008 09:09:28 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3B99StS084018; Fri, 11 Apr 2008 09:09:28 GMT (envelope-from rwatson) Message-Id: <200804110909.m3B99StS084018@repoman.freebsd.org> From: Robert Watson Date: Fri, 11 Apr 2008 09:09:28 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/kern kern_descrip.c src/sys/sys user.h src/usr.bin/procstat procstat_files.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2008 09:09:28 -0000 rwatson 2008-04-11 09:09:28 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern kern_descrip.c sys/sys user.h usr.bin/procstat procstat_files.c Log: Merge kern_descrip.c:1.322, user.h:1.74, procstat_files.c:1.5: Add support for displaying a process' current working directory, root directory, and jail directory within procstat. While this functionality is available already in fstat, encapsulating it in the kern.proc.filedesc sysctl makes it accessible without using kvm and thus without needing elevated permissions. The new procstat output looks like: PID COMM FD T V FLAGS REF OFFSET PRO NAME 76792 tcsh cwd v d -------- - - - /usr/src 76792 tcsh root v d -------- - - - / 76792 tcsh 15 v c rw------ 16 9130 - - 76792 tcsh 16 v c rw------ 16 9130 - - 76792 tcsh 17 v c rw------ 16 9130 - - 76792 tcsh 18 v c rw------ 16 9130 - - 76792 tcsh 19 v c rw------ 16 9130 - - I am also bumping __FreeBSD_version for this as this new feature will be used in at least one port. Reviewed by: rwatson Approved by: rwatson Note that in the MFC, __FreeBSD_version is not bumped as we will bump it once (shortly) for all procstat(1) MFC changes together. Revision Changes Path 1.313.2.4 +50 -0 src/sys/kern/kern_descrip.c 1.70.2.3 +5 -1 src/sys/sys/user.h 1.5.2.4 +26 -4 src/usr.bin/procstat/procstat_files.c