Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/hppa Remove "_THREAD_SAFE" stuff that is not u...
details: https://anonhg.NetBSD.org/src/rev/05c4dd7525ca
branches: trunk
changeset: 533582:05c4dd7525ca
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jul 04 16:48:44 2002 +0000
description:
Remove "_THREAD_SAFE" stuff that is not used on NetBSD.
diffstat:
lib/libc/arch/hppa/SYS.h | 39 +++++++--------------------------------
1 files changed, 7 insertions(+), 32 deletions(-)
diffs (50 lines):
diff -r fdf5b4e518c2 -r 05c4dd7525ca lib/libc/arch/hppa/SYS.h
--- a/lib/libc/arch/hppa/SYS.h Thu Jul 04 16:44:10 2002 +0000
+++ b/lib/libc/arch/hppa/SYS.h Thu Jul 04 16:48:44 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: SYS.h,v 1.2 2002/07/01 16:00:50 fredette Exp $ */
+/* $NetBSD: SYS.h,v 1.3 2002/07/04 16:48:44 thorpej Exp $ */
/* $OpenBSD: SYS.h,v 1.9 2001/09/20 20:52:09 millert Exp $ */
@@ -107,34 +107,9 @@
PSEUDO(weak,weak)
#endif
-/*
- * Design note:
- *
- * When the syscalls need to be renamed so they can be handled
- * specially by the threaded library, these macros insert `_thread_sys_'
- * in front of their name. This avoids the need to #ifdef _THREAD_SAFE
- * everywhere that the renamed function needs to be called.
- */
-#ifdef _THREAD_SAFE
-/*
- * For the thread_safe versions, we prepend _thread_sys_ to the function
- * name so that the 'C' wrapper can go around the real name.
- */
-# define SYSCALL(x) __SYSCALL(_thread_sys_,x)
-# define RSYSCALL(x) __RSYSCALL(_thread_sys_,x)
-# define RSYSCALL_NOERROR(x) __RSYSCALL_NOERROR(_thread_sys_,x)
-# define PSEUDO(x,y) __PSEUDO(_thread_sys_,x,y)
-# define PSEUDO_NOERROR(x,y) __PSEUDO_NOERROR(_thread_sys_,x,y)
-/*# define SYSENTRY(x) __ENTRY(_thread_sys_,x)*/
-#else /* _THREAD_SAFE */
-/*
- * The non-threaded library defaults to traditional syscalls where
- * the function name matches the syscall name.
- */
-# define SYSCALL(x) __SYSCALL(,x)
-# define RSYSCALL(x) __RSYSCALL(,x)
-# define RSYSCALL_NOERROR(x) __RSYSCALL_NOERROR(,x)
-# define PSEUDO(x,y) __PSEUDO(,x,y)
-# define PSEUDO_NOERROR(x,y) __PSEUDO_NOERROR(,x,y)
-/*# define SYSENTRY(x) __ENTRY(,x)*/
-#endif /* _THREAD_SAFE */
+#define SYSCALL(x) __SYSCALL(,x)
+#define RSYSCALL(x) __RSYSCALL(,x)
+#define RSYSCALL_NOERROR(x) __RSYSCALL_NOERROR(,x)
+#define PSEUDO(x,y) __PSEUDO(,x,y)
+#define PSEUDO_NOERROR(x,y) __PSEUDO_NOERROR(,x,y)
+/*#define SYSENTRY(x) __ENTRY(,x)*/
Home |
Main Index |
Thread Index |
Old Index