Module name: src
Changes by: t...@cvs.openbsd.org 2016/09/19 14:10:54
usr.sbin/pstat : pstat.c
Add pledge support to pstat
The filemode(), ttymode() and vnodemode() functions can be split into two
pieces. The *_prep() piece must be hoisted to before pledge and the rest
can run under pledge "stdio rpath vminfo". The magic block that decides
which ones of the *_prep() pieces must be run with which combination of
command line switches is quite impressive.
Patch from Rob Pierce, thanks!