|
1 | | -From e7fed5998191299cae27212dbabdaad6170cf32b Mon Sep 17 00:00:00 2001 |
| 1 | +From 58396f14b1732fd25cb4ad965a9353f48e1b97f7 Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Miao Wang <shankerwangmiao@gmail.com> |
3 | 3 | Date: Sun, 14 Jan 2024 15:51:49 +0800 |
4 | 4 | Subject: [PATCH 06/10] add syscall fallback for *stat(at)? |
5 | 5 |
|
6 | 6 | --- |
| 7 | + sysdeps/unix/sysv/linux/loongarch/fstatat64.c | 13 ++++ |
7 | 8 | sysdeps/unix/sysv/linux/loongarch/fxstat64.c | 67 ++++++++++++++++ |
8 | 9 | .../unix/sysv/linux/loongarch/fxstatat64.c | 61 +++++++++++++++ |
9 | 10 | sysdeps/unix/sysv/linux/loongarch/lxstat64.c | 77 +++++++++++++++++++ |
10 | 11 | .../unix/sysv/linux/loongarch/ow_syscall_nr.h | 2 + |
11 | 12 | sysdeps/unix/sysv/linux/loongarch/xstat64.c | 71 +++++++++++++++++ |
12 | | - 5 files changed, 278 insertions(+) |
| 13 | + 6 files changed, 291 insertions(+) |
| 14 | + create mode 100644 sysdeps/unix/sysv/linux/loongarch/fstatat64.c |
13 | 15 | create mode 100644 sysdeps/unix/sysv/linux/loongarch/fxstat64.c |
14 | 16 | create mode 100644 sysdeps/unix/sysv/linux/loongarch/fxstatat64.c |
15 | 17 | create mode 100644 sysdeps/unix/sysv/linux/loongarch/lxstat64.c |
16 | 18 | create mode 100644 sysdeps/unix/sysv/linux/loongarch/ow_syscall_nr.h |
17 | 19 | create mode 100644 sysdeps/unix/sysv/linux/loongarch/xstat64.c |
18 | 20 |
|
| 21 | +diff --git a/sysdeps/unix/sysv/linux/loongarch/fstatat64.c b/sysdeps/unix/sysv/linux/loongarch/fstatat64.c |
| 22 | +new file mode 100644 |
| 23 | +index 00000000..a437eeaa |
| 24 | +--- /dev/null |
| 25 | ++++ b/sysdeps/unix/sysv/linux/loongarch/fstatat64.c |
| 26 | +@@ -0,0 +1,13 @@ |
| 27 | ++#include <shlib-compat.h> |
| 28 | ++ |
| 29 | ++#if LIB_COMPAT(libc, GLIBC_2_27, GLIBC_2_36) |
| 30 | ++# include <kernel-features.h> |
| 31 | ++# ifdef __ASSUME_STATX |
| 32 | ++# undef __ASSUME_STATX |
| 33 | ++# endif |
| 34 | ++// Hack: force use statx for fstatat64 even __NR_newfstatat is available |
| 35 | ++# define STAT_HAS_TIME32 |
| 36 | ++# include "ow_syscall_nr.h" |
| 37 | ++#endif |
| 38 | ++ |
| 39 | ++#include <sysdeps/unix/sysv/linux/fstatat64.c> |
19 | 40 | diff --git a/sysdeps/unix/sysv/linux/loongarch/fxstat64.c b/sysdeps/unix/sysv/linux/loongarch/fxstat64.c |
20 | 41 | new file mode 100644 |
21 | 42 | index 00000000..f7174ea8 |
|
0 commit comments