types.h 854 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _SYS_TYPES_H
  2. #define _SYS_TYPES_H
  3. #include <stddef.h>
  4. typedef long blksize_t;
  5. typedef long dev_t;
  6. typedef unsigned long ino_t;
  7. typedef int gid_t;
  8. typedef int uid_t;
  9. typedef int mode_t;
  10. typedef unsigned long nlink_t;
  11. typedef long off_t;
  12. typedef int pid_t;
  13. typedef unsigned id_t;
  14. typedef long ssize_t;
  15. typedef long time_t;
  16. typedef unsigned int useconds_t;
  17. typedef int suseconds_t;
  18. typedef long clock_t;
  19. typedef int clockid_t;
  20. typedef void* timer_t;
  21. typedef unsigned long int blkcnt_t;
  22. typedef size_t regoff_t;
  23. typedef unsigned char u_char, uchar;
  24. typedef unsigned short u_short, ushort;
  25. typedef unsigned int u_int, uint;
  26. typedef unsigned long u_long, ulong;
  27. typedef long long quad_t;
  28. typedef unsigned long long u_quad_t;
  29. #ifdef __linux__
  30. #define _SC_PAGE_SIZE 30
  31. #endif
  32. #ifdef __redox__
  33. #define _SC_PAGE_SIZE 8
  34. #endif
  35. #endif /* _SYS_TYPES_H */