kernel_types.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (C) 2016 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. #ifndef __ARCH_NDS32_POSIX_TYPES_H
  6. #define __ARCH_NDS32_POSIX_TYPES_H
  7. /*
  8. * This file is generally used by user-level software, so you need to
  9. * be a little careful about namespace pollution etc. Also, we cannot
  10. * assume GCC is being used.
  11. */
  12. typedef unsigned short __kernel_dev_t;
  13. typedef unsigned long __kernel_ino_t;
  14. typedef unsigned short __kernel_mode_t;
  15. typedef unsigned short __kernel_nlink_t;
  16. typedef long __kernel_off_t;
  17. typedef int __kernel_pid_t;
  18. typedef unsigned short __kernel_ipc_pid_t;
  19. typedef unsigned short __kernel_uid_t;
  20. typedef unsigned short __kernel_gid_t;
  21. typedef unsigned int __kernel_size_t;
  22. typedef int __kernel_ssize_t;
  23. typedef int __kernel_ptrdiff_t;
  24. typedef long __kernel_time_t;
  25. typedef long __kernel_suseconds_t;
  26. typedef long __kernel_clock_t;
  27. typedef int __kernel_daddr_t;
  28. typedef char * __kernel_caddr_t;
  29. typedef unsigned short __kernel_uid16_t;
  30. typedef unsigned short __kernel_gid16_t;
  31. typedef unsigned int __kernel_uid32_t;
  32. typedef unsigned int __kernel_gid32_t;
  33. typedef unsigned short __kernel_old_uid_t;
  34. typedef unsigned short __kernel_old_gid_t;
  35. typedef __kernel_dev_t __kernel_old_dev_t;
  36. typedef long __kernel_long_t;
  37. typedef unsigned long __kernel_ulong_t;
  38. __extension__ typedef long long __kernel_loff_t;
  39. typedef struct {
  40. #ifdef __USE_ALL
  41. int val[2];
  42. #else
  43. int __val[2];
  44. #endif
  45. } __kernel_fsid_t;
  46. #endif /* __ARCH_NDS32_POSIX_TYPES_H */