[PATCH] S/390: Fix namespace violation

Stefan Liebler stli@linux.vnet.ibm.com
Fri Mar 14 12:55:00 GMT 2014


Hi,

on S390x some conformance tests are failing due to namespace violation:
conform/POSIX/sys/stat.h/conform.out
conform/XPG4/ftw.h/conform.out
conform/UNIX98/mqueue.h/conform.out
conform/UNIX98/sys/stat.h/conform.out
conform/UNIX98/ftw.h/conform.out
conform/XOPEN2K/sys/stat.h/conform.out
conform/XOPEN2K/ftw.h/conform.out
conform/POSIX2008/mqueue.h/conform.out
conform/POSIX2008/sys/stat.h/conform.out
conform/XOPEN2K8/mqueue.h/conform.out
conform/XOPEN2K8/sys/stat.h/conform.out
conform/XOPEN2K8/ftw.h/conform.out

After renaming pad0 to __pad0 in struct stat,
the namespace isn`t violated anymore.

Bye

---
2014-03-14  Stefan Liebler  <stli@linux.vnet.ibm.com>

	* sysdeps/unix/sysv/linux/s390/bits/stat.h
	(struct stat): Rename member pad0 to __pad0
---
-------------- next part --------------
diff --git a/sysdeps/unix/sysv/linux/s390/bits/stat.h b/sysdeps/unix/sysv/linux/s390/bits/stat.h
index c154fe9..bb4465c 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/stat.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/stat.h
@@ -55,7 +55,7 @@ struct stat
     __mode_t st_mode;		/* File mode.  */
     __uid_t st_uid;		/* User ID of the file's owner.	*/
     __gid_t st_gid;		/* Group ID of the file's group.*/
-    int pad0;
+    int __pad0;
     __dev_t st_rdev;		/* Device number, if device.  */
     __off_t st_size;		/* Size of file, in bytes.  */
 #ifdef __USE_XOPEN2K8
@@ -152,7 +152,7 @@ struct stat64
     __mode_t st_mode;		/* File mode.  */
     __uid_t st_uid;		/* User ID of the file's owner.	*/
     __gid_t st_gid;		/* Group ID of the file's group.*/
-    int pad0;
+    int __pad0;
     __dev_t st_rdev;		/* Device number, if device.  */
     __off_t st_size;		/* Size of file, in bytes.  */
 #  ifdef __USE_XOPEN2K8


More information about the Libc-alpha mailing list