From f7e198a665edf1b4d553be353999b4e1b7075c3a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 30 Jul 2011 20:01:27 +0000 Subject: [PATCH] * fhandler.h (fhandler_base_overlapped::size): Declare/define size() function for consistency. (fhandler_termios::size): Ditto. (fhandler_pty_common::size): Ditto. --- winsup/cygwin/ChangeLog | 7 +++++++ winsup/cygwin/fhandler.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 306ccabbe..66d44fdff 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2011-07-30 Christopher Faylor + + * fhandler.h (fhandler_base_overlapped::size): Declare/define size() + function for consistency. + (fhandler_termios::size): Ditto. + (fhandler_pty_common::size): Ditto. + 2011-07-30 Corinna Vinschen * fhandler_registry.cc (fhandler_registry::dup): Duplicate value_name. diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 5120a3ce2..3da41b747 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -614,6 +614,7 @@ public: int close (); int dup (fhandler_base *child); + virtual size_t size () const { return sizeof (*this);} /* probably not needed */ }; class fhandler_pipe: public fhandler_base_overlapped @@ -958,6 +959,7 @@ class fhandler_termios: public fhandler_base virtual void __release_output_mutex (const char *fn, int ln) {} void echo_erase (int force = 0); virtual _off64_t lseek (_off64_t, int); + virtual size_t size () const { return sizeof (*this);} /* probably not needed */ }; enum ansi_intensity @@ -1165,6 +1167,7 @@ class fhandler_pty_common: public fhandler_termios select_record *select_read (select_stuff *); select_record *select_write (select_stuff *); select_record *select_except (select_stuff *); + virtual size_t size () const { return sizeof (*this);} /* probably not needed */ }; class fhandler_pty_slave: public fhandler_pty_common