kernel_types.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * sysdeps/linux/sh64/bits/kernel_types.h
  3. *
  4. * Copyright (C) 2000, 2001 Paolo Alberelli
  5. * Copyright (C) 2003 Paul Mundt
  6. *
  7. * This file is subject to the terms and conditions of the GNU Lesser
  8. * General Public License. See the file COPYING.LIB in the main
  9. * directory of this archive for more details.
  10. */
  11. /*
  12. * Note that we use the exact same include guard #define names
  13. * as asm/posix_types.h. This will avoid gratuitous conflicts
  14. * with the posix_types.h kernel header, and will ensure that
  15. * our private content, and not the kernel header, will win.
  16. * -Erik
  17. */
  18. #ifndef __ASM_SH64_POSIX_TYPES_H
  19. #define __ASM_SH64_POSIX_TYPES_H
  20. typedef unsigned short __kernel_dev_t;
  21. typedef unsigned long __kernel_ino_t;
  22. typedef unsigned short __kernel_mode_t;
  23. typedef unsigned short __kernel_nlink_t;
  24. typedef long __kernel_off_t;
  25. typedef int __kernel_pid_t;
  26. typedef unsigned short __kernel_ipc_pid_t;
  27. typedef unsigned short __kernel_uid_t;
  28. typedef unsigned short __kernel_gid_t;
  29. typedef long unsigned int __kernel_size_t;
  30. typedef int __kernel_ssize_t;
  31. typedef int __kernel_ptrdiff_t;
  32. typedef long __kernel_time_t;
  33. typedef long __kernel_suseconds_t;
  34. typedef long __kernel_clock_t;
  35. typedef int __kernel_daddr_t;
  36. typedef char * __kernel_caddr_t;
  37. typedef unsigned short __kernel_uid16_t;
  38. typedef unsigned short __kernel_gid16_t;
  39. typedef unsigned int __kernel_uid32_t;
  40. typedef unsigned int __kernel_gid32_t;
  41. typedef unsigned short __kernel_old_uid_t;
  42. typedef unsigned short __kernel_old_gid_t;
  43. typedef __kernel_dev_t __kernel_old_dev_t;
  44. typedef long long __kernel_loff_t;
  45. typedef struct {
  46. #ifdef __USE_ALL
  47. int val[2];
  48. #else
  49. int __val[2];
  50. #endif
  51. } __kernel_fsid_t;
  52. #endif /* __ASM_SH64_POSIX_TYPES_H */