misctools 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #-----------------------------------------------------------------------------
  2. # $File: misctools,v 1.17 2017/03/17 21:35:28 christos Exp $
  3. # misctools: file(1) magic for miscellaneous UNIX tools.
  4. #
  5. 0 search/1 %%!! X-Post-It-Note text
  6. 0 string/c BEGIN:VCALENDAR vCalendar calendar file
  7. !:mime text/calendar
  8. # updated by Joerg Jenderek at Apr 2015
  9. # Extension: .vcf
  10. # http://en.wikipedia.org/wiki/VCard
  11. 0 string/c BEGIN:VCARD vCard visiting card
  12. # deprecated
  13. #!:mime text/x-vcard
  14. !:mime text/vcard
  15. # VERSION must come right after BEGIN for 3.0 or 4.0 except in 2.1 , where it can be anywhere
  16. >12 search/14000/c VERSION:
  17. # VERSION 2.1 , 3.0 or 4.0
  18. >>&0 string x \b, version %-.3s
  19. # Summary: Libtool library file
  20. # Extension: .la
  21. # Submitted by: Tomasz Trojanowski <tomek@uninet.com.pl>
  22. 0 search/80 .la\ -\ a\ libtool\ library\ file libtool library file
  23. # Summary: Libtool object file
  24. # Extension: .lo
  25. # Submitted by: Abel Cheung <abelcheung@gmail.com>
  26. 0 search/80 .lo\ -\ a\ libtool\ object\ file libtool object file
  27. # From: Daniel Novotny <dnovotny@redhat.com>
  28. # Update: Joerg Jenderek
  29. # URL: https://en.wikipedia.org/wiki/Core_dump#User-mode_memory_dumps
  30. # Reference: https://msdn.microsoft.com/en-us/library/ms680378%28VS.85%29.aspx
  31. #
  32. # "Windows Minidump" by TrID
  33. # ./misctools (version 5.25) labeled the entry as "MDMP crash report data"
  34. 0 string MDMP Mini DuMP crash report
  35. # http://filext.com/file-extension/DMP
  36. !:mime application/x-dmp
  37. !:ext dmp/mdmp
  38. # The high-order word is an internal value that is implementation specific.
  39. # The low-order word is MINIDUMP_VERSION 0xA793
  40. >4 ulelong&0x0000FFFF !0xA793 \b, version 0x%4.4x
  41. # NumberOfStreams 8,9,10,13
  42. >8 ulelong x \b, %d streams
  43. # StreamDirectoryRva 0x20
  44. >12 ulelong !0x20 \b, 0x%8.8x RVA
  45. # CheckSum 0
  46. >16 ulelong !0 \b, CheckSum 0x%8.8x
  47. # Reserved or TimeDateStamp
  48. >20 ledate x \b, %s
  49. # https://msdn.microsoft.com/en-us/library/windows/desktop/ms680519%28v=vs.85%29.aspx
  50. # Flags MINIDUMP_TYPE enumeration type 0 0x121 0x800
  51. >24 ulelong x \b, 0x%x type
  52. # >24 ulelong >0 \b; include
  53. # >>24 ulelong &0x00000001 \b data sections,
  54. # >>24 ulelong &0x00000020 \b list of unloaded modules,
  55. # >>24 ulelong &0x00000100 \b process and thread information,
  56. # >>24 ulelong &0x00000800 \b memory information,
  57. # Summary: abook addressbook file
  58. # Submitted by: Mark Schreiber <mark7@alumni.cmu.edu>
  59. 0 string #\x20abook\x20addressbook\x20file abook address book
  60. !:mime application/x-abook-addressbook