"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/map" (17 Mar 2017, 1131 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 
    3 #------------------------------------------------------------------------------
    4 # $File: map,v 1.4 2015/08/10 05:18:27 christos Exp $
    5 # map:  file(1) magic for Map data
    6 #
    7 
    8 # Garmin .FIT files http://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
    9 8	string	.FIT		FIT Map data
   10 >15	byte	0
   11 >>35	belong	x		\b, unit id %d
   12 >>39	lelong	x		\b, serial %u
   13 # http://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
   14 # 20 years after unix epoch
   15 # TZ=GMT date -d '1989-12-31 0:00' +%s
   16 >>43	leldate+631065600	x	\b, %s
   17 
   18 >>47	leshort x		\b, manufacturer %d
   19 >>47	leshort	1		\b (garmin)
   20 >>49	leshort x		\b, product %d
   21 >>53	byte	x		\b, type %d
   22 >>53	byte	1		\b (Device)
   23 >>53	byte	2		\b (Settings)
   24 >>53	byte	3		\b (Sports/Cycling)
   25 >>53	byte	4		\b (Activity)
   26 >>53	byte	8		\b (Elevations)
   27 >>53	byte	10		\b (Totals)
   28 
   29 # TOM TOM GPS watches ttbin files:
   30 # http://github.com/ryanbinns/ttwatch/tree/master/ttbin
   31 # From: Daniel Lenski
   32 0	byte	0x20
   33 >1	leshort	0x0007
   34 >>0x76	byte	0x20
   35 >>>0x77	leshort	0x0075		TomTom activity file, v7
   36 >>>>8	leldate	x		(%s,
   37 >>>>3	byte    x		device firmware %d.
   38 >>>>4	byte	x		\b%d.
   39 >>>>5	byte	x		\b%d,
   40 >>>>6	leshort	x		product ID %04d)
   41