Deleted Added
full compact
kvm_proc.c (177089) kvm_proc.c (185435)
1/*-
2 * Copyright (c) 1989, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software developed by the Computer Systems
6 * Engineering group at Lawrence Berkeley Laboratory under DARPA contract
7 * BG 91-66 and contributed to Berkeley.
8 *

--- 24 unchanged lines hidden (view full) ---

33
34#if 0
35#if defined(LIBC_SCCS) && !defined(lint)
36static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
37#endif /* LIBC_SCCS and not lint */
38#endif
39
40#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software developed by the Computer Systems
6 * Engineering group at Lawrence Berkeley Laboratory under DARPA contract
7 * BG 91-66 and contributed to Berkeley.
8 *

--- 24 unchanged lines hidden (view full) ---

33
34#if 0
35#if defined(LIBC_SCCS) && !defined(lint)
36static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
37#endif /* LIBC_SCCS and not lint */
38#endif
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/lib/libkvm/kvm_proc.c 177089 2008-03-12 10:00:33Z jeff $");
41__FBSDID("$FreeBSD: head/lib/libkvm/kvm_proc.c 185435 2008-11-29 14:32:14Z bz $");
42
43/*
44 * Proc traversal interface for kvm. ps and w are (probably) the exclusive
45 * users of this code, so we've factored it out into a separate module.
46 * Thus, we keep this grunge out of the other kvm applications (i.e.,
47 * most other applications are interested only in open/close/read/nlist).
48 */
49
50#include <sys/param.h>
51#define _WANT_UCRED /* make ucred.h give us 'struct ucred' */
52#include <sys/ucred.h>
53#include <sys/queue.h>
54#include <sys/_lock.h>
55#include <sys/_mutex.h>
56#include <sys/_task.h>
42
43/*
44 * Proc traversal interface for kvm. ps and w are (probably) the exclusive
45 * users of this code, so we've factored it out into a separate module.
46 * Thus, we keep this grunge out of the other kvm applications (i.e.,
47 * most other applications are interested only in open/close/read/nlist).
48 */
49
50#include <sys/param.h>
51#define _WANT_UCRED /* make ucred.h give us 'struct ucred' */
52#include <sys/ucred.h>
53#include <sys/queue.h>
54#include <sys/_lock.h>
55#include <sys/_mutex.h>
56#include <sys/_task.h>
57#define _WANT_PRISON /* make jail.h give us 'struct prison' */
58#include <sys/jail.h>
57#include <sys/cpuset.h>
59#include <sys/user.h>
60#include <sys/proc.h>
58#include <sys/user.h>
59#include <sys/proc.h>
60#define _WANT_PRISON /* make jail.h give us 'struct prison' */
61#include <sys/jail.h>
61#include <sys/exec.h>
62#include <sys/stat.h>
63#include <sys/sysent.h>
64#include <sys/ioctl.h>
65#include <sys/tty.h>
66#include <sys/file.h>
67#include <sys/conf.h>
68#include <stdio.h>

--- 943 unchanged lines hidden ---
62#include <sys/exec.h>
63#include <sys/stat.h>
64#include <sys/sysent.h>
65#include <sys/ioctl.h>
66#include <sys/tty.h>
67#include <sys/file.h>
68#include <sys/conf.h>
69#include <stdio.h>

--- 943 unchanged lines hidden ---