freebsd32.h (190621) | freebsd32.h (205014) |
---|---|
1/*- 2 * Copyright (c) 2001 Doug Rabson 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2001 Doug Rabson 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/compat/freebsd32/freebsd32.h 190621 2009-04-01 13:11:50Z kib $ | 26 * $FreeBSD: head/sys/compat/freebsd32/freebsd32.h 205014 2010-03-11 14:49:06Z nwhitehorn $ |
27 */ 28 29#ifndef _COMPAT_FREEBSD32_FREEBSD32_H_ 30#define _COMPAT_FREEBSD32_FREEBSD32_H_ 31 | 27 */ 28 29#ifndef _COMPAT_FREEBSD32_FREEBSD32_H_ 30#define _COMPAT_FREEBSD32_FREEBSD32_H_ 31 |
32#include <sys/procfs.h> 33#include <sys/socket.h> 34 |
|
32#define PTRIN(v) (void *)(uintptr_t) (v) 33#define PTROUT(v) (u_int32_t)(uintptr_t) (v) 34 35#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0) 36#define PTRIN_CP(src,dst,fld) \ 37 do { (dst).fld = PTRIN((src).fld); } while (0) 38#define PTROUT_CP(src,dst,fld) \ 39 do { (dst).fld = PTROUT((src).fld); } while (0) --- 152 unchanged lines hidden (view full) --- 192}; 193 194struct i386_ldt_args32 { 195 uint32_t start; 196 uint32_t descs; 197 uint32_t num; 198}; 199 | 35#define PTRIN(v) (void *)(uintptr_t) (v) 36#define PTROUT(v) (u_int32_t)(uintptr_t) (v) 37 38#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0) 39#define PTRIN_CP(src,dst,fld) \ 40 do { (dst).fld = PTRIN((src).fld); } while (0) 41#define PTROUT_CP(src,dst,fld) \ 42 do { (dst).fld = PTROUT((src).fld); } while (0) --- 152 unchanged lines hidden (view full) --- 195}; 196 197struct i386_ldt_args32 { 198 uint32_t start; 199 uint32_t descs; 200 uint32_t num; 201}; 202 |
203/* 204 * Alternative layouts for <sys/procfs.h> 205 */ 206struct prstatus32 { 207 int pr_version; 208 u_int pr_statussz; 209 u_int pr_gregsetsz; 210 u_int pr_fpregsetsz; 211 int pr_osreldate; 212 int pr_cursig; 213 pid_t pr_pid; 214 struct reg32 pr_reg; 215}; 216 217struct prpsinfo32 { 218 int pr_version; 219 u_int pr_psinfosz; 220 char pr_fname[PRFNAMESZ+1]; 221 char pr_psargs[PRARGSZ+1]; 222}; 223 |
|
200#endif /* !_COMPAT_FREEBSD32_FREEBSD32_H_ */ | 224#endif /* !_COMPAT_FREEBSD32_FREEBSD32_H_ */ |