PATCH ppc Merge asm-ppc*/posix_types.h
Stephen Rothwell
sfr at canb.auug.org.au
Sat Sep 10 20:12:22 EST 2005
On Fri, 09 Sep 2005 16:43:52 -0500 jdl at freescale.com wrote:
>
> +#ifdef __powerpc64__
> +typedef unsigned long __kernel_nlink_t;
> +typedef int __kernel_ipc_pid_t;
> +typedef unsigned long __kernel_size_t;
> +typedef long __kernel_ssize_t;
> +typedef unsigned long __kernel_old_dev_t;
> +#else
> +typedef unsigned short __kernel_nlink_t;
> +typedef short __kernel_ipc_pid_t;
> +typedef unsigned int __kernel_size_t;
> +typedef int __kernel_ssize_t;
> +typedef unsigned int __kernel_old_dev_t;
> +#endif
On 32 bit, int == long, so the last three could be removed from the ifdef
by making them {unsigned }long ...
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20050910/04f758ec/attachment.pgp
More information about the Linuxppc64-dev
mailing list