Thread (3 messages) flat view 3 messages, 3 authors, 2005-09-10

Re: PATCH ppc Merge asm-ppc*/posix_types.h

From: Stephen Rothwell <hidden>
Date: 2005-09-10 10:12:22

On Fri, 09 Sep 2005 16:43:52 -0500 jdl@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@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help