| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /* include/sys/types.h
- *
- * This file is part of xnix.
- *
- * XNIX 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.
- *
- * XNIX 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 XNIX. If not, see <https://www.gnu.org/licenses/>
- */
- #ifndef __TYPES_H
- #define __TYPES_H
- /*
- * this file defines all types of intergers (not include 128-bits),
- * in kernel hacking you should use these types, not use raw C types */
- /*
- * and, you should not use those 64-bit intergers, because xnix will
- * run on some 32-bit machines too.
- * */
- #ifndef __ASSEMBLER__
- /* signed intergers */
- typedef signed char __int8_t;
- typedef signed char __sint8_t;
- typedef signed char __schar_t;
- typedef short signed int __int16_t;
- typedef short signed int __sint16_t;
- typedef signed int __int32_t;
- typedef signed int __sint32_t;
- typedef long signed int __int64_t;
- typedef long signed int __sint64_t;
- /* and, unsigneds */
- typedef unsigned char __uint8_t;
- typedef unsigned char __uchar_t;
- typedef short unsigned int __uint16_t;
- typedef unsigned int __uint32_t;
- typedef long unsigned int __uint64_t;
- typedef __uint16_t __gid_t;
- typedef __uint32_t __uid_t;
- typedef __uint32_t __ref_t;
- typedef __uint32_t __dev_t;
- #endif
- #endif
|