X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fmips%2Fbits%2Fsyscall.h;h=574d603973cddd64ed138140eb48ba02e26e4413;hb=a1527a0c3ed72df3c1a22f774c8618a486b87b94;hp=9a2de2e34ae5210f35f871d00da7697ef924f37c;hpb=fb247fafa04ee52dda816355ab0461132297b9a4;p=musl diff --git a/arch/mips/bits/syscall.h b/arch/mips/bits/syscall.h index 9a2de2e3..574d6039 100644 --- a/arch/mips/bits/syscall.h +++ b/arch/mips/bits/syscall.h @@ -1,50 +1,3 @@ -#define __SYSCALL_LL_E(x) \ -((union { long long ll; long l[2]; }){ .ll = x }).l[0], \ -((union { long long ll; long l[2]; }){ .ll = x }).l[1] -#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x)) - -#define __SYSCALL_SSLEN 16 - -long (__syscall)(long, ...); - -static __inline long __syscall0(long n) -{ - return (__syscall)(n); -} - -static __inline long __syscall1(long n, long a) -{ - return (__syscall)(n, a); -} - -static __inline long __syscall2(long n, long a, long b) -{ - return (__syscall)(n, a, b); -} - -static __inline long __syscall3(long n, long a, long b, long c) -{ - return (__syscall)(n, a, b, c); -} - -static __inline long __syscall4(long n, long a, long b, long c, long d) -{ - return (__syscall)(n, a, b, c, d); -} - -static __inline long __syscall5(long n, long a, long b, long c, long d, long e) -{ - return (__syscall)(n, a, b, c, d, e); -} - -static __inline long __syscall6(long n, long a, long b, long c, long d, long e, long f) -{ - return (__syscall)(n, a, b, c, d, e, f); -} - -#define __socketcall(nm,a,b,c,d,e,f) syscall(SYS_##nm, a, b, c, d, e, f) -#define __socketcall_cp(nm,a,b,c,d,e,f) syscall_cp(SYS_##nm, a, b, c, d, e, f) - #define __NR_syscall 4000 #define __NR_exit 4001 #define __NR_fork 4002 @@ -365,30 +318,6 @@ static __inline long __syscall6(long n, long a, long b, long c, long d, long e, #define __NR_timerfd 4318 #define __NR_eventfd 4319 #define __NR_fallocate 4320 -#define __NR_fallocate 4320 -#define __NR_timerfd_create 4321 -#define __NR_timerfd_gettime 4322 -#define __NR_timerfd_settime 4323 -#define __NR_signalfd4 4324 -#define __NR_eventfd2 4325 -#define __NR_epoll_create1 4326 -#define __NR_dup3 4327 -#define __NR_pipe2 4328 -#define __NR_inotify_init1 4329 -#define __NR_preadv 4330 -#define __NR_pwritev 4331 -#define __NR_rt_tgsigqueueinfo 4332 -#define __NR_perf_event_open 4333 -#define __NR_accept4 4334 -#define __NR_recvmmsg 4335 -#define __NR_fanotify_init 4336 -#define __NR_fanotify_mark 4337 -#define __NR_prlimit64 4338 -#define __NR_name_to_handle_at 4339 -#define __NR_open_by_handle_at 4340 -#define __NR_clock_adjtime 4341 -#define __NR_syncfs 4342 -#define __NR_fallocate 4320 #define __NR_timerfd_create 4321 #define __NR_timerfd_gettime 4322 #define __NR_timerfd_settime 4323 @@ -415,26 +344,8 @@ static __inline long __syscall6(long n, long a, long b, long c, long d, long e, #define __NR_setns 4344 #define __NR_process_vm_readv 4345 #define __NR_process_vm_writev 4346 - -/* fixup legacy 32-bit-vs-lfs64 junk */ -#undef __NR_fcntl -#undef __NR_getdents -#undef __NR_ftruncate -#undef __NR_truncate -#undef __NR_stat -#undef __NR_fstat -#undef __NR_lstat -#undef __NR_statfs -#undef __NR_fstatfs -#define __NR_fcntl __NR_fcntl64 -#define __NR_getdents __NR_getdents64 -#define __NR_ftruncate __NR_ftruncate64 -#define __NR_truncate __NR_truncate64 -#define __NR_stat __NR_stat64 -#define __NR_fstat __NR_fstat64 -#define __NR_lstat __NR_lstat64 -#define __NR_statfs __NR_statfs64 -#define __NR_fstatfs __NR_fstatfs64 +#define __NR_kcmp 4347 +#define __NR_finit_module 4348 /* Repeated with SYS_ prefix */ @@ -758,30 +669,6 @@ static __inline long __syscall6(long n, long a, long b, long c, long d, long e, #define SYS_timerfd 4318 #define SYS_eventfd 4319 #define SYS_fallocate 4320 -#define SYS_fallocate 4320 -#define SYS_timerfd_create 4321 -#define SYS_timerfd_gettime 4322 -#define SYS_timerfd_settime 4323 -#define SYS_signalfd4 4324 -#define SYS_eventfd2 4325 -#define SYS_epoll_create1 4326 -#define SYS_dup3 4327 -#define SYS_pipe2 4328 -#define SYS_inotify_init1 4329 -#define SYS_preadv 4330 -#define SYS_pwritev 4331 -#define SYS_rt_tgsigqueueinfo 4332 -#define SYS_perf_event_open 4333 -#define SYS_accept4 4334 -#define SYS_recvmmsg 4335 -#define SYS_fanotify_init 4336 -#define SYS_fanotify_mark 4337 -#define SYS_prlimit64 4338 -#define SYS_name_to_handle_at 4339 -#define SYS_open_by_handle_at 4340 -#define SYS_clock_adjtime 4341 -#define SYS_syncfs 4342 -#define SYS_fallocate 4320 #define SYS_timerfd_create 4321 #define SYS_timerfd_gettime 4322 #define SYS_timerfd_settime 4323 @@ -808,23 +695,5 @@ static __inline long __syscall6(long n, long a, long b, long c, long d, long e, #define SYS_setns 4344 #define SYS_process_vm_readv 4345 #define SYS_process_vm_writev 4346 - -/* fixup legacy 32-bit-vs-lfs64 junk */ -#undef SYS_fcntl -#undef SYS_getdents -#undef SYS_ftruncate -#undef SYS_truncate -#undef SYS_stat -#undef SYS_fstat -#undef SYS_lstat -#undef SYS_statfs -#undef SYS_fstatfs -#define SYS_fcntl SYS_fcntl64 -#define SYS_getdents SYS_getdents64 -#define SYS_ftruncate SYS_ftruncate64 -#define SYS_truncate SYS_truncate64 -#define SYS_stat SYS_stat64 -#define SYS_fstat SYS_fstat64 -#define SYS_lstat SYS_lstat64 -#define SYS_statfs SYS_statfs64 -#define SYS_fstatfs SYS_fstatfs64 +#define SYS_kcmp 4347 +#define SYS_finit_module 4348