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
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-08-19 00:17:10 +0400
committerChristopher Faylor <me@cgf.cx>2005-08-19 00:17:10 +0400
commit4f3e6ff17b8a7646ed8342164c0a1c6af8f731e8 (patch)
tree2b46d49328f9fdbd87c8c6287e905586b2124828 /winsup/cygwin
parent91888cc07b6f2d4437a082f740edd3b948e10d0f (diff)
* fhandler.h (fhandler_tty_common::lseek): Declare new method.
(fhandler_tty_slave::lseek): Delete old method. (fhandler_tty_master::lseek): Delete old method. * fhandler_tty.cc (fhandler_tty_common::lseek): Define new method.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/fhandler.h3
-rw-r--r--winsup/cygwin/fhandler_tty.cc7
3 files changed, 15 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0e476582b..009e291b7 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-18 Christopher Faylor <cgf@timesys.com>
+
+ * fhandler.h (fhandler_tty_common::lseek): Declare new method.
+ (fhandler_tty_slave::lseek): Delete old method.
+ (fhandler_tty_master::lseek): Delete old method.
+ * fhandler_tty.cc (fhandler_tty_common::lseek): Define new method.
+
2005-08-18 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::recvfrom): Always initialize
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 04a80b0dc..ce0bef7d7 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -944,6 +944,7 @@ class fhandler_tty_common: public fhandler_termios
tty *get_ttyp () { return (tty *) tc; }
int close ();
+ _off64_t lseek (_off64_t, int);
void set_close_on_exec (bool val);
void fixup_after_fork (HANDLE parent);
select_record *select_read (select_record *s);
@@ -971,7 +972,6 @@ class fhandler_tty_slave: public fhandler_tty_common
int dup (fhandler_base *child);
void fixup_after_fork (HANDLE parent);
- _off64_t lseek (_off64_t, int) { return 0; }
select_record *select_read (select_record *s);
int cygserver_attach_tty (HANDLE*, HANDLE*);
int get_unit ();
@@ -1002,7 +1002,6 @@ public:
int tcflush (int);
int ioctl (unsigned int cmd, void *);
- _off64_t lseek (_off64_t, int) { return 0; }
char *ptsname ();
void set_close_on_exec (bool val);
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index a7d0afb8b..ce2bd5db8 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -1180,6 +1180,13 @@ fhandler_pty_master::open (int flags, mode_t)
return 1;
}
+_off64_t
+fhandler_tty_common::lseek (_off64_t, int)
+{
+ set_errno (ESPIPE);
+ return -1;
+}
+
int
fhandler_tty_common::close ()
{