diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-11 04:58:23 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-11 04:58:23 +0300 |
commit | 2116a175086ebaf7b5f71185fb9425c80771d3c4 (patch) | |
tree | 0cb08771477a12753c20be76dff577538c90d8e5 /winsup/cygwin/fhandler.h | |
parent | 7cf3b655ec6ec6246018018cf773d3433e6075af (diff) |
* autoload.cc (noload): Use proper method for multiline strings or newer gcc's
complain.
* exceptions.cc (unused_sig_wrapper): Ditto.
* fhandler.h (fhandler_base): Make get_io_handle and friends return self.
* fhandler_tty.cc (fhandler_pty_common::close_on_exec): Accomodate DEBUGGING
flag to avoid spurious warnings when inheritance is set.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index c4f931d63..1553f0ef5 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -317,9 +317,9 @@ public: /* Virtual accessor functions to hide the fact that some fd's have two handles. */ - virtual HANDLE get_handle () const { return io_handle; } - virtual HANDLE get_io_handle () const { return io_handle; } - virtual HANDLE get_output_handle () const { return io_handle; } + virtual HANDLE& get_handle () { return io_handle; } + virtual HANDLE& get_io_handle () { return io_handle; } + virtual HANDLE& get_output_handle () { return io_handle; } virtual BOOL hit_eof () {return FALSE;} virtual select_record *select_read (select_record *s); virtual select_record *select_write (select_record *s); @@ -347,7 +347,7 @@ private: public: fhandler_socket (const char *name = 0); ~fhandler_socket (); - int get_socket () const { return (int) get_handle(); } + int get_socket () { return (int) get_handle(); } fhandler_socket * is_socket () { return this; } int write (const void *ptr, size_t len); int read (void *ptr, size_t len); @@ -570,7 +570,7 @@ public: { // nothing to do } - HANDLE get_output_handle () const { return output_handle; } + HANDLE& get_output_handle () { return output_handle; } int line_edit (const char *rptr, int nread, int always_accept = 0); void set_output_handle (HANDLE h) { output_handle = h; } void tcinit (tty_min *this_tc, int force = FALSE); |