patch-2.4.15 linux/include/asm-ia64/namei.h
Next file: linux/include/asm-ia64/offsets.h
Previous file: linux/include/asm-ia64/msgbuf.h
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Fri Nov 9 14:26:17 2001
- Orig file:
v2.4.14/linux/include/asm-ia64/namei.h
- Orig date:
Sun Apr 2 15:49:07 2000
diff -u --recursive --new-file v2.4.14/linux/include/asm-ia64/namei.h linux/include/asm-ia64/namei.h
@@ -2,15 +2,24 @@
#define _ASM_IA64_NAMEI_H
/*
- * Copyright (C) 1998, 1999 Hewlett-Packard Co
- * Copyright (C) 1998, 1999 David Mosberger-Tang <davidm@hpl.hp.com>
+ * Copyright (C) 1998, 1999, 2001 Hewlett-Packard Co
+ * David Mosberger-Tang <davidm@hpl.hp.com>
*/
-/*
- * This dummy routine maybe changed to something useful
- * for /usr/gnemul/ emulation stuff.
- * Look at asm-sparc/namei.h for details.
- */
-#define __emul_prefix() NULL
+#include <asm/ptrace.h>
+#include <asm/system.h>
+
+#define EMUL_PREFIX_LINUX_IA32 "emul/ia32-linux/"
+
+static inline char *
+__emul_prefix (void)
+{
+ switch (current->personality) {
+ case PER_LINUX32:
+ return EMUL_PREFIX_LINUX_IA32;
+ default:
+ return NULL;
+ }
+}
#endif /* _ASM_IA64_NAMEI_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)