glibc-types.h 895 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __MUSL_GLIBC_TYPES_H
  2. #define __MUSL_GLIBC_TYPES_H
  3. #include <sys/cdefs.h>
  4. /* Convenience types. */
  5. typedef unsigned char __u_char;
  6. typedef unsigned short int __u_short;
  7. typedef unsigned int __u_int;
  8. typedef unsigned long int __u_long;
  9. /* Fixed-size types, underlying types depend on word size and compiler. */
  10. typedef signed char __int8_t;
  11. typedef unsigned char __uint8_t;
  12. typedef signed short int __int16_t;
  13. typedef unsigned short int __uint16_t;
  14. typedef signed int __int32_t;
  15. typedef unsigned int __uint32_t;
  16. #if __WORDSIZE == 64
  17. typedef signed long int __int64_t;
  18. typedef unsigned long int __uint64_t;
  19. #else
  20. __extension__ typedef signed long long int __int64_t;
  21. __extension__ typedef unsigned long long int __uint64_t;
  22. #endif
  23. #define __off64_t off_t
  24. #define __loff_t off_t
  25. typedef char *__caddr_t;
  26. #define __locale_t locale_t
  27. #define __gid_t gid_t
  28. #define __uid_t uid_t
  29. #endif