2013-01-16 00:45:51 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
|
|
|
|
Copyright(C) Jonas 'Sortie' Termansen 2013.
|
|
|
|
|
|
|
|
This file is part of Sortix.
|
|
|
|
|
|
|
|
Sortix is free software: you can redistribute it and/or modify it under the
|
|
|
|
terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation, either version 3 of the License, or (at your option) any later
|
|
|
|
version.
|
|
|
|
|
|
|
|
Sortix 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 General Public License for more
|
|
|
|
details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
|
|
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
sortix/__/types.h
|
|
|
|
Data types.
|
|
|
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
#ifndef INCLUDE_SORTIX____TYPES_H
|
|
|
|
#define INCLUDE_SORTIX____TYPES_H
|
|
|
|
|
2013-10-13 11:04:27 +00:00
|
|
|
#include <sys/cdefs.h>
|
2013-09-23 14:37:33 +00:00
|
|
|
|
2013-01-16 00:45:51 +00:00
|
|
|
#include <__/stdint.h>
|
|
|
|
#include <__/wordsize.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2013-12-28 21:56:20 +00:00
|
|
|
typedef __intmax_t __blkcnt_t;
|
|
|
|
|
|
|
|
typedef __intmax_t __blksize_t;
|
|
|
|
|
|
|
|
typedef long __clock_t;
|
|
|
|
|
|
|
|
typedef int __clockid_t;
|
|
|
|
|
|
|
|
typedef __uintptr_t __dev_t;
|
|
|
|
|
|
|
|
/* TODO: __fsblkcnt_t */
|
|
|
|
|
|
|
|
/* TODO: __fsblksize_t */
|
|
|
|
|
2013-01-16 00:45:51 +00:00
|
|
|
typedef int __gid_t;
|
2013-12-28 21:56:20 +00:00
|
|
|
|
|
|
|
typedef int __id_t;
|
|
|
|
|
|
|
|
typedef __uintmax_t __ino_t;
|
|
|
|
|
|
|
|
/* TODO: __key_t */
|
|
|
|
|
2013-01-16 00:45:51 +00:00
|
|
|
typedef unsigned int __mode_t;
|
2013-12-28 21:56:20 +00:00
|
|
|
|
|
|
|
typedef unsigned int __nlink_t;
|
|
|
|
|
2013-01-16 00:45:51 +00:00
|
|
|
typedef __intmax_t __off_t;
|
|
|
|
#define __OFF_MIN __INTMAX_MIN
|
|
|
|
#define __OFF_MAX __INTMAX_MAX
|
2013-12-28 21:56:20 +00:00
|
|
|
|
|
|
|
typedef int __pid_t;
|
|
|
|
|
|
|
|
/* TODO: __size_t */
|
|
|
|
|
|
|
|
typedef __SIZE_TYPE__ __socklen_t;
|
|
|
|
|
|
|
|
typedef __SSIZE_TYPE__ __ssize_t;
|
|
|
|
|
2013-01-16 00:45:51 +00:00
|
|
|
typedef long __suseconds_t;
|
2013-12-28 21:56:20 +00:00
|
|
|
|
|
|
|
typedef long __time_t;
|
|
|
|
|
2013-10-13 21:56:58 +00:00
|
|
|
typedef __uintptr_t __timer_t;
|
2013-12-28 21:56:20 +00:00
|
|
|
|
|
|
|
/* TODO: trace*_t */
|
|
|
|
|
|
|
|
typedef int __uid_t;
|
|
|
|
|
|
|
|
typedef unsigned int __useconds_t;
|
2013-01-16 00:45:51 +00:00
|
|
|
|
2013-09-22 21:55:39 +00:00
|
|
|
#if defined(__is_sortix_kernel) || defined(__is_sortix_libc)
|
2013-01-16 00:45:51 +00:00
|
|
|
#define OFF_MIN __OFF_MIN
|
|
|
|
#endif
|
2013-09-22 21:55:39 +00:00
|
|
|
#if defined(__is_sortix_kernel) || defined(__is_sortix_libc)
|
2013-01-16 00:45:51 +00:00
|
|
|
#define OFF_MAX __OFF_MAX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif
|