[PATCH 1/2] types.h: implement intptr_t and uintptr_t

Ben Myers bpm at sgi.com
Thu May 31 12:59:13 CDT 2012


Hey Jan,

On Fri, May 25, 2012 at 05:52:26PM +0200, Jan Engelhardt wrote:
> intptr_t and uintptr_t designate an (un)signed integer type capable of
> holding void* pointers.
> (http://pubs.opengroup.org/onlinepubs/000095399/basedefs/stdint.h.html )
> 
> Notes: In linux/types.h, there are a handful of guards like "#ifdef
> _PTRDIFF_T", but a git grep reveals that this is never ever defined
> anywhere, so I omitted a corresponding "#ifdef _INTPTR_T" guard.
> Same goes for "#define __kernel_ptrdiff_t" in
> arch/sh/include/asm/posix_types_64.h.

Would it be appropriate to CC linux-kernel on this one given the nature of the
change?

-Ben



More information about the xfs mailing list