summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
Commit message (Collapse)AuthorAgeFilesLines
* Good, fixing the header showed incorrect usage of it! #define _KERNELgreen2000-08-061-0/+3
| | | | here for the include of sys/select.h.
* 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.
* Remove obsolete reference to /var/db/kvm_kernel.dbkris2000-05-071-4/+0
| | | | Reviewed by: peter
* Introduce .Lb macro to libkvm manpages.phantom2000-04-229-1/+19
| | | | Use .Pa macro for "enlighting" path
* Remove unneeded #includejlemon2000-04-161-1/+0
|
* 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-273-16/+16
|
* Correct an error message presumably as a result of cut/paste.peter2000-02-181-1/+1
| | | | kvm_getfiles() referred to itself as kvm_getprocs().
* Repair misspelled `.Pp' directive:chris2000-02-141-1/+1
| | | | .PP -> .Pp
* Replace beforeinstall target with new variables used by .mk system.rgrimes2000-01-141-4/+1
| | | | Reviewed by: marcel, and make world
* Fixed missing includes in synopsis. <sys/file.h> went missing when KERNELbde2000-01-051-2/+3
| | | | | was not updated to _KERNEL. Actually including <sys/file.h> as specified never actually worked, since a prerequisite was missing.
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-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.
* Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb jugglingpeter1999-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.
* Report swapdevices as cdevs rather than bdevs.phk1999-11-291-1/+1
| | | | Remove unused dev2budev() function.
* Introduce commandline caching in the kernel.phk1999-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.
* 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$
* Install <kvm.h> from here (after repo copy) so it's all in one package.peter1999-10-041-0/+5
|
* $Id$ -> $FreeBSD$peter1999-08-2811-11/+11
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Don't open the swap file. The open descriptor for it hasn't been usedbde1999-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.
* Add $Id$, to make it simpler for members of the translation teams tonik1999-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
* Tidy up references to <sys/rlist.h> and support for the old swap managementpeter1999-05-111-88/+9
| | | | that went away in January.
* Oops, the previous log message should have been:bde1999-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.
* Declare mkstemps().bde1999-04-091-4/+5
|
* make libkvm capable of dealing with a crashdump on alphasgallatin1999-03-121-50/+65
| | | | Reviewed by: Doug Rabson <dfr@nlsystems.com>
* Don't use u_long in the synopsis, since u_long is not part of the kvmbde1999-03-051-2/+2
| | | | interface.
* From rev. 1.12 of usr.sbin/pstat/pstat.c by phk:dt1999-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.
* Handle case where no swap is configureddillon1999-02-061-3/+10
|
* Removed evil typedef kvm_swap_t and all uses of it (not many).bde1999-01-272-11/+13
| | | | Hoped for by: wollman
* Fix swap radix tree dump formatting ( pstat -ss ), it was printing thedillon1999-01-251-4/+4
| | | | wrong radix for recursive subnodes.
* Fixed missing cross reference to kvm_getfiles.bde1999-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.
* Fixed unsorting of SRCS and MAN3 in previous commit.bde1999-01-231-4/+4
| | | | Sorted MLINKS.
* Fixed unsorting of cross references in previous commit.bde1999-01-231-1/+1
|
* Oops, forgot this. Needed by libkvm.dillon1999-01-231-1/+14
|
* Fix type-o's in manualdillon1999-01-221-3/+3
|
* Add SWIF_DEV_PREFIX flag to add "/dev/..." to device name.dillon1999-01-221-2/+3
|
* Implement kvm_getswapinfo() libkvm function. Will be used bydillon1999-01-224-2/+551
| | | | pstat, top, and systat.
* <sys/types.h> isn't a prerequisite for <kvm.h>.bde1998-12-161-1/+0
|
* The previous commit was bogus. <stdlib.h> was never a prerequisitebde1998-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.
* Declare size_t and ssize_t if they are not already declared, so thatbde1998-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().
* Adjust for kern.ps_strings and PS_STRINGS not being a pointer. Thisbde1998-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.
* Add required #include references to manual pagedillon1998-12-131-0/+2
|
* Avoid the "Cannot allocate memory" problem that appears on heavilydes1998-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>
* Adjust the declarations of kvm_read and kvm_write to match reality a littledfr1998-09-161-2/+2
| | | | closer.
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-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...
* Change ${MACHINE} into ${MACHINE_ARCH} to support MACHINE=pc98.kato1998-09-091-1/+1
|
* The length argument to sysctl is now size_t.dfr1998-08-252-3/+6
|
* Nuke unsupported architecture filesgpalmer1998-08-222-493/+0
|
* Add an alpha machdep for kvm. The vatop functions are stubbed out fordfr1998-08-151-0/+197
| | | | | | | now (mainly because I haven't ported them from the NetBSD crash dump environment). Obtained from: NetBSD
* Allow /dev/null as path for the "/dev/mem" file, and assume that peoplephk1998-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
OpenPOWER on IntegriCloud