summaryrefslogtreecommitdiff
path: root/usr.sbin/kvm_mkdb/kvm_mkdb.c
AgeCommit message (Collapse)Author
2005-04-14fix off-by-ones in path truncation checks. from Han Boetes; ok deraadt@Damien Miller
2003-11-21add -o option to generate kvm database in alternate directory;Damien Miller
manpage nits jmc@ ok tedu@
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.
2003-04-06use snamesize and realloc properly. ok tdeval@Ted Unangst
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
1999-04-18Document -vMarc Espie
Give more precise error messages in case of failure
1999-03-29Only print "already up to date" if in verbose modeTodd C. Miller
1999-03-24Only exit in nlist.c due to a memory error, otherwise just return. A return ↵Todd C. Miller
value of 1 indicates an incorrect executable type, a return value of -1 indicates some other problem. This gives us better fallback from /dev/ksyms to /bsd.
1999-03-24Better fallback from /dev/ksyms to /bsd if there are problems with an nlist ↵Todd C. Miller
of /dev/ksyms
1998-10-06crank RLIMIT_DATA, seems to be necessary for some peopleTodd C. Miller
1998-08-23o If the user doesn't specify a file, use /dev/ksyms in preference toTodd C. Miller
/bsd if it exists and we can open it. o Fix a bug where kvm_mkdb would leave a temp file in /var/db if the file argument didn't exit.
1998-08-19clean up our temp files on failureTodd C. Miller
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