chiark / gitweb /
add __nr_statx defines for extra architectures (#8872)
authorAdam Duskett <Aduskett@gmail.com>
Wed, 2 May 2018 08:04:50 +0000 (04:04 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
This includes:
 - arm
 - arm64
 - alpha
 - powerpc64
 - sparc

Taken from kernel 4.16.6

src/basic/missing_syscall.h

index b6083fa3159dc603101bf9627694c89b61b4e791..50fdf1c4a7cca72fc803621de45004d241e22796 100644 (file)
@@ -405,8 +405,14 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) {
 
 #if !HAVE_STATX
 #  ifndef __NR_statx
-#    if defined __i386__
+#    if defined __aarch64__ || defined __arm__
+#      define __NR_statx 397
+#    elif defined __alpha__
+#      define __NR_statx 522
+#    elif defined __i386__ || defined __powerpc64__
 #      define __NR_statx 383
+#    elif defined __sparc__
+#      define __NR_statx 360
 #    elif defined __x86_64__
 #      define __NR_statx 332
 #    else