Implement GetProcessIdDisambiguationKey() for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Sat, 16 Apr 2016 00:22:23 +0000 (02:22 +0200)
committerKamil Rytarowski <n54@gmx.com>
Mon, 18 Apr 2016 07:01:21 +0000 (09:01 +0200)
commit2aa6bdb773d4a6d181cc2ebde8026908c706ac94
tree82dcc2a6dbbb803db90a0715bcd7c8783091caa5
parentf21291a702a4247b1dd1c3219eaf5319e94df061
Implement GetProcessIdDisambiguationKey() for NetBSD

Make use of the kvm(3) interface to get "struct kinfo_proc2" of the given
process.

struct kinfo_proc2 {
///....
        uint32_t p_ustart_sec;          /* STRUCT TIMEVAL: starting time. */
        uint32_t p_ustart_usec;         /* STRUCT TIMEVAL: starting time. */
///...
};

  --- /usr/include/sys/sysctl.h
src/pal/src/thread/process.cpp