History log of /netbsd-src/lib/libkvm/kvm_file.c (Results 1 – 25 of 29)
Revision Date Author Comments
# 7c166415 19-Feb-2014 dsl <dsl@NetBSD.org>

Remove the #include <sys/user.h> from all of libkvm.
sys/user.h is a stub that just #includes sys/pcb.h.
There are no 'struct pcb' anywhere in here, so I'm extremely doubtful
any of the builds will f

Remove the #include <sys/user.h> from all of libkvm.
sys/user.h is a stub that just #includes sys/pcb.h.
There are no 'struct pcb' anywhere in here, so I'm extremely doubtful
any of the builds will fail.
OTOH it might be relying on a header that pcb.h includes.
In any case i386 and amd64 build.

show more ...


# 8bb0c87c 26-Sep-2010 jym <jym@NetBSD.org>

Define KREAD() inside kvm_private.h, for reusability.


# 6dc46b92 19-Sep-2010 jym <jym@NetBSD.org>

Ansify and KNF all functions within kvm(3). No objection on current-users@.

Used as ground for u_long => vaddr_t/paddr_t replacements in kvm(3)
private functions.

Compile tested for all arches. See

Ansify and KNF all functions within kvm(3). No objection on current-users@.

Used as ground for u_long => vaddr_t/paddr_t replacements in kvm(3)
private functions.

Compile tested for all arches. See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html

show more ...


# 3db92614 12-Mar-2008 mrg <mrg@NetBSD.org>

don't need <sys/tty.h> here.


# 0565241b 27-Feb-2008 ad <ad@NetBSD.org>

+#define _KERNEL
+#include <sys/types.h>
+#undef _KERNEL


# 0213791d 16-Feb-2006 christos <christos@NetBSD.org>

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/real

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.

show more ...


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# acc1cc5b 02-Feb-2003 christos <christos@NetBSD.org>

undo mallocvar.h change!


# edb9087c 01-Feb-2003 tron <tron@NetBSD.org>

Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.


# 6b521c74 01-Feb-2003 tron <tron@NetBSD.org>

Fix build problem by rearranging the order of "#include" statements so
that "sys/mallocvar.h" gets include while "_KERNEL" is defined.


# c62a74e6 18-Jan-2003 thorpej <thorpej@NetBSD.org>

Merge the nathanw_sa branch.


# 11e33988 05-Nov-2001 lukem <lukem@NetBSD.org>

WARNS=2 fixes


# 3b8ac18d 29-Jun-2000 mrg <mrg@NetBSD.org>

<vm/vm.h> -> <uvm/uvm_extern.h>


# 10a6db97 26-Jun-2000 mrg <mrg@NetBSD.org>

remove redundant vm includes


# a9f690ae 26-May-2000 simonb <simonb@NetBSD.org>

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

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.

show more ...


# 1794a768 19-Aug-1999 cgd <cgd@NetBSD.org>

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.


# f68ec00b 02-Jul-1999 simonb <simonb@NetBSD.org>

More trailing white space.


# d28a19df 01-Apr-1999 veego <veego@NetBSD.org>

Nuke swap_pager.h.


# 623230f6 29-Sep-1998 thorpej <thorpej@NetBSD.org>

Need string.h.


# cc7ffa0d 27-Sep-1998 christos <christos@NetBSD.org>

Remove lint


# 0b7831a3 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# cda73027 15-Aug-1997 drochner <drochner@NetBSD.org>

Fix compiler warnings.


# 38e3895a 15-Aug-1997 mikel <mikel@NetBSD.org>

use <sys/cdefs.h> __RCSID() macro
GC unused variables and fix error message typo in kvm_deadfiles()


# b089e139 20-Jun-1997 mikel <mikel@NetBSD.org>

add explicit return type for kvm_deadfiles()


# 346e67f8 18-Mar-1996 thorpej <thorpej@NetBSD.org>

RCS id police.


12