瀏覽代碼

get rid of __libc_* symbols. Some whitespace cleanups.

Khem Raj 16 年之前
父節點
當前提交
1884a05b65
共有 1 個文件被更改,包括 27 次插入27 次删除
  1. 27 27
      libpthread/linuxthreads.old/wrapsyscall.c

+ 27 - 27
libpthread/linuxthreads.old/wrapsyscall.c

@@ -41,35 +41,35 @@ const int __pthread_provide_wrappers = 0;
 #endif
 #endif
 
 
 
 
-#define CANCELABLE_SYSCALL(res_type, name, param_list, params) \
+#define CANCELABLE_SYSCALL(res_type, name, param_list, params)			\
-res_type __libc_##name param_list;					      \
+res_type name param_list;							\
-res_type								      \
+res_type									\
-__attribute__ ((weak))							      \
+__attribute__ ((weak))								\
-name param_list								      \
+name param_list									\
-{									      \
+{										\
-  res_type result;							      \
+  res_type result;								\
-  int oldtype;								      \
+  int oldtype;									\
-  pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);	      \
+  pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);		\
-  result = __libc_##name params;					      \
+  result = name params;								\
-  pthread_setcanceltype (oldtype, NULL);				      \
+  pthread_setcanceltype (oldtype, NULL);					\
-  return result;							      \
+  return result;								\
 }
 }
 
 
-#define CANCELABLE_SYSCALL_VA(res_type, name, param_list, params, last_arg) \
+#define CANCELABLE_SYSCALL_VA(res_type, name, param_list, params, last_arg)	\
-res_type __libc_##name param_list;					      \
+res_type ##name param_list;							\
-res_type								      \
+res_type									\
-__attribute__ ((weak))							      \
+__attribute__ ((weak))								\
-name param_list								      \
+name param_list									\
-{									      \
+{										\
-  res_type result;							      \
+  res_type result;								\
-  int oldtype;								      \
+  int oldtype;									\
-  va_list ap;								      \
+  va_list ap;									\
-  pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);	      \
+  pthread_setcanceltype (PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);		\
-  va_start (ap, last_arg);						      \
+  va_start (ap, last_arg);							\
-  result = __libc_##name params;					      \
+  result = name params;								\
-  va_end (ap);								      \
+  va_end (ap);									\
-  pthread_setcanceltype (oldtype, NULL);				      \
+  pthread_setcanceltype (oldtype, NULL);					\
-  return result;							      \
+  return result;								\
 }
 }