2002-03-15 Robert Collins <rbtcollins@hotmail.com>

* fhandler.h (fhandler_termios::lseek): Override lseek.
        * fhandler_termios.cc (fhandler_termios::lseek): Implement this.
This commit is contained in:
Robert Collins 2002-03-19 04:39:01 +00:00
parent 0379a6552d
commit b035997120
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-03-15 Robert Collins <rbtcollins@hotmail.com>
* fhandler.h (fhandler_termios::lseek): Override lseek.
* fhandler_termios.cc (fhandler_termios::lseek): Implement this.
2002-03-15 Christopher Faylor <cgf@redhat.com>
* cygserver.cc: Include stdlib.h for exit declaration.

View File

@ -657,6 +657,7 @@ class fhandler_termios: public fhandler_base
void fixup_after_fork (HANDLE);
void fixup_after_exec (HANDLE parent) { fixup_after_fork (parent); }
void echo_erase (int force = 0);
virtual __off64_t lseek (__off64_t, int);
};
enum ansi_intensity

View File

@ -345,3 +345,10 @@ fhandler_termios::fixup_after_fork (HANDLE parent)
this->fhandler_base::fixup_after_fork (parent);
fork_fixup (parent, get_output_handle (), "output_handle");
}
__off64_t
fhandler_termios::lseek (__off64_t, int)
{
set_errno (ESPIPE);
return -1;
}