POS_ERR
if (curoff == POS_ERR)
if ((*seekfn)(fp, curoff, SM_IO_SEEK_SET) == POS_ERR)
(*seekfn)(fp, (off_t) offset, whence) == POS_ERR)