summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/types.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-09 03:08:14 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-09 03:08:14 +0000
commiteb1c3012e66fc6a966d5d90e14752a13d3a2f407 (patch)
tree1180d52c1ccb52d764b51133db3ed1a7cd79d0c7 /libc/sysdeps/linux/common/bits/types.h
parent9f30696750017e4414f26ac51c402b5dad544eb2 (diff)
sync with glibc
Diffstat (limited to 'libc/sysdeps/linux/common/bits/types.h')
-rw-r--r--libc/sysdeps/linux/common/bits/types.h37
1 files changed, 20 insertions, 17 deletions
diff --git a/libc/sysdeps/linux/common/bits/types.h b/libc/sysdeps/linux/common/bits/types.h
index a91c262ff..6068f6fd2 100644
--- a/libc/sysdeps/linux/common/bits/types.h
+++ b/libc/sysdeps/linux/common/bits/types.h
@@ -37,22 +37,7 @@ typedef unsigned short int __u_short;
typedef unsigned int __u_int;
typedef unsigned long int __u_long;
-#if __WORDSIZE == 64
-typedef long int __quad_t;
-typedef unsigned long int __u_quad_t;
-#elif defined(__GNUC__)
-__extension__ typedef unsigned long long int __u_quad_t;
-__extension__ typedef long long int __quad_t;
-#else
-typedef struct
- {
- long int __val[2];
- } __quad_t;
-typedef struct
- {
- __u_long __val[2];
- } __u_quad_t;
-#endif
+/* Fixed-size types, underlying types depend on word size and compiler. */
typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
@@ -66,7 +51,24 @@ typedef unsigned long int __uint64_t;
__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_t;
#endif
-typedef __quad_t *__qaddr_t;
+
+/* quad_t is also 64 bits. */
+#if __WORDSIZE == 64
+typedef long int __quad_t;
+typedef unsigned long int __u_quad_t;
+#elif defined(__GNUC__)
+__extension__ typedef long long int __quad_t;
+__extension__ typedef unsigned long long int __u_quad_t;
+#else
+typedef struct
+{
+ long __val[2];
+} __quad_t;
+typedef struct
+{
+ __u_long __val[2];
+} __u_quad_t;
+#endif
#if __WORDSIZE == 32
# define __SWORD_TYPE int
@@ -97,6 +99,7 @@ typedef struct
/* Everythin' else. */
typedef int __daddr_t; /* The type of a disk address. */
+typedef __quad_t *__rqaddr_t;
typedef char *__caddr_t;
typedef long int __time_t;
typedef unsigned int __useconds_t;