use syscall_arg_t type for syscall prototypes in pthread code
authorrofl0r <retnyg@gmx.net>
Tue, 7 Jan 2014 23:26:34 +0000 (00:26 +0100)
committerrofl0r <retnyg@gmx.net>
Sat, 22 Feb 2014 11:25:07 +0000 (12:25 +0100)
src/thread/cancel_dummy.c
src/thread/cancel_impl.c

index 047692c407007cf282ff3e4e7bb64b65b7450382..cc872375225ca30d64dfa0e1cea35d6f28fd4728 100644 (file)
@@ -1,6 +1,8 @@
 #include "pthread_impl.h"
+#include "syscall.h"
 
-static long sccp(long nr, long u, long v, long w, long x, long y, long z)
+static long sccp(syscall_arg_t nr, syscall_arg_t u, syscall_arg_t v,
+                syscall_arg_t w, syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
 {
        return (__syscall)(nr, u, v, w, x, y, z);
 }
index a16489820ad7f8f3f06d5fab7676958eca201a5d..134fd7d341a197a865422c02c87b81d485fb1331 100644 (file)
@@ -1,4 +1,5 @@
 #include "pthread_impl.h"
+#include "syscall.h"
 
 void __cancel()
 {
@@ -8,9 +9,11 @@ void __cancel()
        pthread_exit(PTHREAD_CANCELED);
 }
 
-long __syscall_cp_asm(volatile void *, long, long, long, long, long, long, long);
+long __syscall_cp_asm(volatile void *, syscall_arg_t, syscall_arg_t, syscall_arg_t,
+                     syscall_arg_t, syscall_arg_t, syscall_arg_t, syscall_arg_t);
 
-long (__syscall_cp)(long nr, long u, long v, long w, long x, long y, long z)
+long (__syscall_cp)(syscall_arg_t nr, syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
+                   syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
 {
        pthread_t self;
        long r;