Deleted Added
full compact
proc.h (26332) proc.h (26671)
1/*-
2 * Copyright (c) 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)proc.h 8.15 (Berkeley) 5/19/95
1/*-
2 * Copyright (c) 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)proc.h 8.15 (Berkeley) 5/19/95
39 * $Id: proc.h,v 1.38 1997/05/22 07:24:46 phk Exp $
39 * $Id: proc.h,v 1.39 1997/06/01 08:49:49 peter Exp $
40 */
41
42#ifndef _SYS_PROC_H_
43#define _SYS_PROC_H_
44
45#include <machine/proc.h> /* Machine-dependent proc substruct. */
46#if defined(KERNEL) && defined(SMP)
47#include <machine/smp.h> /* cpunumber() */

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

173/* End area that is copied on creation. */
174#define p_endcopy p_addr
175 struct user *p_addr; /* Kernel virtual addr of u-area (PROC ONLY). */
176 struct mdproc p_md; /* Any machine-dependent fields. */
177
178 u_short p_xstat; /* Exit status for wait; also stop signal. */
179 u_short p_acflag; /* Accounting flags. */
180 struct rusage *p_ru; /* Exit information. XXX */
40 */
41
42#ifndef _SYS_PROC_H_
43#define _SYS_PROC_H_
44
45#include <machine/proc.h> /* Machine-dependent proc substruct. */
46#if defined(KERNEL) && defined(SMP)
47#include <machine/smp.h> /* cpunumber() */

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

173/* End area that is copied on creation. */
174#define p_endcopy p_addr
175 struct user *p_addr; /* Kernel virtual addr of u-area (PROC ONLY). */
176 struct mdproc p_md; /* Any machine-dependent fields. */
177
178 u_short p_xstat; /* Exit status for wait; also stop signal. */
179 u_short p_acflag; /* Accounting flags. */
180 struct rusage *p_ru; /* Exit information. XXX */
181
182 int p_nthreads; /* number of threads (only in leader) */
183 int p_npeers; /* number of kernel threads (only in leader) */
184 int p_wakeup; /* thread id */
185 struct proc *p_peers;
186 struct proc *p_leader;
181};
182
183#define p_session p_pgrp->pg_session
184#define p_pgid p_pgrp->pg_id
185
186/* Status values. */
187#define SIDL 1 /* Process being created by fork. */
188#define SRUN 2 /* Currently runnable. */

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

213
214/* Should be moved to machine-dependent areas. */
215#define P_OWEUPC 0x20000 /* Owe process an addupc() call at next ast. */
216
217#define P_SWAPPING 0x40000 /* Process is being swapped. */
218#define P_SWAPINREQ 0x80000 /* Swapin request due to wakeup */
219#define P_IDLEPROC 0x100000 /* Process is an idle-eater, don't count */
220
187};
188
189#define p_session p_pgrp->pg_session
190#define p_pgid p_pgrp->pg_id
191
192/* Status values. */
193#define SIDL 1 /* Process being created by fork. */
194#define SRUN 2 /* Currently runnable. */

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

219
220/* Should be moved to machine-dependent areas. */
221#define P_OWEUPC 0x20000 /* Owe process an addupc() call at next ast. */
222
223#define P_SWAPPING 0x40000 /* Process is being swapped. */
224#define P_SWAPINREQ 0x80000 /* Swapin request due to wakeup */
225#define P_IDLEPROC 0x100000 /* Process is an idle-eater, don't count */
226
227/* Marked a kernel thread */
228#define P_KTHREADP 0x200000 /* Process is really a kernel thread */
229
221/*
222 * MOVE TO ucred.h?
223 *
224 * Shareable process credentials (always resident). This includes a reference
225 * to the current user credentials as well as real and saved ids that may be
226 * used to change ids.
227 */
228struct pcred {

--- 96 unchanged lines hidden ---
230/*
231 * MOVE TO ucred.h?
232 *
233 * Shareable process credentials (always resident). This includes a reference
234 * to the current user credentials as well as real and saved ids that may be
235 * used to change ids.
236 */
237struct pcred {

--- 96 unchanged lines hidden ---