diff options
author | bde <bde@FreeBSD.org> | 2002-09-16 08:22:57 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-09-16 08:22:57 +0000 |
commit | b73776ee68e2258383e030422d028bfad6404cd9 (patch) | |
tree | 5e0bc08206fd8c840baa3548bc153bb07ddac2ab /lib | |
parent | 2d1ef1927d8e8aa5553cf3f40a32126e242eb128 (diff) | |
download | FreeBSD-src-b73776ee68e2258383e030422d028bfad6404cd9.zip FreeBSD-src-b73776ee68e2258383e030422d028bfad6404cd9.tar.gz |
Fixed messes involving $FreeBSD$ starting with one left in the copyright
after adding __FBSDID().
Garbage-collected kvm_readswap(). This was once used by kvm_uread(), but
kvm_uread() now just reads /proc/<pid>/mem and procfs hopefully handles
swapped out pages.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm_proc.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c index 3c3a862..f8ca7f3 100644 --- a/lib/libkvm/kvm_proc.c +++ b/lib/libkvm/kvm_proc.c @@ -33,16 +33,16 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - +#if 0 #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; #endif /* LIBC_SCCS and not lint */ +#endif + +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); /* * Proc traversal interface for kvm. ps and w are (probably) the exclusive @@ -79,22 +79,6 @@ static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; #include "kvm_private.h" -#if used -static char * -kvm_readswap(kd, p, va, cnt) - kvm_t *kd; - const struct proc *p; - u_long va; - u_long *cnt; -{ -#ifdef __FreeBSD__ - /* XXX Stubbed out, our vm system is differnet */ - _kvm_err(kd, kd->program, "kvm_readswap not implemented"); - return(0); -#endif /* __FreeBSD__ */ -} -#endif - #define KREAD(kd, addr, obj) \ (kvm_read(kd, addr, (char *)(obj), sizeof(*obj)) != sizeof(*obj)) |