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