[Libsysio-commit] b_lustre: libsysio/include sysio.h
Brought to you by:
lward
|
From: Mei <me...@us...> - 2003-12-15 08:22:19
|
Update of /cvsroot/libsysio/libsysio/include
In directory sc8-pr-cvs1:/tmp/cvs-serv3191/include
Modified Files:
Tag: b_lustre
sysio.h
Log Message:
remove the enter/leave syscalls intercept, now liblustre don't need them.
Index: sysio.h
===================================================================
RCS file: /cvsroot/libsysio/libsysio/include/sysio.h,v
retrieving revision 1.7.4.5
retrieving revision 1.7.4.6
diff -u -w -b -B -p -r1.7.4.5 -r1.7.4.6
--- sysio.h 1 Nov 2003 03:08:22 -0000 1.7.4.5
+++ sysio.h 15 Dec 2003 08:22:16 -0000 1.7.4.6
@@ -267,32 +267,3 @@ extern int mount(const char *source, con
unsigned long mountflags,
const void *data);
extern int umount(const char *target);
-
-/* This allow lustre's function hook into libsysio */
-extern int __sysio_in_syscall;
-typedef void __sysio_hook_func(void);
-extern __sysio_hook_func *__sysio_hook_sys_enter;
-extern __sysio_hook_func *__sysio_hook_sys_leave;
-
-#if 1
-/* XXX temprarily disabled for the re-entrance problem */
-#define SYSIO_ENTER
-#define SYSIO_LEAVE
-
-#else
-#define SYSIO_ENTER \
- do { \
- if (__sysio_hook_sys_enter) \
- __sysio_hook_sys_enter(); \
- if (__sysio_in_syscall++) \
- abort(); \
- } while(0)
-
-#define SYSIO_LEAVE \
- do { \
- if (__sysio_hook_sys_leave) \
- __sysio_hook_sys_leave(); \
- if (--__sysio_in_syscall != 0) \
- abort(); \
- } while(0)
-#endif
|