chiark / gitweb /
Prep v233: Add missing updates from upstream in src/basic
[elogind.git] / src / basic / missing_syscall.h
index 8a1c24cc560b817e119b0bfd0a146bdc3d2c3e9a..58423bd5574a98e3acaeacd722f66b833a2519aa 100644 (file)
@@ -181,18 +181,6 @@ static inline int setns(int fd, int nstype) {
 /* ======================================================================= */
 
 #if 0 /// UNNEEDED by elogind
-static inline int raw_clone(unsigned long flags, void *child_stack) {
-#if defined(__s390__) || defined(__CRIS__)
-        /* On s390 and cris the order of the first and second arguments
-         * of the raw clone() system call is reversed. */
-        return (int) syscall(__NR_clone, child_stack, flags);
-#else
-        return (int) syscall(__NR_clone, flags, child_stack);
-#endif
-}
-
-/* ======================================================================= */
-
 static inline pid_t raw_getpid(void) {
 #if defined(__alpha__)
         return (pid_t) syscall(__NR_getxpid);
@@ -200,6 +188,7 @@ static inline pid_t raw_getpid(void) {
         return (pid_t) syscall(__NR_getpid);
 #endif
 }
+#endif // 0
 
 /* ======================================================================= */
 
@@ -209,6 +198,8 @@ static inline pid_t raw_getpid(void) {
 #      define __NR_renameat2 316
 #    elif defined __arm__
 #      define __NR_renameat2 382
+#    elif defined __aarch64__
+#      define __NR_renameat2 276
 #    elif defined _MIPS_SIM
 #      if _MIPS_SIM == _MIPS_SIM_ABI32
 #        define __NR_renameat2 4351
@@ -279,7 +270,6 @@ static inline key_serial_t request_key(const char *type, const char *description
 #  endif
 }
 #endif
-#endif // 0
 
 /* ======================================================================= */