- else
- {
-#ifdef __OS2__
- rc = DosSetFilePtr(stream->hfile, newpos, FILE_BEGIN, &retpos);
- if ((rc != 0) || (retpos != newpos))
- {
- errno = rc;
- return (-1);
- }
- else
- {
- stream->endbuf = stream->fbuf + stream->szfbuf;
- stream->upto = stream->endbuf;
- stream->bufStartR = newpos - stream->szfbuf;
- }
-#endif
-#ifdef __MSDOS
- __seek(stream->hfile, newpos, whence);
- stream->endbuf = stream->fbuf + stream->szfbuf;
- stream->upto = stream->endbuf;
- stream->bufStartR = newpos - stream->szfbuf;