namei.h 536 B

1234567891011121314151617181920212223242526
  1. /* $Id: namei.h,v 1.16 2000/04/13 00:55:54 davem Exp $
  2. * linux/include/asm-sparc/namei.h
  3. *
  4. * Routines to handle famous /usr/gnemul/s*.
  5. * Included from linux/fs/namei.c
  6. */
  7. #ifndef __SPARC_NAMEI_H
  8. #define __SPARC_NAMEI_H
  9. #define SPARC_BSD_EMUL "/usr/gnemul/sunos/"
  10. #define SPARC_SOL_EMUL "/usr/gnemul/solaris/"
  11. static inline char * __emul_prefix(void)
  12. {
  13. switch (current->personality) {
  14. case PER_SUNOS:
  15. return SPARC_BSD_EMUL;
  16. case PER_SVR4:
  17. return SPARC_SOL_EMUL;
  18. default:
  19. return NULL;
  20. }
  21. }
  22. #endif /* __SPARC_NAMEI_H */