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>
24 else if (f->_flag&(_IOWRT))
26 if (f->_base && (f->_flag&_IONBF)==0)
27 adjust = f->_ptr - f->_base;
29 else if (f->_flag&_IOREAD)
36 tres = lseek(fileno(f), 0L, SEEK_CUR);
41 //f->_cnt = f->_bufsiz - tres;
42 //f->_ptr = f->_base + tres;