types.h 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /*
  6. * Basic system types and major/minor device constructing/busting macros.
  7. */
  8. /* major part of a device */
  9. #define major(x) ((int)(((unsigned)(x)>>8)&0377))
  10. /* minor part of a device */
  11. #define minor(x) ((int)((x)&0377))
  12. /* make a device number */
  13. #define makedev(x,y) ((dev_t)(((x)<<8) | (y)))
  14. typedef unsigned char u_char;
  15. typedef unsigned short u_short;
  16. typedef unsigned int u_int;
  17. typedef unsigned long u_long;
  18. typedef struct _physadr { int r[1]; } *physadr;
  19. typedef long daddr_t;
  20. typedef char * caddr_t;
  21. typedef u_short ino_t;
  22. typedef long swblk_t;
  23. typedef long size_t;
  24. typedef long time_t;
  25. typedef long label_t[14];
  26. typedef short dev_t;
  27. typedef long off_t;
  28. /* system V compatibility: */
  29. typedef unsigned int uint;
  30. typedef unsigned short ushort;
  31. typedef unsigned char uchar_t;
  32. typedef short cnt_t;
  33. typedef long paddr_t;
  34. typedef long key_t;