Skip to content

Commit 945fc70

Browse files
alexrpandrewrk
authored andcommitted
glibc: Add missing xstatver.h for some linux architectures.
Specifically for alpha, arm, hppa, microblaze, and sh. Closes ziglang#20054.
1 parent 60011d2 commit 945fc70

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Versions of the 'struct stat' data structure used in compatibility xstat
2+
functions. */
3+
#define _STAT_VER_KERNEL 0
4+
#define _STAT_VER_GLIBC2 1
5+
#define _STAT_VER_GLIBC2_1 2
6+
#define _STAT_VER_KERNEL64 3
7+
#define _STAT_VER_GLIBC2_3_4 3
8+
#define _STAT_VER_LINUX 3
9+
#define _STAT_VER _STAT_VER_LINUX
10+
11+
/* Versions of the 'xmknod' interface used in compatibility xmknod
12+
functions. */
13+
#define _MKNOD_VER_LINUX 0
14+
#define _MKNOD_VER _MKNOD_VER_LINUX
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Versions of the 'struct stat' data structure used in compatibility xstat
2+
functions. */
3+
#define _STAT_VER_LINUX_OLD 1
4+
#define _STAT_VER_KERNEL 1
5+
#define _STAT_VER_SVR4 2
6+
#define _STAT_VER_LINUX 3
7+
#define _STAT_VER _STAT_VER_LINUX
8+
9+
/* Versions of the 'xmknod' interface used in compatibility xmknod
10+
functions. */
11+
#define _MKNOD_VER_LINUX 1
12+
#define _MKNOD_VER_SVR4 2
13+
#define _MKNOD_VER _MKNOD_VER_LINUX
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Versions of the 'struct stat' data structure used in compatibility xstat
2+
functions. */
3+
#define _STAT_VER_LINUX_OLD 1
4+
#define _STAT_VER_KERNEL 1
5+
#define _STAT_VER_SVR4 2
6+
#define _STAT_VER_LINUX 3
7+
#define _STAT_VER _STAT_VER_LINUX
8+
9+
/* Versions of the 'xmknod' interface used in compatibility xmknod
10+
functions. */
11+
#define _MKNOD_VER_LINUX 1
12+
#define _MKNOD_VER_SVR4 2
13+
#define _MKNOD_VER _MKNOD_VER_LINUX
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Versions of the 'struct stat' data structure used in compatibility xstat
2+
functions. */
3+
#define _STAT_VER_LINUX_OLD 1
4+
#define _STAT_VER_KERNEL 1
5+
#define _STAT_VER_SVR4 2
6+
#define _STAT_VER_LINUX 3
7+
#define _STAT_VER _STAT_VER_LINUX /* The one defined below. */
8+
9+
/* Versions of the 'xmknod' interface used in compatibility xmknod
10+
functions. */
11+
#define _MKNOD_VER_LINUX 1
12+
#define _MKNOD_VER_SVR4 2
13+
#define _MKNOD_VER _MKNOD_VER_LINUX
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* Versions of the 'struct stat' data structure used in compatibility xstat
2+
functions. */
3+
#define _STAT_VER_LINUX_OLD 1
4+
#define _STAT_VER_KERNEL 1
5+
#define _STAT_VER_SVR4 2
6+
#define _STAT_VER_LINUX 3
7+
#define _STAT_VER _STAT_VER_LINUX
8+
9+
/* Versions of the 'xmknod' interface used in compatibility xmknod
10+
functions. */
11+
#define _MKNOD_VER_LINUX 1
12+
#define _MKNOD_VER_SVR4 2
13+
#define _MKNOD_VER _MKNOD_VER_LINUX

0 commit comments

Comments
 (0)