dyadic 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #------------------------------------------------------------------------------
  2. # $File: dyadic,v 1.5 2010/09/20 18:55:20 rrt Exp $
  3. # Dyadic: file(1) magic for Dyalog APL.
  4. #
  5. 0 byte 0xaa
  6. >1 byte <4 Dyalog APL
  7. >>1 byte 0x00 incomplete workspace
  8. >>1 byte 0x01 component file
  9. >>1 byte 0x02 external variable
  10. >>1 byte 0x03 workspace
  11. >>2 byte x version %d
  12. >>3 byte x .%d
  13. 0 beshort 0xaa03 Dyalog APL
  14. >2 byte x workspace type %d
  15. >3 byte x subtype %d
  16. >7 byte&0x28 0x00 32-bit
  17. >7 byte&0x28 0x20 64-bit
  18. >7 byte&0x0c 0x00 classic
  19. >7 byte&0x0c 0x04 unicode
  20. >7 byte&0x88 0x00 big-endian
  21. >7 byte&0x88 0x80 little-endian
  22. 0 byte 0xaa Dyalog APL
  23. >1 byte 0x00 aplcore
  24. >1 byte 0x01 component file 32-bit non-journaled non-checksummed
  25. >1 byte 0x02 external variable exclusive
  26. >1 byte 0x06 external variable shared
  27. >1 byte 0x07 session
  28. >1 byte 0x08 mapped file 32-bit
  29. >1 byte 0x09 component file 64-bit non-journaled non-checksummed
  30. >1 byte 0x0a mapped file 64-bit
  31. >1 byte 0x0b component file 32-bit level 1 journaled non-checksummed
  32. >1 byte 0x0c component file 64-bit level 1 journaled non-checksummed
  33. >1 byte 0x0d component file 32-bit level 1 journaled checksummed
  34. >1 byte 0x0e component file 64-bit level 1 journaled checksummed
  35. >1 byte 0x0f component file 32-bit level 2 journaled checksummed
  36. >1 byte 0x10 component file 64-bit level 2 journaled checksummed
  37. >1 byte 0x11 component file 32-bit level 3 journaled checksummed
  38. >1 byte 0x12 component file 64-bit level 3 journaled checksummed
  39. >1 byte 0x13 component file 32-bit non-journaled checksummed
  40. >1 byte 0x14 component file 64-bit non-journaled checksummed
  41. >1 byte 0x80 DDB
  42. 0 short 0x6060 Dyalog APL transfer