mostly-cosmetic fixups to x32 port merge
authorRich Felker <dalias@aerifal.cx>
Sun, 23 Feb 2014 10:43:09 +0000 (05:43 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 23 Feb 2014 10:43:09 +0000 (05:43 -0500)
arch/x32/syscall_arch.h
src/internal/syscall.h
src/thread/cancel_dummy.c
src/thread/cancel_impl.c

index 57e768960930ed04ce1bb3320b4c446f7c89cb61..39a0325b195dcebe000d3f68517634f9e49f4bb0 100644 (file)
@@ -2,7 +2,7 @@
 #define __SYSCALL_LL_O(x) (x)
 
 #define __scc(X) sizeof(1?(X):0ULL) < 8 ? (unsigned long) (X) : (long long) (X)
-#define syscall_arg_t long long
+typedef long long syscall_arg_t;
 struct __timespec { long long tv_sec; long tv_nsec; };
 struct __timespec_kernel { long long tv_sec; long long tv_nsec; };
 #define __tsc(X) ((struct __timespec*)(unsigned long)(X))
index b203d6bbc8b62ea052b07254449d5eb29531129d..88fc89c9a58005a99ef597308203203ee7bd4666 100644 (file)
@@ -5,11 +5,8 @@
 #include "syscall_arch.h"
 
 #ifndef __scc
-#define __scc(X) (long) (X)
-#endif
-
-#ifndef syscall_arg_t
-#define syscall_arg_t long
+#define __scc(X) ((long) (X))
+typedef long syscall_arg_t;
 #endif
 
 #if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303)
index cc872375225ca30d64dfa0e1cea35d6f28fd4728..b630b02c79153cbaa1e733379340fc764d19035c 100644 (file)
@@ -1,8 +1,9 @@
 #include "pthread_impl.h"
 #include "syscall.h"
 
-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)
+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 134fd7d341a197a865422c02c87b81d485fb1331..c835813a30f02f0943c86301ead0b19ef15957da 100644 (file)
@@ -9,11 +9,13 @@ void __cancel()
        pthread_exit(PTHREAD_CANCELED);
 }
 
-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_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)(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)
+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;