diff options
author | rofl0r <retnyg@gmx.net> | 2014-01-08 00:26:34 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2014-02-22 12:25:07 +0100 |
commit | 3b168ce1fbff75e509a9730b27ee22e8bbd9fb8f (patch) | |
tree | 082613d0336838ff671a50a3d57a93a3926d646a /src | |
parent | 5cc1d920ba21e9f7672438e86fa11a0db52e23ea (diff) | |
download | musl-3b168ce1fbff75e509a9730b27ee22e8bbd9fb8f.tar.gz musl-3b168ce1fbff75e509a9730b27ee22e8bbd9fb8f.tar.bz2 musl-3b168ce1fbff75e509a9730b27ee22e8bbd9fb8f.tar.xz musl-3b168ce1fbff75e509a9730b27ee22e8bbd9fb8f.zip |
use syscall_arg_t type for syscall prototypes in pthread code
Diffstat (limited to 'src')
-rw-r--r-- | src/thread/cancel_dummy.c | 4 | ||||
-rw-r--r-- | src/thread/cancel_impl.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/thread/cancel_dummy.c b/src/thread/cancel_dummy.c index 047692c4..cc872375 100644 --- a/src/thread/cancel_dummy.c +++ b/src/thread/cancel_dummy.c @@ -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); } diff --git a/src/thread/cancel_impl.c b/src/thread/cancel_impl.c index a1648982..134fd7d3 100644 --- a/src/thread/cancel_impl.c +++ b/src/thread/cancel_impl.c @@ -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; |