Return to elf2olf.c CVS log | Up to [local] / src / usr.bin / elf2olf |
version 1.7, 2003/06/10 22:20:46 | version 1.8, 2006/03/22 13:25:58 | ||
---|---|---|---|
|
|
||
do { | do { | ||
okay = 0; | okay = 0; | ||
if ((fd = open(*argv, O_RDWR | O_EXLOCK, 0)) > 0 && | if ((fd = open(*argv, O_RDWR | O_EXLOCK, 0)) != -1 && | ||
lseek(fd, (off_t)0, SEEK_SET) == 0 && | lseek(fd, (off_t)0, SEEK_SET) == 0 && | ||
fstat(fd, &st) == 0) { | fstat(fd, &st) == 0) { | ||