mirror of
https://git.musl-libc.org/git/musl
synced 2025-04-04 00:42:55 +03:00
use syscall_arg_t type for syscall prototypes in pthread code
This commit is contained in:
parent
5cc1d920ba
commit
3b168ce1fb
@ -1,6 +1,8 @@
|
|||||||
#include "pthread_impl.h"
|
#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);
|
return (__syscall)(nr, u, v, w, x, y, z);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "pthread_impl.h"
|
#include "pthread_impl.h"
|
||||||
|
#include "syscall.h"
|
||||||
|
|
||||||
void __cancel()
|
void __cancel()
|
||||||
{
|
{
|
||||||
@ -8,9 +9,11 @@ void __cancel()
|
|||||||
pthread_exit(PTHREAD_CANCELED);
|
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;
|
pthread_t self;
|
||||||
long r;
|
long r;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user