namei.h 435 B

12345678910111213141516171819202122232425
  1. /*
  2. * linux/include/asm-arm/namei.h
  3. *
  4. * Routines to handle famous /usr/gnemul
  5. * Derived from the Sparc version of this file
  6. *
  7. * Included from linux/fs/namei.c
  8. */
  9. #ifndef __ASMARM_NAMEI_H
  10. #define __ASMARM_NAMEI_H
  11. #define ARM_BSD_EMUL "usr/gnemul/bsd/"
  12. static inline char *__emul_prefix(void)
  13. {
  14. switch (current->personality) {
  15. case PER_BSD:
  16. return ARM_BSD_EMUL;
  17. default:
  18. return NULL;
  19. }
  20. }
  21. #endif /* __ASMARM_NAMEI_H */