Use the kern.boottime sysctl for retrieving the system boot time as a
authorHiten Pandya <hmp@dragonflybsd.org>
Mon, 21 Jun 2004 00:47:57 +0000 (00:47 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Mon, 21 Jun 2004 00:47:57 +0000 (00:47 +0000)
commit0d4b6715406be90f1ffa06d162c3b17ea33c64c7
treecab50111dea7acfbcb0bb0d0fdee7df351673fbb
parent861f15c944b62027d4d19a25c774252e0e31c46b
Use the kern.boottime sysctl for retrieving the system boot time as a
struct timeval.  This is used to fix the STARTED column for pure kernel
threads.

Note, currently, we do not set the start time for pure threads due to
safety issues with microtime(9), although this change conditionalizes
the thread start time appropriately, so that in the future when pure
threads will account their start time, we wouldn't need to change anything
in this utility (with regard to the start time, ofcourse).

Discussed-with:  Matthew Dillon <dillon@apollo.backplane.com>
bin/ps/extern.h
bin/ps/print.c
bin/ps/ps.c