summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm.c
Commit message (Collapse)AuthorAgeFilesLines
* Limit the amount of data copied to the error buffer to _POSIX2_LINE_MAX.Kris Kennaway2000-08-041-2/+2
| | | | | | | This is the documented size which the user-provided buffer must be. Notes: svn path=/head/; revision=64233
* Change the return value of kvm_read/kvm_write to be -1 on error, toJacques Vidrine2000-03-311-6/+6
| | | | | | | | | | | match the documented interface. Previously it returned 0 on error. PR: bin/10511 Notes: svn path=/head/; revision=58870
* -Wall, which caught a real bug where buflen wasn't being set properly.David E. O'Brien2000-03-271-0/+3
| | | | Notes: svn path=/head/; revision=58642
* Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb jugglingPeter Wemm1999-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. Notes: svn path=/head/; revision=55127
* Delete the sf (swapfile) arg to an internal function that used to point toPeter Wemm1999-10-111-6/+8
| | | | | | | | /dev/drum but has not been used for a LONG time. Add $FreeBSD$ Notes: svn path=/head/; revision=52117
* Don't open the swap file. The open descriptor for it hasn't been usedBruce Evans1999-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. Notes: svn path=/head/; revision=50331
* Allow /dev/null as path for the "/dev/mem" file, and assume that peoplePoul-Henning Kamp1998-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 Notes: svn path=/head/; revision=37316
* kvm_malloc:Andrey A. Chernov1996-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 Notes: svn path=/head/; revision=19629
* phkmalloc strikes again! :-) Another use of un-cleared returns fromPeter Wemm1995-12-091-0/+3
| | | | | | | malloc squashed... Notes: svn path=/head/; revision=12683
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-7/+7
| | | | Notes: svn path=/head/; revision=8870
* Fix previous fix to agree with the man page - don't report errors inBruce Evans1995-02-251-2/+3
| | | | | | | kvm_open() if errstr is NULL. Notes: svn path=/head/; revision=6701
* Remove some unused variables and fix two blatant core dump triggers.Poul-Henning Kamp1995-02-241-5/+6
| | | | Notes: svn path=/head/; revision=6683
* Get rid of _PATH_UNIX completely; use getbootfile(3) instead.Garrett 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. Notes: svn path=/head/; revision=3041
* Converted 'vmunix' to 'kernel'.David Greenman1994-08-051-1/+1
| | | | Notes: svn path=/head/; revision=1856
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+540
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573