f280594937
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 |
||
---|---|---|
.. | ||
Makefile | ||
procstat_args.c | ||
procstat_basic.c | ||
procstat_bin.c | ||
procstat_cred.c | ||
procstat_files.c | ||
procstat_kstack.c | ||
procstat_threads.c | ||
procstat_vm.c | ||
procstat.1 | ||
procstat.c | ||
procstat.h |