summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/wrapsyscall.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-12-11 14:58:31 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-12-11 14:58:31 +0000
commit187bb6ed7e2969ed316edaf8bae686a0c613dbc5 (patch)
treedde5efeae5a3b94fb225537a2c80e2388eff62de /libpthread/linuxthreads.old/wrapsyscall.c
parent4b40b8791d9d8f785238d963fe5c094e1af30d63 (diff)
downloaduClibc-alpine-187bb6ed7e2969ed316edaf8bae686a0c613dbc5.tar.bz2
uClibc-alpine-187bb6ed7e2969ed316edaf8bae686a0c613dbc5.tar.xz
Synch with trunk @ 24379
Step 21: merge linuxthreads.old directory
Diffstat (limited to 'libpthread/linuxthreads.old/wrapsyscall.c')
-rw-r--r--libpthread/linuxthreads.old/wrapsyscall.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/libpthread/linuxthreads.old/wrapsyscall.c b/libpthread/linuxthreads.old/wrapsyscall.c
index 713e7e548..b0d314557 100644
--- a/libpthread/linuxthreads.old/wrapsyscall.c
+++ b/libpthread/linuxthreads.old/wrapsyscall.c
@@ -41,35 +41,35 @@ const int __pthread_provide_wrappers = 0;
#endif
-#define CANCELABLE_SYSCALL(res_type, name, param_list, params) \
-res_type __libc_##name param_list; \
-res_type \
-__attribute__ ((weak)) \
-name param_list \
-{ \
- res_type result; \
- int oldtype; \
- pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype); \
- result = __libc_##name params; \
- pthread_setcanceltype (oldtype, NULL); \
- return result; \
+#define CANCELABLE_SYSCALL(res_type, name, param_list, params) \
+res_type name param_list; \
+res_type \
+__attribute__ ((weak)) \
+name param_list \
+{ \
+ res_type result; \
+ int oldtype; \
+ pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype); \
+ result = name params; \
+ pthread_setcanceltype (oldtype, NULL); \
+ return result; \
}
-#define CANCELABLE_SYSCALL_VA(res_type, name, param_list, params, last_arg) \
-res_type __libc_##name param_list; \
-res_type \
-__attribute__ ((weak)) \
-name param_list \
-{ \
- res_type result; \
- int oldtype; \
- va_list ap; \
- pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype); \
- va_start (ap, last_arg); \
- result = __libc_##name params; \
- va_end (ap); \
- pthread_setcanceltype (oldtype, NULL); \
- return result; \
+#define CANCELABLE_SYSCALL_VA(res_type, name, param_list, params, last_arg) \
+res_type ##name param_list; \
+res_type \
+__attribute__ ((weak)) \
+name param_list \
+{ \
+ res_type result; \
+ int oldtype; \
+ va_list ap; \
+ pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype); \
+ va_start (ap, last_arg); \
+ result = name params; \
+ va_end (ap); \
+ pthread_setcanceltype (oldtype, NULL); \
+ return result; \
}