[parisc-linux] SMP: We have ignition

Alan Modra alan@linuxcare.com.au
Wed, 28 Feb 2001 00:04:51 +1100 (EST)


On Tue, 27 Feb 2001, Alan Cox wrote:

> Why isnt gcc prototyping and defining
> 
> 	__memcpy
> 	__strncpy
> 
> and #defining them across in libc header files ?

Huh?

> Is there a 'dont use builtins' flag ?

-fno-builtin

I'd be inclined to do this instead

--- include/asm-parisc/posix_types.h~	Tue Dec  5 13:13:45 2000
+++ include/asm-parisc/posix_types.h	Tue Feb 27 23:30:11 2001
@@ -19,10 +19,17 @@
 typedef int			__kernel_clock_t;
 typedef int			__kernel_daddr_t;
 /* Note these change from narrow to wide kernels */
+#ifdef __LP64__
 typedef unsigned long		__kernel_size_t;
 typedef long			__kernel_ssize_t;
 typedef long			__kernel_ptrdiff_t;
 typedef long			__kernel_time_t;
+#else
+typedef unsigned int		__kernel_size_t;
+typedef int			__kernel_ssize_t;
+typedef int			__kernel_ptrdiff_t;
+typedef int			__kernel_time_t;
+#endif
 typedef char *			__kernel_caddr_t;
 
 typedef unsigned short		__kernel_uid16_t;