types.h 579 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <limits.h>
  3. typedef int gid_t;
  4. typedef int uid_t;
  5. typedef int dev_t;
  6. typedef int ino_t;
  7. typedef int mode_t;
  8. typedef int caddr_t;
  9. typedef unsigned short nlink_t;
  10. typedef long off_t;
  11. typedef long time_t;
  12. #if defined(__INT_MAX__) && __INT_MAX__ == 2147483647
  13. typedef int ssize_t;
  14. #else
  15. typedef long ssize_t;
  16. #endif
  17. typedef unsigned long useconds_t;
  18. typedef long suseconds_t;
  19. typedef int pid_t;
  20. #define FD_SETSIZE 64 /* compatibility with newlib */
  21. typedef long fd_mask;
  22. typedef struct _fd_set {
  23. fd_mask fds_bits[2]; /* should be 64 bits */
  24. } fd_set;