chiark / gitweb /
Drop my copyright headers
[elogind.git] / src / basic / missing_syscall.h
index b6083fa3159dc603101bf9627694c89b61b4e791..3232a89a0fbd559adaa836b6af7ffe0e5cf79e13 100644 (file)
@@ -1,13 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  This file is part of systemd.
-
-  Copyright 2010 Lennart Poettering
-  Copyright 2016 Zbigniew JÄ™drzejewski-Szmek
-***/
-
 /* Missing glibc definitions to access certain kernel APIs */
 
 #if 0 /// UNNEEDED by elogind
@@ -258,7 +251,6 @@ static inline int missing_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long i
 #  define kcmp missing_kcmp
 #endif
 
-
 /* ======================================================================= */
 
 #if !HAVE_KEYCTL
@@ -405,8 +397,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