Commit Graph

24 Commits

Author SHA1 Message Date
christos 0213791d0c 1. Eliminate some unnecessary to kvm_{m,re}alloc.
2. Don't malloc/free procbase/procbase2/lwpbase continuously. Keep track
   of the size, and only do it if necessary.
3. Write a macro to malloc/realloc and set the size of members so that it
   is done correctly. Previous open coded version in kvm_file.c always
   set the length, which is incorrect.
4. Remove bogus check against INT_MAX.
5. use NULL to initialize pointers instead of 0.
2006-02-16 20:48:42 +00:00
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
christos acc1cc5b41 undo mallocvar.h change! 2003-02-02 02:25:50 +00:00
tron edb9087c05 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 21:12:25 +00:00
tron 6b521c7489 Fix build problem by rearranging the order of "#include" statements so
that "sys/mallocvar.h" gets include while "_KERNEL" is defined.
2003-02-01 17:22:44 +00:00
thorpej c62a74e6d5 Merge the nathanw_sa branch. 2003-01-18 10:32:11 +00:00
lukem 11e3398883 WARNS=2 fixes 2001-11-05 14:59:21 +00:00
mrg 3b8ac18da2 <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-29 06:34:22 +00:00
mrg 10a6db97ee remove redundant vm includes 2000-06-26 15:34:55 +00:00
simonb a9f690ae2a Add kvm interface to the new sysctls:
kvm_getproc2() -> sysctl(KERN_PROC2)
	kvm_getargv2() -> sysctl(KERN_PROC_ARGS, KERN_PROC_ARGV)
	kvm_getenvv2() -> sysctl(KERN_PROC_ARGS, KERN_PROC_ENV)
Add new KVM_NO_FILES flag to kvm_open*() - set up enough state to
use the above calls without having to open any kernel files.

XXX: kvm_getprocs.3 and kvm_open.3 to be updated soon.
2000-05-26 02:42:21 +00:00
cgd 1794a768f0 fix four major and one minor bug in dead kernel file-getting. Three
of the biggies crept in in rev. 1.10 (we need a lint trap!), the
others were here since the file was originally imported.
1999-08-19 05:42:56 +00:00
simonb f68ec00b50 More trailing white space. 1999-07-02 15:28:49 +00:00
veego d28a19df1b Nuke swap_pager.h. 1999-04-01 09:57:00 +00:00
thorpej 623230f641 Need string.h. 1998-09-29 02:19:02 +00:00
christos cc7ffa0da4 Remove lint 1998-09-27 18:15:58 +00:00
perry 0b7831a37b remove obsolete register declarations 1998-02-03 19:12:13 +00:00
drochner cda7302736 Fix compiler warnings. 1997-08-15 17:52:45 +00:00
mikel 38e3895a32 use <sys/cdefs.h> __RCSID() macro
GC unused variables and fix error message typo in kvm_deadfiles()
1997-08-15 02:18:02 +00:00
mikel b089e1397c add explicit return type for kvm_deadfiles() 1997-06-20 04:41:33 +00:00
thorpej 346e67f879 RCS id police. 1996-03-18 22:33:07 +00:00
jtc ae0b9c2010 KERNEL -> _KERNEL 1995-03-28 17:18:59 +00:00
cgd 8c814fd78b fix type of variables, add headers, protos, where necessary. 1994-10-19 03:03:39 +00:00
mycroft 0e2293a33e Update to match include files. 1994-08-30 17:39:11 +00:00
cgd 0215cc7d1f new libkvm 1994-05-09 03:15:36 +00:00