kernel_types.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 __kernel_long_t;
  45. typedef unsigned long __kernel_ulong_t;
  46. typedef long long __kernel_loff_t;
  47. typedef struct {
  48. #ifdef __USE_ALL
  49. int val[2];
  50. #else
  51. int __val[2];
  52. #endif
  53. } __kernel_fsid_t;
  54. #endif /* __ASM_SH64_POSIX_TYPES_H */