OSDN Git Service

2002-03-15 Robert Collins <rbtcollins@hotmail.com>
authorrbcollins <rbcollins>
Tue, 19 Mar 2002 04:39:01 +0000 (04:39 +0000)
committerrbcollins <rbcollins>
Tue, 19 Mar 2002 04:39:01 +0000 (04:39 +0000)
        * fhandler.h (fhandler_termios::lseek): Override lseek.
        * fhandler_termios.cc (fhandler_termios::lseek): Implement this.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_termios.cc

index 3bb7032..a3852cc 100644 (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.
index 9cab190..3cad291 100644 (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
index fb8c2e0..094c170 100644 (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; 
+}