summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm.c
Commit message (Collapse)AuthorAgeFilesLines
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-101-2/+0
|
* Implement __FBSDID()dillon2001-09-161-3/+3
|
* Compensate for header dethreading.markm2001-05-011-0/+2
|
* Limit the amount of data copied to the error buffer to _POSIX2_LINE_MAX.kris2000-08-041-2/+2
| | | | This is the documented size which the user-provided buffer must be.
* Change the return value of kvm_read/kvm_write to be -1 on error, tonectar2000-03-311-6/+6
| | | | | | | | match the documented interface. Previously it returned 0 on error. PR: bin/10511
* -Wall, which caught a real bug where buflen wasn't being set properly.obrien2000-03-271-0/+3
|
* Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb jugglingpeter1999-12-271-113/+22
| | | | | | and is module aware. Yes, this means that kvm_nlist(3) will find symbols in loaded modules. The emulation of the nlist struct is pretty crude but seems to work well enough for all the users in the tree that I found.
* Delete the sf (swapfile) arg to an internal function that used to point topeter1999-10-111-6/+8
| | | | | /dev/drum but has not been used for a LONG time. Add $FreeBSD$
* Don't open the swap file. The open descriptor for it hasn't been usedbde1999-08-251-8/+0
| | | | | | for over 5 years since we switched to using procfs for kvm_uread(). This cleanup was motivated by recent breakage of the default swap file (/dev/drum) when swapon() has not been called.
* Allow /dev/null as path for the "/dev/mem" file, and assume that peoplephk1998-06-301-10/+14
| | | | | | | know what they're doing if they do that. This will allow ps to use the kvm_proc.c bits without having access to /dev/mem. Fix kvm_proc.c to not need /dev/mem for access to argv/envp
* kvm_malloc:ache1996-11-111-3/+3
| | | | | | | When malloc fails. don't try to memset NULL pointer, it cause core dump Replace malloc+memset with calloc, theoretically it can do some optimization of zeroing process internally Improve error diagnostic
* phkmalloc strikes again! :-) Another use of un-cleared returns frompeter1995-12-091-0/+3
| | | | malloc squashed...
* Remove trailing whitespace.rgrimes1995-05-301-7/+7
|
* Fix previous fix to agree with the man page - don't report errors inbde1995-02-251-2/+3
| | | | kvm_open() if errstr is NULL.
* Remove some unused variables and fix two blatant core dump triggers.phk1995-02-241-5/+6
|
* Get rid of _PATH_UNIX completely; use getbootfile(3) instead.wollman1994-09-241-1/+1
| | | | | | | DANGER WILL ROBINSON! _PATH_UNIX is currently defined as the literal string "don't use this". I am of two minds about this myself, but wanted to get something into the tree as quickly as possible.
* Converted 'vmunix' to 'kernel'.dg1994-08-051-1/+1
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+540
OpenPOWER on IntegriCloud