1 /* The <sys/types.h> header contains important data type definitions. 2 * It is considered good programming practice to use these definitions, 3 * instead of the underlying base type. By convention, all type names end 4 * with _t. 5 * 6 * $Id: types.h,v 1.6 2016-07-16 22:00:08 dom Exp $ 7 */ 8 9 10 // automatically generated by m4 from headers in proto subdir 11 12 13 #ifndef __SYS_TYPES_H__ 14 #define __SYS_TYPES_H__ 15 16 #ifndef _FLOAT_T 17 #define _FLOAT_T 18 #ifdef __SDCC 19 typedef float float_t; 20 #else 21 typedef double float_t; 22 #endif 23 #endif 24 25 #ifndef _DOUBLE_T 26 #define _DOUBLE_T 27 #ifdef __SDCC 28 typedef float double_t; 29 #else 30 typedef double double_t; 31 #endif 32 #endif 33 34 #ifndef _SIZE_T 35 #define _SIZE_T 36 typedef unsigned int size_t; 37 #endif 38 39 #ifndef _SSIZE_T 40 #define _SSIZE_T 41 typedef signed int ssize_t; 42 #endif 43 44 #ifndef _CLOCK_T 45 #define _CLOCK_T 46 typedef unsigned long clock_t; 47 #endif 48 49 #ifndef _PID_T 50 #define _PID_T 51 typedef signed int pid_t; 52 #endif 53 54 #ifndef _BOOL_T 55 #define _BOOT_T 56 typedef unsigned char bool_t; 57 #endif 58 59 #ifndef _INO_T 60 #define _INO_T 61 typedef unsigned int ino_t; 62 #endif 63 64 #ifndef _NSECONDS_T 65 #define _NSECONDS_T 66 typedef unsigned long nseconds_t; 67 #endif 68 69 #ifndef _TIME_T 70 #define _TIME_T 71 typedef long time_t; 72 #endif 73 74 #ifndef _WILD_T 75 #define _WILD_T 76 typedef short wild_t; 77 #endif 78 79 #ifndef _FPOS_T 80 #define _FPOS_T 81 typedef unsigned long fpos_t; 82 #endif 83 84 typedef unsigned char u8_t; /* 8 bit type */ 85 typedef unsigned short u16_t; /* 16 bit type */ 86 typedef unsigned long u32_t; /* 32 bit type */ 87 88 typedef char i8_t; /* 8 bit signed type */ 89 typedef short i16_t; /* 16 bit signed type */ 90 typedef long i32_t; /* 32 bit signed type */ 91 92 #endif /* _SYS_TYPES_H */ 93