5a6fb9095839576578065c623d6d164c6c0600a7
[lunaix-os.git] / lunaix-os / includes / lunaix / types.h
1 #ifndef __LUNAIX_TYPES_H
2 #define __LUNAIX_TYPES_H
3
4 #include <stdarg.h>
5 #include <stddef.h>
6 #include <sys/types.h>
7
8 #define PACKED __attribute__((packed))
9
10 // TODO: WTERMSIG
11
12 // TODO: replace the integer type with these. To make thing more portable.
13
14 typedef unsigned char u8_t;
15 typedef unsigned short u16_t;
16 typedef unsigned int u32_t;
17 typedef unsigned long long u64_t;
18 typedef unsigned long ptr_t;
19
20 typedef signed long ssize_t;
21 typedef int pid_t;
22 typedef unsigned long size_t;
23 typedef unsigned long off_t;
24
25 typedef u64_t lba_t;
26
27 #endif /* __LUNAIX_TYPES_H */