types.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Copyright (C) 2021 Rain */
  2. /* This file is part of XNIX. */
  3. /*
  4. XNIX is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) and later version.
  8. */
  9. /*
  10. XNIX is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. */
  15. /*
  16. You should have received a copy of the GNU General Public License
  17. along with XNIX. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. #ifndef INCLUDED_TYPES_H
  20. #define INCLUDED_TYPES_H
  21. #define NULL (void *) 0
  22. typedef char __schar_t;
  23. typedef unsigned char __uchar_t;
  24. typedef short __sshort_t;
  25. typedef unsigned short __ushort_t;
  26. typedef int __sint_t;
  27. typedef unsigned int __uint_t;
  28. typedef long __slong_t;
  29. typedef unsigned long __ulong_t;
  30. typedef __uchar_t __uint8_t;
  31. typedef __ushort_t __uint16_t;
  32. typedef __uint_t __uint32_t;
  33. typedef __ulong_t __uint64_t;
  34. #endif
  35. #ifdef CONFIG_FS
  36. #include "stucts.h
  37. typedef file_opt struct file_opt