| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Notes:
svn path=/stable/3/; revision=50572
|
| |
|
|
| |
Notes:
svn path=/stable/3/; revision=42951
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41884
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
<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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41713
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
closer.
Notes:
svn path=/head/; revision=39353
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38996
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38534
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38478
|
| |
|
|
|
|
|
|
|
|
| |
now (mainly because I haven't ported them from the NetBSD crash dump
environment).
Obtained from: NetBSD
Notes:
svn path=/head/; revision=38329
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=28801
|
| |
|
|
| |
Notes:
svn path=/head/; revision=28318
|
| |
|
|
| |
Notes:
svn path=/head/; revision=27492
|
| |
|
|
|
|
|
| |
memory dump. This fixes one of the problems noted in PR kern/3581.
Notes:
svn path=/head/; revision=26947
|
| |
|
|
| |
Notes:
svn path=/head/; revision=25028
|
| |
|
|
| |
Notes:
svn path=/head/; revision=24885
|
| |
|
|
| |
Notes:
svn path=/head/; revision=22993
|
| |
|
|
| |
Notes:
svn path=/head/; revision=21907
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=21673
|
| |
|
|
|
|
|
|
|
|
|
| |
what the function really does.
Also fix a small mdoc problem I noticed while in there.
Obtained from: NetBSD-bugs (NetBSD PR#3077)
Notes:
svn path=/head/; revision=21233
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
Notes:
svn path=/head/; revision=18798
|
| |
|
|
|
|
|
| |
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Notes:
svn path=/head/; revision=17141
|
| |
|
|
| |
Notes:
svn path=/head/; revision=16158
|
| |
|
|
| |
Notes:
svn path=/head/; revision=15533
|
| |
|
|
| |
Notes:
svn path=/head/; revision=14523
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
file locations and some minor formatting/style problems.
Notes:
svn path=/head/; revision=14003
|
| |
|
|
| |
Notes:
svn path=/head/; revision=13754
|
| |
|
|
| |
Notes:
svn path=/head/; revision=13156
|
| |
|
|
|
|
|
| |
the routine can be much more easily understood now... :-)
Notes:
svn path=/head/; revision=12885
|
| |
|
|
|
|
|
| |
malloc squashed...
Notes:
svn path=/head/; revision=12683
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
some user interfaces in it. It no longer does.
Notes:
svn path=/head/; revision=11679
|
| |
|
|
|
|
|
| |
be explicitly included before kvm_getprocs() can be used.
Notes:
svn path=/head/; revision=9303
|
| |
|
|
|
|
|
|
|
| |
kvm mechanism.
Submitted by: (Vic Abell) <abe@cc.purdue.edu>
Notes:
svn path=/head/; revision=9302
|
| |
|
|
| |
Notes:
svn path=/head/; revision=8870
|
| |
|
|
| |
Notes:
svn path=/head/; revision=7189
|
| |
|
|
| |
Notes:
svn path=/head/; revision=7188
|
| |
|
|
|
|
|
| |
Got apparent by Philippe's -Wall patch for /usr/bin.
Notes:
svn path=/head/; revision=7167
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
kvm_open() if errstr is NULL.
Notes:
svn path=/head/; revision=6701
|
| |
|
|
| |
Notes:
svn path=/head/; revision=6683
|
| |
|
|
| |
Notes:
svn path=/head/; revision=4241
|