Subversion Repositories HelenOS

Rev

Rev 3259 | Rev 3262 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3259 Rev 3260
Line 33... Line 33...
33
import sys
33
import sys
34
import os
34
import os
35
import struct
35
import struct
36
import xstruct
36
import xstruct
37
 
37
 
38
HEADER = xstruct.convert("little: char[5]")
38
HEADER = xstruct.convert("little: "
-
 
39
    "char[5]  /* 'TMPFS' */ "
-
 
40
)
-
 
41
 
39
DENTRY = xstruct.convert("little: uint8_t uint32_t")
42
DENTRY = xstruct.convert("little: "
-
 
43
    "uint8_t   /* NONE, FILE or DIRECTORY */ "
-
 
44
    "uint32_t  /* filename length */ "
-
 
45
)
-
 
46
 
40
SIZE = xstruct.convert("little: uint32_t")
47
SIZE = xstruct.convert("little: "
-
 
48
    "uint32_t  /* file size */ "
-
 
49
)
41
 
50
 
42
DENTRY_NONE = 0
51
DENTRY_NONE = 0
43
DENTRY_FILE = 1
52
DENTRY_FILE = 1
44
DENTRY_DIRECTORY = 2
53
DENTRY_DIRECTORY = 2
45
 
54