summaryrefslogtreecommitdiff
path: root/usr.sbin/kvm_mkdb/testdb.c
AgeCommit message (Collapse)Author
2004-11-24Use sysctl to get the running kernel version instead of grottingTodd C. Miller
through kmem. Fixes false positives on machines where the memory is not cleared between boots. OK deraadt@, tedu@, jaredy@
2003-06-26ansi and protosTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-03-14kill more registers.Mike Pechkin
millert@ ok
1998-08-19Make kvm_mkdb work againTodd C. Miller
o testdb() needs to take as an arg the name of the kernel so it can do the version test correctly. o add undocumented verbose flag to tell when we are rebuilding the .db file o DO_* -> _NLIST_DO_*, this prevented kvm_mkdb from doing anything at all. o preserve a few error messages so you get error output when none of the exec types match the target. o check malloc return values o get_kerntext should not subtract the sizeof(struct exec) from kernel_text
1997-01-15From NetBSD: make testdb() fail if database version string has length zero.Todd C. Miller
Also, KNF, b* -> mem*, getopt tests against -1, not EOF, and index -> strchr. Added OpenBSD tags.
1995-10-18initial import of NetBSD treeTheo de Raadt