From e6930a385cee9ccad60b87c385ea268f880443c3 Mon Sep 17 00:00:00 2001 From: tjr Date: Mon, 16 Aug 2004 07:05:44 +0000 Subject: Add a new type, l_uintptr_t, which is an unsigned integer type with the same width as a pointer under Linux. Add two new macros, PTRIN and PTROUT, which convert between l_uintptr_t and native pointers. --- sys/i386/linux/linux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/i386/linux/linux.h') diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index 3faded5..fa0ab75 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -47,6 +47,9 @@ extern u_char linux_debug_map[]; MALLOC_DECLARE(M_LINUX); #endif +#define PTRIN(v) (void *)(v) +#define PTROUT(v) (l_uintptr_t)(v) + /* * Provide a separate set of types for the Linux types. */ @@ -60,6 +63,7 @@ typedef uint64_t l_ulonglong; typedef unsigned short l_ushort; typedef char *l_caddr_t; +typedef l_ulong l_uintptr_t; typedef l_long l_clock_t; typedef l_int l_daddr_t; typedef l_ushort l_dev_t; -- cgit v1.1