From 5c3420697311db3320b9525ab4b5db3bb07a8db1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 18 Jul 2008 21:31:51 +0000 Subject: 2008-07-18 Andrei Barbu * include/sys/types.h (int8_t, uint8_t, u_int8_t, int16_t, uint16_t, u_int16_t, int32_t, uint32_t, u_int32_t, int64_t, uint64_t, u_int64_t): New types. --- ChangeLog | 3 +++ include/sys/types.h | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2b4e1bb..299d3f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ (db_disasm): Decode operands for Iba case. * i386/i386/db_interface.c (db_read_bytes): Do not increment the address before printing it. + * include/sys/types.h (int8_t, uint8_t, u_int8_t, int16_t, uint16_t, + u_int16_t, int32_t, uint32_t, u_int32_t, int64_t, uint64_t, + u_int64_t): New types. 2008-07-15 Barry deFreese diff --git a/include/sys/types.h b/include/sys/types.h index 6973f89..b1fe922 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -58,6 +58,20 @@ typedef unsigned int time_t; #define RAND_MAX 0x7fffffff +/* Posix types */ +typedef signed8_t int8_t; +typedef unsigned8_t uint8_t; +typedef unsigned8_t u_int8_t; +typedef signed16_t int16_t; +typedef unsigned16_t uint16_t; +typedef unsigned16_t u_int16_t; +typedef signed32_t int32_t; +typedef unsigned32_t uint32_t; +typedef unsigned32_t u_int32_t; +typedef signed64_t int64_t; +typedef unsigned64_t uint64_t; +typedef unsigned64_t u_int64_t; + /* Symbols not allowed by POSIX */ #ifndef _POSIX_SOURCE -- cgit v1.2.3