Dima Dorfman 21687047cf Fix (for the second time) kvm_getprocs() for the case where no
processes match the given criteria.  Since revision 1.60 of malloc.c,
malloc() and friends return an invalid pointer when given a size of 0.
kvm_getprocs() uses sysctl() with a NULL oldp argument to get an
initial size, but does not check whether it's 0 before passing it to
realloc() (via _kvm_realloc()).  Before the aforementioned malloc()
change, this resulted in a minimal allocation made and a valid poitner
returned, but now results in an invalid, but non-NULL, pointer being
returned.  When this is passed to sysctl(), the latter returns EFAULT
(as it should).
2002-04-07 04:47:58 +00:00
..
2002-03-22 09:22:15 +00:00
2002-04-06 09:54:17 +00:00
2002-03-21 23:39:28 +00:00
2002-03-25 15:55:36 +00:00
2002-03-21 23:39:28 +00:00
2002-03-25 13:52:45 +00:00
2002-03-21 23:54:04 +00:00
2002-03-25 13:52:45 +00:00
2001-09-30 21:41:46 +00:00
2002-03-22 09:22:15 +00:00
2002-03-21 23:39:28 +00:00
2002-03-25 14:12:49 +00:00
2002-03-21 23:39:28 +00:00
2002-03-22 00:12:20 +00:00
2002-03-21 23:54:04 +00:00
2002-01-06 08:47:19 +00:00
2002-03-21 23:54:04 +00:00
2002-03-22 09:22:15 +00:00
2001-12-21 18:26:01 +00:00
2002-03-21 23:39:28 +00:00