* 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.
This commit is contained in:
parent
91888cc07b
commit
4f3e6ff17b
|
@ -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>
|
2005-08-18 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* fhandler_socket.cc (fhandler_socket::recvfrom): Always initialize
|
* fhandler_socket.cc (fhandler_socket::recvfrom): Always initialize
|
||||||
|
|
|
@ -944,6 +944,7 @@ class fhandler_tty_common: public fhandler_termios
|
||||||
tty *get_ttyp () { return (tty *) tc; }
|
tty *get_ttyp () { return (tty *) tc; }
|
||||||
|
|
||||||
int close ();
|
int close ();
|
||||||
|
_off64_t lseek (_off64_t, int);
|
||||||
void set_close_on_exec (bool val);
|
void set_close_on_exec (bool val);
|
||||||
void fixup_after_fork (HANDLE parent);
|
void fixup_after_fork (HANDLE parent);
|
||||||
select_record *select_read (select_record *s);
|
select_record *select_read (select_record *s);
|
||||||
|
@ -971,7 +972,6 @@ class fhandler_tty_slave: public fhandler_tty_common
|
||||||
int dup (fhandler_base *child);
|
int dup (fhandler_base *child);
|
||||||
void fixup_after_fork (HANDLE parent);
|
void fixup_after_fork (HANDLE parent);
|
||||||
|
|
||||||
_off64_t lseek (_off64_t, int) { return 0; }
|
|
||||||
select_record *select_read (select_record *s);
|
select_record *select_read (select_record *s);
|
||||||
int cygserver_attach_tty (HANDLE*, HANDLE*);
|
int cygserver_attach_tty (HANDLE*, HANDLE*);
|
||||||
int get_unit ();
|
int get_unit ();
|
||||||
|
@ -1002,7 +1002,6 @@ public:
|
||||||
int tcflush (int);
|
int tcflush (int);
|
||||||
int ioctl (unsigned int cmd, void *);
|
int ioctl (unsigned int cmd, void *);
|
||||||
|
|
||||||
_off64_t lseek (_off64_t, int) { return 0; }
|
|
||||||
char *ptsname ();
|
char *ptsname ();
|
||||||
|
|
||||||
void set_close_on_exec (bool val);
|
void set_close_on_exec (bool val);
|
||||||
|
|
|
@ -1180,6 +1180,13 @@ fhandler_pty_master::open (int flags, mode_t)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_off64_t
|
||||||
|
fhandler_tty_common::lseek (_off64_t, int)
|
||||||
|
{
|
||||||
|
set_errno (ESPIPE);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
fhandler_tty_common::close ()
|
fhandler_tty_common::close ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue