64bit.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. /*
  10. * fundamental constants and types of the implementation
  11. * changing any of these changes the layout on disk
  12. */
  13. /* the glorious new, incompatible (on disk) 64-bit world */
  14. /* keeping NAMELEN ≤ 50 bytes permits 3 Dentrys per mag disk sector */
  15. enum {
  16. NAMELEN = 56, /* max size of file name components */
  17. NDBLOCK = 6, /* number of direct blocks in Dentry */
  18. NIBLOCK = 4, /* max depth of indirect blocks */
  19. };
  20. /*
  21. * file offsets & sizes, in bytes & blocks. typically long or vlong.
  22. * vlong is used in the code where would be needed if Off were just long.
  23. */
  24. typedef vlong Off;
  25. #undef COMPAT32
  26. #define swaboff swab8