types.h 1.0 KB

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