freebsd-skq/lib/libkvm
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
..
kvm_alpha.c Backed out "Compensate for header dethreading [mistakes]" mistakes in 2001-10-13 04:38:46 +00:00
kvm_amd64.c Compensate for "Compensate for header dethreading" by backing it out. 2001-10-10 17:48:44 +00:00
kvm_file.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
kvm_geterr.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kvm_getfiles.3 s/processes/files/ inherited from kvm_getprocs(3). 2001-11-24 15:38:28 +00:00
kvm_getloadavg.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kvm_getloadavg.c Include sys/param.h instead of sys/types.h to get the definition of the 2001-11-20 08:26:37 +00:00
kvm_getprocs.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kvm_getswapinfo.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kvm_getswapinfo.c Compensate for "Compensate for header dethreading" by backing it out. 2001-10-10 17:48:44 +00:00
kvm_i386.c Compensate for "Compensate for header dethreading" by backing it out. 2001-10-10 17:48:44 +00:00
kvm_ia64.c Implement va->pa translation for kernel virtual addresses. This is 2001-10-25 09:08:21 +00:00
kvm_nlist.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kvm_open.3 Finish cleanup in kvm.c revisions 1.10 and 1.11 -- mark sf (swapfile) 2002-01-22 10:07:03 +00:00
kvm_private.h Remove multi-line __P() usage. 2002-03-22 09:22:15 +00:00
kvm_proc.c Fix (for the second time) kvm_getprocs() for the case where no 2002-04-07 04:47:58 +00:00
kvm_read.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
kvm_sparc64.c Adapt to new kernel tsb structure. 2001-12-29 06:43:36 +00:00
kvm_sparc.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
kvm.3 mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
kvm.c Remove __P() usage. 2002-03-21 23:54:04 +00:00
kvm.h Remove __P() usage. 2002-03-21 23:54:04 +00:00
Makefile Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00