[PATCH for branch glibc-2-3-1] s390 __ssize_t definition change

Gerhard Tonn ton@de.ibm.com
Tue Nov 5 02:51:00 GMT 2002


Hi,
attached is a patch that changes __ssize_t for s390 back to what is was defined
in glibc 2.2.5. The current definition gives some C++ template instantiation
problems.

2002-11-05	Gerhard Tonn	<ton@de.ibm.com>
	   * sysdeps/unix/sysv/linux/s390/bits/types.h: Change __ssize_t  for 32 bit back to int.

--- sysdeps/unix/sysv/linux/s390/bits/types.h.bak	2002-11-05 11:00:41.000000000 +0100
+++ sysdeps/unix/sysv/linux/s390/bits/types.h	2002-11-05 11:03:14.000000000 +0100
@@ -79,7 +79,11 @@
 typedef long int  __off_t;		/* Type of file sizes and offsets.  */
 typedef __quad_t __loff_t;		/* Type of file sizes and offsets.  */
 typedef int __pid_t;			/* Type of process identifications.  */
-typedef long __ssize_t;			/* Type of a byte count, or error.  */
+#if __WORDSIZE == 64
+typedef long int __ssize_t;		/* Type of a byte count, or error.  */
+#else
+typedef int __ssize_t;			/* Type of a byte count, or error.  */
+#endif
 typedef __u_long __rlim_t;		/* Type of resource counts.  */
 typedef __u_quad_t __rlim64_t;		/* Type of resource counts (LFS).  */
 typedef __u_int __id_t;			/* General type for ID.  */

--
Regards,
Gerhard



More information about the Libc-alpha mailing list