00001 /***************************************************************************************** 00002 Copyright (c) 2002-2004 The UbixOS Project 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without modification, are 00006 permitted provided that the following conditions are met: 00007 00008 Redistributions of source code must retain the above copyright notice, this list of 00009 conditions, the following disclaimer and the list of authors. Redistributions in binary 00010 form must reproduce the above copyright notice, this list of conditions, the following 00011 disclaimer and the list of authors in the documentation and/or other materials provided 00012 with the distribution. Neither the name of the UbixOS Project nor the names of its 00013 contributors may be used to endorse or promote products derived from this software 00014 without specific prior written permission. 00015 00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 00017 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00018 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 00019 THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00020 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00021 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00022 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 00023 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00024 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00025 00026 $Id: types_8h-source.html 88 2016-01-12 00:11:29Z reddawg $ 00027 00028 *****************************************************************************************/ 00029 00030 #ifndef _TYPES_H 00031 #define _TYPES_H 00032 00033 #include <sys/_types.h> 00034 00035 #ifndef NULL 00036 #define NULL 0x0 00037 #endif 00038 00039 typedef unsigned char uInt8; 00040 typedef unsigned short uInt16; 00041 typedef unsigned int uInt32; 00042 typedef unsigned int uInt; 00043 typedef char Int8; 00044 typedef short Int16; 00045 typedef long Int32; 00046 00047 typedef __uint8_t u_int8_t; /* unsigned integrals (deprecated) */ 00048 typedef __uint16_t u_int16_t; 00049 typedef __uint32_t uint32_t; 00050 typedef __uint64_t u_int64_t; 00051 //typedef long long int quad_t; 00052 typedef __uint64_t quad_t; 00053 00054 typedef unsigned char u_char; 00055 typedef unsigned short u_short; 00056 typedef unsigned int u_int; 00057 typedef unsigned long u_long; 00058 00059 00060 typedef int pidType; 00061 00062 typedef int pid_t; 00063 typedef int size_t; /* standart */ 00064 00065 #ifndef NOBOOL 00066 #ifndef __cplusplus 00067 typedef enum { FALSE=0,TRUE=1 } bool; 00068 #endif 00069 #endif 00070 00071 #ifndef _INO_T_DECLARED 00072 typedef __ino_t ino_t; /* inode number */ 00073 #define _INO_T_DECLARED 00074 #endif 00075 00076 #ifndef _INT8_T_DECLARED 00077 typedef __int8_t int8_t; 00078 #define _INT8_T_DECLARED 00079 #endif 00080 00081 #ifndef _INT16_T_DECLARED 00082 typedef __int16_t int16_t; 00083 #define _INT16_T_DECLARED 00084 #endif 00085 00086 #ifndef _INT32_T_DECLARED 00087 typedef __int32_t int32_t; 00088 #define _INT32_T_DECLARED 00089 #endif 00090 00091 #ifndef _INT64_T_DECLARED 00092 typedef __int64_t int64_t; 00093 #define _INT64_T_DECLARED 00094 #endif 00095 00096 typedef __ssize_t ssize_t; 00097 typedef char * caddr_t; 00098 typedef __int64_t off_t; 00099 typedef __uint32_t vm_offset_t; 00100 00101 typedef __uid_t uid_t; /* user id */ 00102 typedef __gid_t gid_t; /* group id */ 00103 typedef __blkcnt_t blkcnt_t; 00104 typedef __blksize_t blksize_t; 00105 typedef __fflags_t fflags_t; 00106 00107 #ifndef _TIME_T_DECLARED 00108 typedef __time_t time_t; 00109 #define _TIME_T_DECLARED 00110 #endif 00111 00112 00113 #endif 00114 00115 /*** 00116 END 00117 ***/ 00118