summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/types.h
diff options
context:
space:
mode:
authorZhangjin Wu <falcon@tinylab.org>2023-07-16 02:20:01 +0800
committerWilly Tarreau <w@1wt.eu>2023-08-23 04:40:22 +0200
commitaf93807eaef689a4964fdec085c77c24b49a5560 (patch)
tree4abf2e52f5a1642f37d80b4a24dec1979935dac6 /tools/include/nolibc/types.h
parentbff60150f7c464d80d86f289c056c2ad2afb3c05 (diff)
downloadlinux-af93807eaef689a4964fdec085c77c24b49a5560.tar.gz
linux-af93807eaef689a4964fdec085c77c24b49a5560.tar.bz2
linux-af93807eaef689a4964fdec085c77c24b49a5560.zip
tools/nolibc: remove the old sys_stat support
The statx manpage [1] shows that it has been supported from Linux 4.11 and glibc 2.28, the Linux support can be checked for all of the architectures with this command: $ git grep -r statx v4.11 arch/ include/uapi/asm-generic/unistd.h \ | grep -E "aarch64|arm|mips|s390|x86|:include/uapi" Besides riscv and loongarch, all of the nolibc supported architectures have added sys_statx from Linux v4.11. riscv is mainlined to v4.15, loongarch is mainlined to v5.19, both of them use the generic unistd.h, so, they have added sys_statx from their first mainline versions. The current oldest stable branch is v4.14, only reserving sys_statx still preserves compatibility with all of the supported stable branches, So, let's remove the old arch related and dependent sys_stat support completely. This is friendly to the future new architecture porting. [1]: https://man7.org/linux/man-pages/man2/statx.2.html Signed-off-by: Zhangjin Wu <falcon@tinylab.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/include/nolibc/types.h')
-rw-r--r--tools/include/nolibc/types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h
index 23963e48d8ee..8cfc4c860fa4 100644
--- a/tools/include/nolibc/types.h
+++ b/tools/include/nolibc/types.h
@@ -15,8 +15,8 @@
/* Only the generic macros and types may be defined here. The arch-specific
- * ones such as the O_RDONLY and related macros used by fcntl() and open(), or
- * the layout of sys_stat_struct must not be defined here.
+ * ones such as the O_RDONLY and related macros used by fcntl() and open()
+ * must not be defined here.
*/
/* stat flags (WARNING, octal here). We need to check for an existing