/******************************************************************************* Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013. This file is part of the Sortix C Library. The Sortix C Library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The Sortix C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . sys/types.h Data types. *******************************************************************************/ #ifndef INCLUDE_SYS_TYPES_H #define INCLUDE_SYS_TYPES_H #include #include #if __STDC_HOSTED__ #include <__/pthread.h> #endif __BEGIN_DECLS #ifndef __blkcnt_t_defined #define __blkcnt_t_defined typedef __blkcnt_t blkcnt_t; #endif #ifndef __blksize_t_defined #define __blksize_t_defined typedef __blksize_t blksize_t; #endif #ifndef __clock_t_defined #define __clock_t_defined typedef __clock_t clock_t; #endif #ifndef __clockid_t_defined #define __clockid_t_defined typedef __clockid_t clockid_t; #endif #ifndef __dev_t_defined #define __dev_t_defined typedef __dev_t dev_t; #endif #ifndef __fsblkcnt_t_defined #define __fsblkcnt_t_defined typedef __fsblkcnt_t fsblkcnt_t; #endif #ifndef __fsfilcnt_t_defined #define __fsfilcnt_t_defined typedef __fsfilcnt_t fsfilcnt_t; #endif #ifndef __gid_t_defined #define __gid_t_defined typedef __gid_t gid_t; #endif #ifndef __id_t_defined #define __id_t_defined typedef __id_t id_t; #endif #ifndef __ino_t_defined #define __ino_t_defined typedef __ino_t ino_t; #endif /* TODO: key_t */ #ifndef __mode_t_defined #define __mode_t_defined typedef __mode_t mode_t; #endif #ifndef __nlink_t_defined #define __nlink_t_defined typedef __nlink_t nlink_t; #endif #ifndef __off_t_defined #define __off_t_defined typedef __off_t off_t; #endif #if defined(__is_sortix_kernel) || defined(__is_sortix_libc) #define OFF_MIN __OFF_MIN #define OFF_MAX __OFF_MAX #endif #ifndef __pid_t_defined #define __pid_t_defined typedef __pid_t pid_t; #endif #ifndef __size_t_defined #define __size_t_defined #define __need_size_t #include #endif #ifndef __ssize_t_defined #define __ssize_t_defined typedef __ssize_t ssize_t; #endif #ifndef __suseconds_t_defined #define __suseconds_t_defined typedef __suseconds_t suseconds_t; #endif #ifndef __time_t_defined #define __time_t_defined typedef __time_t time_t; #endif #ifndef __timer_t_defined #define __timer_t_defined typedef __timer_t timer_t; #endif /* TODO: trace*_t */ #ifndef __uid_t_defined #define __uid_t_defined typedef __uid_t uid_t; #endif #ifndef __useconds_t_defined #define __useconds_t_defined typedef __useconds_t useconds_t; #endif #if __STDC_HOSTED__ #ifndef __pthread_attr_t_defined #define __pthread_attr_t_defined typedef __pthread_attr_t pthread_attr_t; #endif #ifndef __pthread_barrier_t_defined #define __pthread_barrier_t_defined typedef __pthread_barrier_t pthread_barrier_t; #endif #ifndef __pthread_barrierattr_t_defined #define __pthread_barrierattr_t_defined typedef __pthread_barrierattr_t pthread_barrierattr_t; #endif #ifndef __pthread_cond_t_defined #define __pthread_cond_t_defined typedef __pthread_cond_t pthread_cond_t; #endif #ifndef __pthread_condattr_t_defined #define __pthread_condattr_t_defined typedef __pthread_condattr_t pthread_condattr_t; #endif #ifndef __pthread_key_t_defined #define __pthread_key_t_defined typedef __pthread_key_t pthread_key_t; #endif #ifndef __pthread_mutex_t_defined #define __pthread_mutex_t_defined typedef __pthread_mutex_t pthread_mutex_t; #endif #ifndef __pthread_mutexattr_t_defined #define __pthread_mutexattr_t_defined typedef __pthread_mutexattr_t pthread_mutexattr_t; #endif #ifndef __pthread_once_t_defined #define __pthread_once_t_defined typedef __pthread_once_t pthread_once_t; #endif #ifndef __pthread_rwlock_t_defined #define __pthread_rwlock_t_defined typedef __pthread_rwlock_t pthread_rwlock_t; #endif #ifndef __pthread_rwlockattr_t_defined #define __pthread_rwlockattr_t_defined typedef __pthread_rwlockattr_t pthread_rwlockattr_t; #endif #ifndef __pthread_spinlock_t_defined #define __pthread_spinlock_t_defined typedef __pthread_spinlock_t pthread_spinlock_t; #endif #ifndef __pthread_t_defined #define __pthread_t_defined typedef __pthread_t pthread_t; #endif #endif __END_DECLS #endif