freebsd-dev/usr.bin/procstat
Joe Marcus Clarke f280594937 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
2008-02-09 05:16:26 +00:00
..
Makefile
procstat_args.c Add 'COMM' column to a few more output modes of procstat(1). The only 2007-12-10 20:55:43 +00:00
procstat_basic.c WARNS fixes: mainly constness and avoid comparing signed with 2008-02-08 11:03:05 +00:00
procstat_bin.c Add 'COMM' column to a few more output modes of procstat(1). The only 2007-12-10 20:55:43 +00:00
procstat_cred.c Add 'COMM' column to a few more output modes of procstat(1). The only 2007-12-10 20:55:43 +00:00
procstat_files.c Add support for displaying a process' current working directory, root 2008-02-09 05:16:26 +00:00
procstat_kstack.c WARNS fixes: mainly constness and avoid comparing signed with 2008-02-08 11:03:05 +00:00
procstat_threads.c WARNS fixes: mainly constness and avoid comparing signed with 2008-02-08 11:03:05 +00:00
procstat_vm.c WARNS fixes: mainly constness and avoid comparing signed with 2008-02-08 11:03:05 +00:00
procstat.1
procstat.c WARNS fixes: mainly constness and avoid comparing signed with 2008-02-08 11:03:05 +00:00
procstat.h