208-magic-update-hp.dpatch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #!/bin/sh /usr/share/dpatch/dpatch-run
  2. ## 208-magic-update-hp.dpatch by Michael Piefel <piefel@debian.org>
  3. ##
  4. ## DP: Updated HP 38/39/40/48/49 magic (closes: #326680).
  5. @DPATCH@
  6. diff -Naur file-4.20.orig/magic/Magdir/hp file-4.20/magic/Magdir/hp
  7. --- file-4.20.orig/magic/Magdir/hp 2003-02-08 18:30:39.000000000 +0000
  8. +++ file-4.20/magic/Magdir/hp 2007-04-03 12:48:02.000000000 +0000
  9. @@ -203,33 +203,36 @@
  10. >8 long >0 %d messages
  11. # addendum to /etc/magic with HP-48sx file-types by phk@data.fls.dk 1jan92
  12. -0 string HPHP48- HP48 binary
  13. ->7 byte >0 - Rev %c
  14. ->8 beshort 0x1129 (ADR)
  15. ->8 beshort 0x3329 (REAL)
  16. ->8 beshort 0x5529 (LREAL)
  17. ->8 beshort 0x7729 (COMPLX)
  18. ->8 beshort 0x9d29 (LCOMPLX)
  19. ->8 beshort 0xbf29 (CHAR)
  20. ->8 beshort 0xe829 (ARRAY)
  21. ->8 beshort 0x0a2a (LNKARRAY)
  22. ->8 beshort 0x2c2a (STRING)
  23. ->8 beshort 0x4e2a (HXS)
  24. ->8 beshort 0x742a (LIST)
  25. ->8 beshort 0x962a (DIR)
  26. ->8 beshort 0xb82a (ALG)
  27. ->8 beshort 0xda2a (UNIT)
  28. ->8 beshort 0xfc2a (TAGGED)
  29. ->8 beshort 0x1e2b (GROB)
  30. ->8 beshort 0x402b (LIB)
  31. ->8 beshort 0x622b (BACKUP)
  32. ->8 beshort 0x882b (LIBDATA)
  33. ->8 beshort 0x9d2d (PROG)
  34. ->8 beshort 0xcc2d (CODE)
  35. ->8 beshort 0x482e (GNAME)
  36. ->8 beshort 0x6d2e (LNAME)
  37. ->8 beshort 0x922e (XLIB)
  38. -0 string %%HP: HP48 text
  39. +0 string HPHP4 HP
  40. +>5 string 8 48 binary
  41. +>5 string 9 49 binary
  42. +>7 byte >64 - Rev %c
  43. +>8 leshort 0x2911 (ADR)
  44. +>8 leshort 0x2933 (REAL)
  45. +>8 leshort 0x2955 (LREAL)
  46. +>8 leshort 0x2977 (COMPLX)
  47. +>8 leshort 0x299d (LCOMPLX)
  48. +>8 leshort 0x29bf (CHAR)
  49. +>8 leshort 0x29e8 (ARRAY)
  50. +>8 leshort 0x2a0a (LNKARRAY)
  51. +>8 leshort 0x2a2c (STRING)
  52. +>8 leshort 0x2a4e (HXS)
  53. +>8 leshort 0x2a74 (LIST)
  54. +>8 leshort 0x2a96 (DIR)
  55. +>8 leshort 0x2ab8 (ALG)
  56. +>8 leshort 0x2ada (UNIT)
  57. +>8 leshort 0x2afc (TAGGED)
  58. +>8 leshort 0x2b1e (GROB)
  59. +>8 leshort 0x2b40 (LIB)
  60. +>8 leshort 0x2b62 (BACKUP)
  61. +>8 leshort 0x2b88 (LIBDATA)
  62. +>8 leshort 0x2d9d (PROG)
  63. +>8 leshort 0x2dcc (CODE)
  64. +>8 leshort 0x2e48 (GNAME)
  65. +>8 leshort 0x2e6d (LNAME)
  66. +>8 leshort 0x2e92 (XLIB)
  67. +
  68. +0 string %%HP: HP text
  69. >6 string T(0) - T(0)
  70. >6 string T(1) - T(1)
  71. >6 string T(2) - T(2)
  72. @@ -240,6 +243,23 @@
  73. >14 string F(.) F(.);
  74. >14 string F(,) F(,);
  75. +0 string HP3 HP
  76. +>3 string 8 38
  77. +>3 string 9 39
  78. +>4 string Bin binary
  79. +>4 string Asc ASCII
  80. +>7 string A (Directory List)
  81. +>7 string B (Zaplet)
  82. +>7 string C (Note)
  83. +>7 string D (Program)
  84. +>7 string E (Variable)
  85. +>7 string F (List)
  86. +>7 string G (Matrix)
  87. +>7 string H (Library)
  88. +>7 string I (Target List)
  89. +>7 string J (ASCII Vector specification)
  90. +>7 string K (wildcard)
  91. +
  92. # hpBSD magic numbers
  93. 0 beshort 200 hp200 (68010) BSD
  94. >2 beshort 0407 impure binary
  95. @@ -391,5 +411,5 @@
  96. >>>>>>>>>0xC4 belong 34 - received SIGXFSZ
  97. # From: AMAKAWA Shuhei <sa264@cam.ac.uk>
  98. -0 string HPHP49- HP49 binary
  99. +#0 string HPHP49- HP49 binary