summaryrefslogtreecommitdiff
path: root/lib/libkvm
Commit message (Collapse)AuthorAgeFilesLines
* Good, fixing the header showed incorrect usage of it! #define _KERNELBrian Feldman2000-08-061-0/+3
| | | | | | | here for the include of sys/select.h. Notes: svn path=/head/; revision=64297
* 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
* Remove obsolete reference to /var/db/kvm_kernel.dbKris Kennaway2000-05-071-4/+0
| | | | | | | Reviewed by: peter Notes: svn path=/head/; revision=60113
* Introduce .Lb macro to libkvm manpages.Alexey Zelkin2000-04-229-1/+19
| | | | | | | Use .Pa macro for "enlighting" path Notes: svn path=/head/; revision=59510
* Remove unneeded #includeJonathan Lemon2000-04-161-1/+0
| | | | Notes: svn path=/head/; revision=59286
* 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-273-16/+16
| | | | Notes: svn path=/head/; revision=58642
* Correct an error message presumably as a result of cut/paste.Peter Wemm2000-02-181-1/+1
| | | | | | | kvm_getfiles() referred to itself as kvm_getprocs(). Notes: svn path=/head/; revision=57321
* Repair misspelled `.Pp' directive:Chris Costello2000-02-141-1/+1
| | | | | | | .PP -> .Pp Notes: svn path=/head/; revision=57195
* Replace beforeinstall target with new variables used by .mk system.Rodney W. Grimes2000-01-141-4/+1
| | | | | | | Reviewed by: marcel, and make world Notes: svn path=/head/; revision=55955
* Fixed missing includes in synopsis. <sys/file.h> went missing when KERNELBruce Evans2000-01-051-2/+3
| | | | | | | | was not updated to _KERNEL. Actually including <sys/file.h> as specified never actually worked, since a prerequisite was missing. Notes: svn path=/head/; revision=55463
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-2/+2
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb jugglingPeter Wemm1999-12-2711-129/+60
| | | | | | | | | 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
* Report swapdevices as cdevs rather than bdevs.Poul-Henning Kamp1999-11-291-1/+1
| | | | | | | Remove unused dev2budev() function. Notes: svn path=/head/; revision=53899
* Introduce commandline caching in the kernel.Poul-Henning Kamp1999-11-161-0/+48
| | | | | | | | | | | | | | This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike. To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0 For full details see the current@FreeBSD.org mail-archives. Notes: svn path=/head/; revision=53239
* 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
* Install <kvm.h> from here (after repo copy) so it's all in one package.Peter Wemm1999-10-041-0/+5
| | | | Notes: svn path=/head/; revision=51933
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2811-11/+11
| | | | Notes: svn path=/head/; revision=50476
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50473
* Don't open the swap file. The open descriptor for it hasn't been usedBruce Evans1999-08-252-9/+1
| | | | | | | | | 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
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-128-0/+8
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Tidy up references to <sys/rlist.h> and support for the old swap managementPeter Wemm1999-05-111-88/+9
| | | | | | | that went away in January. Notes: svn path=/head/; revision=47018
* Oops, the previous log message should have been:Bruce Evans1999-04-101-1/+1
| | | | | | | | | | | Include <machine/ansi.h> so that this file is self-sufficient again. Rev.1.6 doesn't do this as claimed unless <nlist.h> has nonstandard pollution. Cleaned up includes. Notes: svn path=/head/; revision=45525
* Declare mkstemps().Bruce Evans1999-04-091-4/+5
| | | | Notes: svn path=/head/; revision=45513
* make libkvm capable of dealing with a crashdump on alphasAndrew Gallatin1999-03-121-50/+65
| | | | | | | Reviewed by: Doug Rabson <dfr@nlsystems.com> Notes: svn path=/head/; revision=44689
* Don't use u_long in the synopsis, since u_long is not part of the kvmBruce Evans1999-03-051-2/+2
| | | | | | | interface. Notes: svn path=/head/; revision=44491
* From rev. 1.12 of usr.sbin/pstat/pstat.c by phk:Dmitrij Tejblum1999-02-141-3/+6
| | | | | | | | Reflect the fact that we do not swap on the first <dmmax> blocks of a swapdev, to protect disklabels and other such magic stuff. Notes: svn path=/head/; revision=44021
* Handle case where no swap is configuredMatthew Dillon1999-02-061-3/+10
| | | | Notes: svn path=/head/; revision=43696
* Removed evil typedef kvm_swap_t and all uses of it (not many).Bruce Evans1999-01-272-11/+13
| | | | | | | Hoped for by: wollman Notes: svn path=/head/; revision=43282
* Fix swap radix tree dump formatting ( pstat -ss ), it was printing theMatthew Dillon1999-01-251-4/+4
| | | | | | | wrong radix for recursive subnodes. Notes: svn path=/head/; revision=43173
* Fixed missing cross reference to kvm_getfiles.Bruce Evans1999-01-231-0/+1
| | | | | | | | | | This man page may be overdoing the cross references by referencing man pages that are just links to other pages that are referenced. kvm_uread() is still completely undocumented in kvm*.3. Notes: svn path=/head/; revision=43090
* Fixed unsorting of SRCS and MAN3 in previous commit.Bruce Evans1999-01-231-4/+4
| | | | | | | Sorted MLINKS. Notes: svn path=/head/; revision=43089
* Fixed unsorting of cross references in previous commit.Bruce Evans1999-01-231-1/+1
| | | | Notes: svn path=/head/; revision=43088
* Oops, forgot this. Needed by libkvm.Matthew Dillon1999-01-231-1/+14
| | | | Notes: svn path=/head/; revision=43085
* Fix type-o's in manualMatthew Dillon1999-01-221-3/+3
| | | | Notes: svn path=/head/; revision=43051
* Add SWIF_DEV_PREFIX flag to add "/dev/..." to device name.Matthew Dillon1999-01-221-2/+3
| | | | Notes: svn path=/head/; revision=43048
* Implement kvm_getswapinfo() libkvm function. Will be used byMatthew Dillon1999-01-224-2/+551
| | | | | | | pstat, top, and systat. Notes: svn path=/head/; revision=43045
* <sys/types.h> isn't a prerequisite for <kvm.h>.Bruce Evans1998-12-161-1/+0
| | | | Notes: svn path=/head/; revision=41884
* The previous commit was bogus. <stdlib.h> was never a prerequisiteBruce Evans1998-12-161-2/+0
| | | | | | | | for <kvm.h> or kvm_getloadavg(), and <sys/types.h> was only a prerequisite for <kvm.h> when <kvm.h> was broken. Notes: svn path=/head/; revision=41883
* Declare size_t and ssize_t if they are not already declared, so thatBruce Evans1998-12-161-6/+15
| | | | | | | | | | | | | | | | | | <kvm.h> is self-sufficient again. Moved typedefs and forward struct declarations out of __BEGIN_DECLS/ __END_DECLS. Don't comment out the prototype for kvm_uread(). This was a 4 year old kludge for previous breakage of self-sufficiency. The prototypwe was broken instead. Fixed bitrot (const poisoning) in the type of kvm_uread(). Fixed order of the declaration of kvm_uread(). Notes: svn path=/head/; revision=41882
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. ThisBruce Evans1998-12-161-17/+12
| | | | | | | | | | | | | fixes a type mismatch in the call to kvm_uread(). The bug has gone undetected for almost 3 years because kvm_uproc()'s protoype has been disabled for almost 4 years. Trust sysctlbyname() to work properly if it succeeds. Fixed style bugs in revs. 1.19 and 1.22. Notes: svn path=/head/; revision=41880
* Add required #include references to manual pageMatthew Dillon1998-12-131-0/+2
| | | | Notes: svn path=/head/; revision=41713
* Avoid the "Cannot allocate memory" problem that appears on heavilyDag-Erling Smørgrav1998-10-121-4/+10
| | | | | | | | | | | | loaded systems by retrying the sysctl() with a larger buffer if it fails with ENOMEM. For good measure, allocate 10% more memory than sysctl() claims is necessary. PR: 8275 Reviewed by: David Greenman <dg@freebsd.org> Notes: svn path=/head/; revision=40268
* Adjust the declarations of kvm_read and kvm_write to match reality a littleDoug Rabson1998-09-161-2/+2
| | | | | | | closer. Notes: svn path=/head/; revision=39353
* Replace memory leaking instances of realloc with non-leaking reallocf.Warner Losh1998-09-161-1/+3
| | | | | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but... Notes: svn path=/head/; revision=39327
* Change ${MACHINE} into ${MACHINE_ARCH} to support MACHINE=pc98.KATO Takenori1998-09-091-1/+1
| | | | Notes: svn path=/head/; revision=38996
* The length argument to sysctl is now size_t.Doug Rabson1998-08-252-3/+6
| | | | Notes: svn path=/head/; revision=38534
* Nuke unsupported architecture filesGary Palmer1998-08-222-493/+0
| | | | Notes: svn path=/head/; revision=38478
* Add an alpha machdep for kvm. The vatop functions are stubbed out forDoug Rabson1998-08-151-0/+197
| | | | | | | | | | now (mainly because I haven't ported them from the NetBSD crash dump environment). Obtained from: NetBSD Notes: svn path=/head/; revision=38329
* Allow /dev/null as path for the "/dev/mem" file, and assume that peoplePoul-Henning Kamp1998-06-302-30/+38
| | | | | | | | | | 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