chiark / gitweb /
Prep v232: Apply missing updates from upstream
[elogind.git] / src / basic / missing_syscall.h
index abfe62a5eeab70ce5e79a95b3c728d1e0d4d07ea..84598c05bd89b7b57481fd623350f03046cfbe68 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);
@@ -295,6 +283,8 @@ static inline key_serial_t request_key(const char *type, const char *description
 #      define __NR_copy_file_range 391
 #    elif defined __aarch64__
 #      define __NR_copy_file_range 285
+#    elif defined __powerpc__
+#      define __NR_copy_file_range 379
 #    else
 #      warning "__NR_copy_file_range not defined for your architecture"
 #    endif