1 /* 2 * Copyright (c) 2006-2018, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 */ 9 #ifndef __TYPES_H__ 10 #define __TYPES_H__ 11 12 typedef long off_t; 13 typedef unsigned long size_t; 14 typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */ 15 16 typedef unsigned char u_char; 17 typedef unsigned short u_short; 18 typedef unsigned int u_int; 19 typedef unsigned long u_long; 20 21 typedef int mode_t; 22 23 typedef unsigned long clockid_t; 24 typedef int pid_t; 25 26 typedef int gid_t; 27 typedef int uid_t; 28 typedef int dev_t; 29 typedef int ino_t; 30 typedef int mode_t; 31 typedef int caddr_t; 32 33 typedef unsigned int wint_t; 34 typedef unsigned long useconds_t; 35 36 typedef unsigned long clock_t; /* clock() */ 37 38 #ifndef NULL 39 #define NULL (0) 40 #endif 41 42 #define __u_char_defined 43 44 #endif 45 46