typesizes.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* bits/typesizes.h -- underlying types for *_t. Linux/SPARC version.
  2. Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  3. The GNU C Library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. The GNU C Library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with the GNU C Library; if not, see
  13. <http://www.gnu.org/licenses/>. */
  14. #ifndef _BITS_TYPES_H
  15. # error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
  16. #endif
  17. #ifndef _BITS_TYPESIZES_H
  18. #define _BITS_TYPESIZES_H 1
  19. /* See <bits/types.h> for the meaning of these macros. This file exists so
  20. that <bits/types.h> need not vary across different GNU platforms. */
  21. #define __DEV_T_TYPE __UQUAD_TYPE
  22. #define __UID_T_TYPE __U32_TYPE
  23. #define __GID_T_TYPE __U32_TYPE
  24. #define __INO_T_TYPE __ULONGWORD_TYPE
  25. #define __INO64_T_TYPE __UQUAD_TYPE
  26. #define __MODE_T_TYPE __U32_TYPE
  27. #define __NLINK_T_TYPE __U32_TYPE
  28. #define __OFF_T_TYPE __SLONGWORD_TYPE
  29. #define __OFF64_T_TYPE __SQUAD_TYPE
  30. #define __PID_T_TYPE __S32_TYPE
  31. #define __RLIM_T_TYPE __ULONGWORD_TYPE
  32. #define __RLIM64_T_TYPE __UQUAD_TYPE
  33. #define __BLKCNT_T_TYPE __SLONGWORD_TYPE
  34. #define __BLKCNT64_T_TYPE __SQUAD_TYPE
  35. #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
  36. #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
  37. #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
  38. #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
  39. #define __ID_T_TYPE __U32_TYPE
  40. #define __CLOCK_T_TYPE __SLONGWORD_TYPE
  41. #define __TIME_T_TYPE __SLONGWORD_TYPE
  42. #define __USECONDS_T_TYPE __U32_TYPE
  43. #define __SUSECONDS_T_TYPE __S32_TYPE
  44. #define __DADDR_T_TYPE __S32_TYPE
  45. #define __SWBLK_T_TYPE __SLONGWORD_TYPE
  46. #define __KEY_T_TYPE __S32_TYPE
  47. #define __CLOCKID_T_TYPE __S32_TYPE
  48. #define __TIMER_T_TYPE void *
  49. #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
  50. #define __FSID_T_TYPE struct { int __val[2]; }
  51. #define __SSIZE_T_TYPE __SWORD_TYPE
  52. /* Number of descriptors that can fit in an `fd_set'. */
  53. #define __FD_SETSIZE 1024
  54. #endif /* bits/typesizes.h */