2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
10 int main(int argc
, char **argv
)
16 printf("Usage: %s <file name>\n", argv
[0]);
20 fh
= Lock(argv
[1], SHARED_LOCK
);
24 struct FileInfoBlock
*fib
= AllocDosObject(DOS_FIB
, NULL
);
31 printf("Filename = %s\n" , fib
->fib_FileName
);
32 printf("Protection = 0x%08X\n", (unsigned)fib
->fib_Protection
);
36 printf("Examine() failed, ioerr = %d\n", (int)IoErr());
38 FreeDosObject(DOS_FIB
, fib
);
42 printf("couldn't allocate fileinfoblock\n");
49 printf("couldn't lock file\n");