aboutsummaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2016-03-30 02:26:28 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-04-04 09:36:36 +0200
commit7bbfa39f59dcbc55b21d31abb9e2febef6a51ebb (patch)
tree840a881ede29701996d51a94272b4da3115e3412 /include/sys
parenta90dc34f976cd37da23af526120f2ac480cb131f (diff)
downloadgnumach-7bbfa39f59dcbc55b21d31abb9e2febef6a51ebb.tar.gz
gnumach-7bbfa39f59dcbc55b21d31abb9e2febef6a51ebb.tar.bz2
gnumach-7bbfa39f59dcbc55b21d31abb9e2febef6a51ebb.zip
Use uint32_t instead of unsigned32_t.
Implement stdint.h and use it in gnumach. Remove old type definitions such as signed* and unsigned*. * Makefile.am: Add -ffreestanding. * i386/i386/xen.h: Use uint64_t. * i386/include/mach/i386/machine_types.defs: Use uint32_t and int32_t. * i386/include/mach/i386/vm_types.h: Remove definitions of int*, uint*, unsigned* and signed* types. * i386/xen/xen.c: Use uint64_t. * include/device/device_types.defs: Use uint32_t. * include/mach/std_types.defs: Use POSIX types. * include/mach/std_types.h: Include stdint.h. * include/stdint.h: New file with POSIX types. * include/sys/types.h: Include stdint.h. * ipc/ipc_kmsg.c: Use uint64_t. * kern/exception.c: Use uint32_t. * linux/dev/include/linux/types.h: Remove POSIX types. * xen/block.c: Use uint64_t. * xen/net.c: Do not use removed unsigned*_t types. * xen/ring.h: Use uint32_t instead. * xen/store.c: Use uint32_t. * xen/store.h: Use uint32_t. * xen/time.c: Use POSIX types only. * xen/time.h: Use uint64_t.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/types.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/include/sys/types.h b/include/sys/types.h
index 19e7b242..d576cc2a 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -27,6 +27,7 @@
#define _MACH_SA_SYS_TYPES_H_
#include <mach/machine/vm_types.h>
+#include <stdint.h>
#ifndef _SIZE_T
#define _SIZE_T
@@ -58,20 +59,6 @@ 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