Deleted Added
full compact
user.h (37689) user.h (41931)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)user.h 8.2 (Berkeley) 9/23/93
1/*
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)user.h 8.2 (Berkeley) 9/23/93
34 * $Id: user.h,v 1.15 1998/03/28 10:33:24 bde Exp $
34 * $Id: user.h,v 1.16 1998/07/15 20:18:00 dfr Exp $
35 */
36
37#ifndef _SYS_USER_H_
38#define _SYS_USER_H_
39
40#include <machine/pcb.h>
41#ifndef KERNEL
42/* stuff that *used* to be included by user.h, or is now needed */

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

97 * when the process isn't running (esp. when swapped out).
98 * This structure may or may not be at the same kernel address
99 * in all processes.
100 */
101
102struct user {
103 struct pcb u_pcb;
104
35 */
36
37#ifndef _SYS_USER_H_
38#define _SYS_USER_H_
39
40#include <machine/pcb.h>
41#ifndef KERNEL
42/* stuff that *used* to be included by user.h, or is now needed */

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

97 * when the process isn't running (esp. when swapped out).
98 * This structure may or may not be at the same kernel address
99 * in all processes.
100 */
101
102struct user {
103 struct pcb u_pcb;
104
105#ifndef COMPAT_LINUX_THREADS
105 struct sigacts u_sigacts; /* p_sigacts points here (use it!) */
106 struct sigacts u_sigacts; /* p_sigacts points here (use it!) */
107#endif /* COMPAT_LINUX_THREADS */
106 struct pstats u_stats; /* p_stats points here (use it!) */
107
108 /*
109 * Remaining fields only for core dump and/or ptrace--
110 * not valid at other times!
111 */
112 struct kinfo_proc u_kproc; /* proc + eproc */
113 struct md_coredump u_md; /* machine dependent glop */

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

122#define U_ar0 u_kproc.kp_proc.p_md.md_regs /* copy of curproc->p_md.md_regs */
123#endif
124#ifdef __alpha__
125#define U_ar0 u_kproc.kp_proc.p_md.md_tf /* copy of curproc->p_md.md_tf */
126#endif
127#define U_tsize u_kproc.kp_eproc.e_vm.vm_tsize
128#define U_dsize u_kproc.kp_eproc.e_vm.vm_dsize
129#define U_ssize u_kproc.kp_eproc.e_vm.vm_ssize
108 struct pstats u_stats; /* p_stats points here (use it!) */
109
110 /*
111 * Remaining fields only for core dump and/or ptrace--
112 * not valid at other times!
113 */
114 struct kinfo_proc u_kproc; /* proc + eproc */
115 struct md_coredump u_md; /* machine dependent glop */

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

124#define U_ar0 u_kproc.kp_proc.p_md.md_regs /* copy of curproc->p_md.md_regs */
125#endif
126#ifdef __alpha__
127#define U_ar0 u_kproc.kp_proc.p_md.md_tf /* copy of curproc->p_md.md_tf */
128#endif
129#define U_tsize u_kproc.kp_eproc.e_vm.vm_tsize
130#define U_dsize u_kproc.kp_eproc.e_vm.vm_dsize
131#define U_ssize u_kproc.kp_eproc.e_vm.vm_ssize
132#ifndef COMPAT_LINUX_THREADS
130#define U_sig u_sigacts.ps_sig
131#define U_code u_sigacts.ps_code
133#define U_sig u_sigacts.ps_sig
134#define U_code u_sigacts.ps_code
135#else
136#define U_sig u_kproc.kp_proc.p_sig
137#define U_code u_kproc.kp_proc.p_code
138#endif /* COMPAT_LINUX_THREADS */
132
133#ifndef KERNEL
134#define u_ar0 U_ar0
135#define u_tsize U_tsize
136#define u_dsize U_dsize
137#define u_ssize U_ssize
138#define u_sig U_sig
139#define u_code U_code
140#endif /* KERNEL */
141
142#endif
139
140#ifndef KERNEL
141#define u_ar0 U_ar0
142#define u_tsize U_tsize
143#define u_dsize U_dsize
144#define u_ssize U_ssize
145#define u_sig U_sig
146#define u_code U_code
147#endif /* KERNEL */
148
149#endif