4 int main(int argc
, char *argv
[])
13 printf("usage: vluke <structure> <file>\n");
20 fd
= open(fname
,O_RDONLY
);
27 io_init(&ps
, 0, MARSHALL
);
29 io_read(&ps
, fd
, st
.st_size
, 0);
31 ps
.buffer_size
= ps
.grow_size
;
33 ps
.autoalign
= OPTION_autoalign
;
34 ret
= run_test(test
, &ps
, PARSE_SCALARS
|PARSE_BUFFERS
);
35 printf("\nret=%s\n", ret
?"OK":"Bad");
36 printf("Trailer is %d bytes\n\n", ps
.grow_size
- ps
.data_offset
);
37 if (ps
.grow_size
- ps
.data_offset
> 0) {
38 dump_data(0, ps
.data_p
+ ps
.data_offset
, ps
.grow_size
- ps
.data_offset
);