summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixed bugs in the conversion of kvm to to use procfs in rev.1.3. Allbde1998-01-161-9/+14
| | | | | | | | | | | | are in kvm_uread(): - the setting of errno before checking it in the lseek() was lost. - EOF handling was lost. kvm_uread() retried forever on EOF. EOF is not really an error, but report it one as in rev.1.2. - reporting of errno after a read error was lost. Fixed style bugs in rev.1.3 and rev.1.12. Not fixed: errno is not reported after lseek() failures.
* -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.bde1997-08-261-1/+1
|
* Copy code from gnu/usr.bin/gdb/gdb/kvm-fbsd.c to deal with 4 MB pages.tegge1997-08-172-0/+26
|
* Add ${DESTDIR} in front of absolute path.asami1997-07-181-1/+1
|
* Fill in parent process id when reading process information from ategge1997-06-251-0/+12
| | | | memory dump. This fixes one of the problems noted in PR kern/3581.
* Fixed #include and/or prototype bugs in synopsis.bde1997-04-191-1/+0
|
* Fixed #include and/or prototype bugs in synopsis.bde1997-04-132-2/+3
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Sort cross references.wosch1997-01-202-6/+6
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fix the short description of kvm_getloadavg(3) to reflectmpp1997-01-021-2/+1
| | | | | | | | what the function really does. Also fix a small mdoc problem I noticed while in there. Obtained from: NetBSD-bugs (NetBSD PR#3077)
* 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
* Implement virtual-to-physical address mapping for the kvm library onpeter1996-10-072-40/+130
| | | | | | | | | | | | dead kernel debugging. The previous code was a "do nothing". The most obvious side effect of this is that you can now do things like this and reasonably expect them to work: dmesg -M /var/crash/vmcore.3 -N /var/crash/kernel.3 ps -axl -M /var/crash/vmcore.3 -N /var/crash/kernel.3 A good deal of this was lifted from the gdb code to do this, as well as from NetBSD's libkvm (which has completely different VM macros)
* General -Wall warning cleanup, part I.jkh1996-07-125-4/+11
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Pass correct length OID to kernel for KERN_PROC_ALL.phk1996-06-061-2/+2
|
* NBPG -> PAGE_SIZEphk1996-05-023-10/+10
|
* From Lite2: proc and file LIST changeshsu1996-03-112-8/+10
|
* If the two recently added sysctl variables exist, use those rather thanpeter1996-02-241-2/+17
| | | | | | | the statically compiled PS_STRINGS and USRSTACK variables. This prevents programs using setproctitle from coredumping if the kernel VM is increased, and stops libkvm users (w, ps, etc) from needing to be recompiled if only the VM layout changes.
* Add some missing MLINKS, correct some cross references, correct somempp1996-02-091-1/+0
| | | | file locations and some minor formatting/style problems.
* Another round of spelling fixes.mpp1996-01-301-2/+2
|
OpenPOWER on IntegriCloud