alltypes.h 428 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __GBLIBC_BITS_ALLTYPES_H_
  2. #define __GBLIBC_BITS_ALLTYPES_H_
  3. #include <stdint.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef size_t blksize_t;
  8. typedef size_t blkcnt_t;
  9. struct timespec {
  10. time_t tv_sec;
  11. long tv_nsec;
  12. int : 32; // padding
  13. };
  14. struct timeval {
  15. time_t tv_sec;
  16. size_t tv_usec;
  17. };
  18. struct timezone {
  19. int tz_minuteswest;
  20. int tz_dsttime;
  21. };
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif