Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hotmail.com>2002-03-19 07:39:01 +0300
committerRobert Collins <rbtcollins@hotmail.com>2002-03-19 07:39:01 +0300
commitb035997120187fa66461248494a1483eb6fe1133 (patch)
treed10a91435ef937e17460dd0e2951783dba637922 /winsup
parent0379a6552d3cef9e74c35d02f043544abfb14820 (diff)
2002-03-15 Robert Collins <rbtcollins@hotmail.com>
* fhandler.h (fhandler_termios::lseek): Override lseek. * fhandler_termios.cc (fhandler_termios::lseek): Implement this.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler.h1
-rw-r--r--winsup/cygwin/fhandler_termios.cc7
3 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3bb7032ea..a3852cc92 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 9cab1903b..3cad291d0 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -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
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index fb8c2e09f..094c1705d 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -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;
+}