proc.h (41086) | proc.h (41087) |
---|---|
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.59 1998/11/09 15:08:04 truckman Exp $ | 39 * $Id: proc.h,v 1.60 1998/11/11 10:04:12 truckman Exp $ |
40 */ 41 42#ifndef _SYS_PROC_H_ 43#define _SYS_PROC_H_ 44 45#include <machine/proc.h> /* Machine-dependent proc substruct. */ 46#include <sys/callout.h> /* For struct callout_handle. */ 47#include <sys/rtprio.h> /* For struct rtprio. */ 48#include <sys/select.h> /* For struct selinfo. */ 49#include <sys/signal.h> 50#ifndef KERNEL 51#include <sys/time.h> /* For structs itimerval, timeval. */ 52#endif 53#include <sys/ucred.h> 54#include <sys/queue.h> | 40 */ 41 42#ifndef _SYS_PROC_H_ 43#define _SYS_PROC_H_ 44 45#include <machine/proc.h> /* Machine-dependent proc substruct. */ 46#include <sys/callout.h> /* For struct callout_handle. */ 47#include <sys/rtprio.h> /* For struct rtprio. */ 48#include <sys/select.h> /* For struct selinfo. */ 49#include <sys/signal.h> 50#ifndef KERNEL 51#include <sys/time.h> /* For structs itimerval, timeval. */ 52#endif 53#include <sys/ucred.h> 54#include <sys/queue.h> |
55#include <sys/filedesc.h> /* For struct sigiolst */ | 55#include |
56 57/* 58 * One structure allocated per session. 59 */ 60struct session { 61 int s_count; /* Ref cnt; pgrps in session. */ 62 struct proc *s_leader; /* Session leader. */ 63 struct vnode *s_ttyvp; /* Vnode of controlling terminal. */ --- 4 unchanged lines hidden (view full) --- 68 69/* 70 * One structure allocated per process group. 71 */ 72struct pgrp { 73 LIST_ENTRY(pgrp) pg_hash; /* Hash chain. */ 74 LIST_HEAD(, proc) pg_members; /* Pointer to pgrp members. */ 75 struct session *pg_session; /* Pointer to session. */ | 56 57/* 58 * One structure allocated per session. 59 */ 60struct session { 61 int s_count; /* Ref cnt; pgrps in session. */ 62 struct proc *s_leader; /* Session leader. */ 63 struct vnode *s_ttyvp; /* Vnode of controlling terminal. */ --- 4 unchanged lines hidden (view full) --- 68 69/* 70 * One structure allocated per process group. 71 */ 72struct pgrp { 73 LIST_ENTRY(pgrp) pg_hash; /* Hash chain. */ 74 LIST_HEAD(, proc) pg_members; /* Pointer to pgrp members. */ 75 struct session *pg_session; /* Pointer to session. */ |
76 struct sigiolst pg_sigiolst; /* List of sigio sources */ | 76 struct sigiolst pg_sigiolst; /* List of sigio sources. */ |
77 pid_t pg_id; /* Pgrp id. */ 78 int pg_jobc; /* # procs qualifying pgrp for job control */ 79}; 80 81/* 82 * Description of a process. 83 * 84 * This structure contains the information needed to manage a thread of --- 73 unchanged lines hidden (view full) --- 158 short p_locks; /* DEBUG: lockmgr count of held locks */ 159 short p_simple_locks; /* DEBUG: count of held simple locks */ 160 unsigned int p_stops; /* procfs event bitmask */ 161 unsigned int p_stype; /* procfs stop event type */ 162 char p_step; /* procfs stop *once* flag */ 163 unsigned char p_pfsflags; /* procfs flags */ 164 char p_pad3[2]; /* padding for alignment */ 165 register_t p_retval[2]; /* syscall aux returns */ | 77 pid_t pg_id; /* Pgrp id. */ 78 int pg_jobc; /* # procs qualifying pgrp for job control */ 79}; 80 81/* 82 * Description of a process. 83 * 84 * This structure contains the information needed to manage a thread of --- 73 unchanged lines hidden (view full) --- 158 short p_locks; /* DEBUG: lockmgr count of held locks */ 159 short p_simple_locks; /* DEBUG: count of held simple locks */ 160 unsigned int p_stops; /* procfs event bitmask */ 161 unsigned int p_stype; /* procfs stop event type */ 162 char p_step; /* procfs stop *once* flag */ 163 unsigned char p_pfsflags; /* procfs flags */ 164 char p_pad3[2]; /* padding for alignment */ 165 register_t p_retval[2]; /* syscall aux returns */ |
166 struct sigiolst p_sigiolst; /* List of sigio sources */ | 166 struct sigiolst p_sigiolst; /* list of sigio sources */ |
167 168/* End area that is zeroed on creation. */ 169#define p_endzero p_startcopy 170 171/* The following fields are all copied upon creation in fork. */ 172#define p_startcopy p_sigmask 173 174 sigset_t p_sigmask; /* Current signal mask. */ --- 185 unchanged lines hidden --- | 167 168/* End area that is zeroed on creation. */ 169#define p_endzero p_startcopy 170 171/* The following fields are all copied upon creation in fork. */ 172#define p_startcopy p_sigmask 173 174 sigset_t p_sigmask; /* Current signal mask. */ --- 185 unchanged lines hidden --- |