summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_proc.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bugs in the conversion of kvm to to use procfs in rev.1.3. AllBruce Evans1998-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. Notes: svn path=/head/; revision=32568
* Fill in parent process id when reading process information from aTor Egge1997-06-251-0/+12
| | | | | | | memory dump. This fixes one of the problems noted in PR kern/3581. Notes: svn path=/head/; revision=26947
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-3/+7
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Pass correct length OID to kernel for KERN_PROC_ALL.Poul-Henning Kamp1996-06-061-2/+2
| | | | Notes: svn path=/head/; revision=16158
* NBPG -> PAGE_SIZEPoul-Henning Kamp1996-05-021-8/+8
| | | | Notes: svn path=/head/; revision=15533
* From Lite2: proc and file LIST changesJeffrey Hsu1996-03-111-1/+1
| | | | Notes: svn path=/head/; revision=14523
* If the two recently added sysctl variables exist, use those rather thanPeter Wemm1996-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. Notes: svn path=/head/; revision=14236
* Extract the login name when doing a ps on a dead kernel.Peter Wemm1996-01-011-0/+2
| | | | Notes: svn path=/head/; revision=13156
* Cosmetic cleanup and documentation of kvm_argv.. Hopefully the flow ofPeter Wemm1995-12-161-6/+65
| | | | | | | the routine can be much more easily understood now... :-) Notes: svn path=/head/; revision=12885
* Updates to read the extra indirection in ps_strings. Note that anyPeter Wemm1995-12-091-35/+52
| | | | | | | | | | static executables that depend on this will need to be relinked (ie: do this before 'ps'), but the dynamic linked stuff should be OK (ie: 'w') Obtained from: NetBSD (not much point reinventing the wheel.. :-) Notes: svn path=/head/; revision=12682
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-12/+12
| | | | Notes: svn path=/head/; revision=8870
* Cast the offset of one call to lseek() to off_t, as it's already doneJoerg Wunsch1995-03-191-1/+1
| | | | | | | | | | | in all other places here. This is a hack, the interface should be changed to use off_t's everywhere around, but this will require to update all the programs that happen to use libkvm. Notes: svn path=/head/; revision=7166
* Remove some unused variables and fix two blatant core dump triggers.Poul-Henning Kamp1995-02-241-3/+1
| | | | Notes: svn path=/head/; revision=6683
* Fix from Gary Jennejohn - use 'cp' not 'buf' in read call. Oops.David Greenman1994-11-021-1/+1
| | | | Notes: svn path=/head/; revision=4095
* Added spare space on the usr stack. Used in ibcs2 emulation.Søren Schmidt1994-10-091-2/+2
| | | | Notes: svn path=/head/; revision=3477
* Made kvm routines use procfs to get out process data such as argumentDavid Greenman1994-08-111-129/+33
| | | | | | | strings. Notes: svn path=/head/; revision=2029
* Fix kvm_i386.c just enough to make it compile and return lots of errorsRodney W. Grimes1994-05-281-0/+6
| | | | | | | | when called. Noop out swapread in kvm_proc.c as our vm system is different. Notes: svn path=/head/; revision=1603
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+705
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573