/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 */
#ifndef __TYPES_H__
#define __TYPES_H__
#include <rtconfig.h>

typedef long        off_t;

#ifndef ARCH_CPU_64BIT
typedef unsigned int size_t;
typedef signed int   ssize_t;  /* Used for a count of bytes or an error indication. */
#else
typedef long unsigned int size_t;
typedef long signed int   ssize_t;  /* Used for a count of bytes or an error indication. */
#endif

typedef unsigned char  u_char;
typedef unsigned short u_short;
typedef unsigned int   u_int;
typedef unsigned long  u_long;

typedef unsigned long clockid_t;
typedef int pid_t;

typedef int gid_t;
typedef int uid_t;
typedef int dev_t;
typedef int ino_t;
typedef int mode_t;
typedef int caddr_t;

typedef unsigned int wint_t;
typedef unsigned long useconds_t;

typedef unsigned long clock_t; /* clock() */

#ifndef NULL
#define NULL        (0)
#endif

#define __u_char_defined

#endif

