patch-2.3.99-pre4 linux/include/asm-mips/namei.h
Next file: linux/include/asm-mips64/namei.h
Previous file: linux/include/asm-m68k/namei.h
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Sun Apr 2 15:49:07 2000
- Orig file:
v2.3.99-pre3/linux/include/asm-mips/namei.h
- Orig date:
Sat Feb 26 22:31:56 2000
diff -u --recursive --new-file v2.3.99-pre3/linux/include/asm-mips/namei.h linux/include/asm-mips/namei.h
@@ -13,42 +13,18 @@
/* Only one at this time. */
#define IRIX32_EMUL "usr/gnemul/irix/"
-static inline struct dentry *
-__mips_lookup_dentry(const char *name, int lookup_flags)
-{
- struct dentry *base;
+#ifdef CONFIG_BINFMT_IRIX
+static inline char *__emul_prefix(void)
+{
if (current->personality != PER_IRIX32)
- return ERR_PTR(-ENOENT);
-
- base = lookup_dentry (IRIX32_EMUL,
- dget (current->fs->root),
- (LOOKUP_FOLLOW | LOOKUP_DIRECTORY));
-
- if (IS_ERR (base)) return base;
-
- base = lookup_dentry (name, base, lookup_flags);
-
- if (IS_ERR (base)) return base;
-
- if (!base->d_inode) {
- dput(base);
- return ERR_PTR(-ENOENT);
- }
-
- return base;
+ return NULL;
+ return IRIX32_EMUL;
}
-#ifdef CONFIG_BINFMT_IRIX
-
-#define __prefix_lookup_dentry(name, lookup_flags) \
- dentry = __mips_lookup_dentry (name, lookup_flags); \
- if (!IS_ERR (dentry)) return dentry;
-
#else /* !defined(CONFIG_BINFMT_IRIX) */
-#define __prefix_lookup_dentry(name, lookup_flags) \
- do {} while (0)
+#define __emul_prefix() NULL
#endif /* !defined(CONFIG_BINFMT_IRIX) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)