1 /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
2 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
4 #include <msvcrt/stdio.h>
5 #include <msvcrt/fcntl.h>
7 #include <msvcrt/errno.h>
8 #include <msvcrt/internal/file.h>
27 else if (f->_flag&(_IOWRT))
29 if (f->_base && (f->_flag&_IONBF)==0)
30 adjust = f->_ptr - f->_base;
32 else if (f->_flag&_IOREAD)
39 tres = lseek(fileno(f), 0L, SEEK_CUR);
44 //f->_cnt = f->_bufsiz - tres;
45 //f->_ptr = f->_base + tres;