aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-19 17:40:50 +0000
committerrsc <devnull@localhost>2005-07-19 17:40:50 +0000
commit76e02e9b11b02c5ed429ce629adaa19eb9c80a7f (patch)
tree0abe8b87c6454bfd4f58d1db99bae494b3c30780 /include
parent42a57eff1ce95e0e33bd6d0ce1f06ced9f210151 (diff)
downloadplan9port-76e02e9b11b02c5ed429ce629adaa19eb9c80a7f.tar.gz
plan9port-76e02e9b11b02c5ed429ce629adaa19eb9c80a7f.tar.bz2
plan9port-76e02e9b11b02c5ed429ce629adaa19eb9c80a7f.zip
new types
Diffstat (limited to 'include')
-rw-r--r--include/u.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/u.h b/include/u.h
index 68a08a67..e5aeae50 100644
--- a/include/u.h
+++ b/include/u.h
@@ -17,6 +17,8 @@ extern "C" {
#define _LARGEFILE64_SOURCE 1
#define _FILE_OFFSET_BITS 64
+#include <stdint.h>
+
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
@@ -107,8 +109,6 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
#endif
typedef signed char schar;
-typedef unsigned int u32int;
-typedef int s32int;
#ifdef _NEEDUCHAR
typedef unsigned char uchar;
@@ -124,12 +124,16 @@ typedef int s32int;
#endif
typedef unsigned long long uvlong;
typedef long long vlong;
-typedef uvlong u64int;
-typedef vlong s64int;
-typedef uchar u8int;
-typedef schar s8int;
-typedef ushort u16int;
-typedef short s16int;
+
+typedef uint64_t u64int;
+typedef int64_t s64int;
+typedef uint8_t u8int;
+typedef int8_t s8int;
+typedef uint16_t u16int;
+typedef int16_t s16int;
+typedef uintptr_t uintptr;
+typedef uint32_t u32int;
+typedef int32_t s32int;
#undef _NEEDUCHAR
#undef _NEEDUSHORT