C11
[ps4-sdk.git] / include / types.h
blobe60c6fd12fe4265a58afc3d66c5ad5f90d046363
1 #pragma once
3 #ifndef NULL
4 #define NULL 0
5 #endif
7 #define BIT(n) (1 << (n))
9 typedef unsigned char uint8_t;
10 typedef unsigned short uint16_t;
11 typedef unsigned int uint32_t;
12 typedef unsigned long long uint64_t;
14 typedef char int8_t;
15 typedef short int16_t;
16 typedef int int32_t;
17 typedef long long int64_t;
19 typedef unsigned int size_t;
20 typedef signed int ssize_t;
21 typedef unsigned short wchar_t;
23 typedef uint8_t uint8;
24 typedef uint16_t uint16;
25 typedef uint32_t uint32;
26 typedef uint64_t uint64;
28 typedef int8_t int8;
29 typedef int16_t int16;
30 typedef int32_t int32;
31 typedef int64_t int64;
33 typedef float float32;
34 typedef double float64;
36 typedef volatile uint8_t vuint8;
37 typedef volatile uint16_t vuint16;
38 typedef volatile uint32_t vuint32;
39 typedef volatile uint64_t vuint64;
41 typedef volatile int8_t vint8;
42 typedef volatile int16_t vint16;
43 typedef volatile int32_t vint32;
44 typedef volatile int64_t vint64;
46 typedef volatile float32 vfloat32;
47 typedef volatile float64 vfloat64;
49 typedef uint8_t byte;
51 typedef uint8_t u8;
52 typedef uint16_t u16;
53 typedef uint32_t u32;
54 typedef uint64_t u64;
56 typedef int8_t s8;
57 typedef int16_t s16;
58 typedef int32_t s32;
59 typedef int64_t s64;
61 typedef volatile u8 vu8;
62 typedef volatile u16 vu16;
63 typedef volatile u32 vu32;
64 typedef volatile u64 vu64;
66 typedef volatile s8 vs8;
67 typedef volatile s16 vs16;
68 typedef volatile s32 vs32;
69 typedef volatile s64 vs64;
71 typedef int ptrdiff_t;
72 typedef unsigned int *uintptr_t;
73 typedef int *intptr_t;
75 /* POSIX types */
77 typedef uint32_t __dev_t;
78 typedef uint32_t blksize_t;
79 typedef int64_t blkcnt_t;
80 typedef uint32_t dev_t;
81 typedef uint32_t fflags_t;
82 typedef uint32_t gid_t;
83 typedef uint32_t ino_t;
84 typedef uint16_t mode_t;
85 typedef uint16_t nlink_t;
86 typedef int64_t off_t;
87 typedef uint32_t uid_t;
88 typedef int64_t time_t;
89 typedef long suseconds_t;
91 struct timespec {
92 time_t tv_sec;
93 long tv_nsec;
96 struct timeval {
97 time_t tv_sec;
98 suseconds_t tv_usec;
101 struct tm {
102 int tm_sec;
103 int tm_min;
104 int tm_hour;
105 int tm_mday;
106 int tm_mon;
107 int tm_year;
108 int tm_wday;
109 int tm_yday;
110 int tm_isdst;
113 /* SCE types */
115 typedef unsigned int SceKernelUseconds;