Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libkvm



Module Name:    src
Committed By:   christos
Date:           Thu Feb 16 20:48:43 UTC 2006

Modified Files:
        src/lib/libkvm: kvm.c kvm_file.c kvm_private.h kvm_proc.c

Log Message:
1. Eliminate some unnecessary to kvm_{m,re}alloc.
2. Don't malloc/free procbase/procbase2/lwpbase continuously. Keep track
   of the size, and only do it if necessary.
3. Write a macro to malloc/realloc and set the size of members so that it
   is done correctly. Previous open coded version in kvm_file.c always
   set the length, which is incorrect.
4. Remove bogus check against INT_MAX.
5. use NULL to initialize pointers instead of 0.


To generate a diff of this commit:
cvs rdiff -r1.84 -r1.85 src/lib/libkvm/kvm.c
cvs rdiff -r1.23 -r1.24 src/lib/libkvm/kvm_file.c
cvs rdiff -r1.14 -r1.15 src/lib/libkvm/kvm_private.h
cvs rdiff -r1.60 -r1.61 src/lib/libkvm/kvm_proc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index