Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Feb 2008 05:16:26 +0000 (UTC)
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_descrip.c src/sys/sys param.h user.h src/usr.bin/procstat procstat_files.c
Message-ID:  <200802090516.m195GQHF064769@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marcus      2008-02-09 05:16:26 UTC

  FreeBSD src repository (doc,ports committer)

  Modified files:
    sys/kern             kern_descrip.c 
    sys/sys              user.h param.h 
    usr.bin/procstat     procstat_files.c 
  Log:
  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
  
  Revision  Changes    Path
  1.322     +50 -0     src/sys/kern/kern_descrip.c
  1.333     +1 -1      src/sys/sys/param.h
  1.74      +5 -1      src/sys/sys/user.h
  1.5       +26 -4     src/usr.bin/procstat/procstat_files.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802090516.m195GQHF064769>