5 int main(int argc
, char **argv
)
11 printf("Usage: %s <file name>\n", argv
[0]);
15 fh
= Lock(argv
[1], SHARED_LOCK
);
19 struct FileInfoBlock
*fib
= AllocDosObject(DOS_FIB
, NULL
);
26 printf("Filename = %s\n" , fib
->fib_FileName
);
27 printf("Protection = 0x%08X\n", (unsigned)fib
->fib_Protection
);
31 printf("Examine() failed, ioerr = %d\n", (int)IoErr());
33 FreeDosObject(DOS_FIB
, fib
);
37 printf("couldn't allocate fileinfoblock\n");
44 printf("couldn't lock file\n");