version 1.6, 2003/08/06 21:08:07 |
version 1.7, 2006/04/02 00:55:32 |
|
|
*/ |
*/ |
if (!(ch_flags & CH_CANSEEK)) |
if (!(ch_flags & CH_CANSEEK)) |
return ('?'); |
return ('?'); |
if (lseek(ch_file, (off_t)pos, 0) == BAD_LSEEK) |
if (lseek(ch_file, (off_t)pos, SEEK_SET) == BAD_LSEEK) |
{ |
{ |
error("seek error", NULL_PARG); |
error("seek error", NULL_PARG); |
clear_eol(); |
clear_eol(); |
|
|
} |
} |
#endif |
#endif |
|
|
if (lseek(ch_file, (off_t)0, 0) == BAD_LSEEK) |
if (lseek(ch_file, (off_t)0, SEEK_SET) == BAD_LSEEK) |
{ |
{ |
/* |
/* |
* Warning only; even if the seek fails for some reason, |
* Warning only; even if the seek fails for some reason, |
|
|
return (0); |
return (0); |
} |
} |
#endif |
#endif |
return (lseek(f, (off_t)1, 0) != BAD_LSEEK); |
return (lseek(f, (off_t)1, SEEK_SET) != BAD_LSEEK); |
} |
} |
|
|
/* |
/* |