Linux: make generic xstatver.h the default one
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 19 Oct 2022 22:14:30 +0000 (19:14 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Dec 2022 17:40:36 +0000 (14:40 -0300)
And copy the current default one to required ABIs.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/arm/xstatver.h [moved from sysdeps/unix/sysv/linux/generic/xstatver.h with 52% similarity]
sysdeps/unix/sysv/linux/hppa/xstatver.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/sh/xstatver.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/xstatver.h

similarity index 52%
rename from sysdeps/unix/sysv/linux/generic/xstatver.h
rename to sysdeps/unix/sysv/linux/arm/xstatver.h
index d8fd35b..8e1801b 100644 (file)
@@ -1,10 +1,13 @@
 /* Versions of the 'struct stat' data structure used in compatibility xstat
    functions.  */
-#define _STAT_VER_KERNEL       0
-#define _STAT_VER_LINUX                0
-#define _STAT_VER              _STAT_VER_KERNEL
+#define _STAT_VER_LINUX_OLD    1
+#define _STAT_VER_KERNEL       1
+#define _STAT_VER_SVR4         2
+#define _STAT_VER_LINUX                3
+#define _STAT_VER              _STAT_VER_LINUX
 
 /* Versions of the 'xmknod' interface used in compatibility xmknod
    functions.  */
-#define _MKNOD_VER_LINUX       0
+#define _MKNOD_VER_LINUX       1
+#define _MKNOD_VER_SVR4                2
 #define _MKNOD_VER             _MKNOD_VER_LINUX
diff --git a/sysdeps/unix/sysv/linux/hppa/xstatver.h b/sysdeps/unix/sysv/linux/hppa/xstatver.h
new file mode 100644 (file)
index 0000000..8e1801b
--- /dev/null
@@ -0,0 +1,13 @@
+/* Versions of the 'struct stat' data structure used in compatibility xstat
+   functions.  */
+#define _STAT_VER_LINUX_OLD    1
+#define _STAT_VER_KERNEL       1
+#define _STAT_VER_SVR4         2
+#define _STAT_VER_LINUX                3
+#define _STAT_VER              _STAT_VER_LINUX
+
+/* Versions of the 'xmknod' interface used in compatibility xmknod
+   functions.  */
+#define _MKNOD_VER_LINUX       1
+#define _MKNOD_VER_SVR4                2
+#define _MKNOD_VER             _MKNOD_VER_LINUX
diff --git a/sysdeps/unix/sysv/linux/sh/xstatver.h b/sysdeps/unix/sysv/linux/sh/xstatver.h
new file mode 100644 (file)
index 0000000..8e1801b
--- /dev/null
@@ -0,0 +1,13 @@
+/* Versions of the 'struct stat' data structure used in compatibility xstat
+   functions.  */
+#define _STAT_VER_LINUX_OLD    1
+#define _STAT_VER_KERNEL       1
+#define _STAT_VER_SVR4         2
+#define _STAT_VER_LINUX                3
+#define _STAT_VER              _STAT_VER_LINUX
+
+/* Versions of the 'xmknod' interface used in compatibility xmknod
+   functions.  */
+#define _MKNOD_VER_LINUX       1
+#define _MKNOD_VER_SVR4                2
+#define _MKNOD_VER             _MKNOD_VER_LINUX
index 8e1801b..d8fd35b 100644 (file)
@@ -1,13 +1,10 @@
 /* Versions of the 'struct stat' data structure used in compatibility xstat
    functions.  */
-#define _STAT_VER_LINUX_OLD    1
-#define _STAT_VER_KERNEL       1
-#define _STAT_VER_SVR4         2
-#define _STAT_VER_LINUX                3
-#define _STAT_VER              _STAT_VER_LINUX
+#define _STAT_VER_KERNEL       0
+#define _STAT_VER_LINUX                0
+#define _STAT_VER              _STAT_VER_KERNEL
 
 /* Versions of the 'xmknod' interface used in compatibility xmknod
    functions.  */
-#define _MKNOD_VER_LINUX       1
-#define _MKNOD_VER_SVR4                2
+#define _MKNOD_VER_LINUX       0
 #define _MKNOD_VER             _MKNOD_VER_LINUX