summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-02-27 00:34:40 +0000
committerChristopher Faylor <me@cgf.cx>2009-02-27 00:34:40 +0000
commitc7ef20e7faf221b35e18574dd8e107cccc21450a (patch)
tree4c358d15955e40c1828d0c031601e9f960652bcd /winsup/cygwin/fhandler.h
parentc636f27d48f153093d1532be50ae06311a75d309 (diff)
downloadcygnal-c7ef20e7faf221b35e18574dd8e107cccc21450a.tar.gz
cygnal-c7ef20e7faf221b35e18574dd8e107cccc21450a.tar.bz2
cygnal-c7ef20e7faf221b35e18574dd8e107cccc21450a.zip
* dtable.cc (dtable::select_read): Add ability to override fh.
* fhandler.h (fhandler_fifo::select_read): Declare new function. (fhandler_fifo::select_write): Ditto. (fhandler_fifo::select_except): Ditto. * select.cc (peek_pipe): Treat certain classes of pipe errors as "no data". (fhandler_fifo::select_read): Define new function. (fhandler_fifo::select_write): Ditto. (fhandler_fifo::select_except): Ditto. * shared_info.h (CURR_SHARED_MAGIC): Update.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index b737c481b..80ec297a5 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -558,6 +558,7 @@ public:
void init (HANDLE, DWORD, mode_t);
static int create (fhandler_pipe *[2], unsigned, int);
static int create_selectable (LPSECURITY_ATTRIBUTES, HANDLE&, HANDLE&, DWORD, const char * = NULL);
+ friend class fhandler_fifo;
};
enum fifo_state
@@ -582,6 +583,9 @@ public:
int __stdcall fstatvfs (struct statvfs *buf) __attribute__ ((regparm (2)));
OVERLAPPED *get_overlapped () {return &io_status;}
OVERLAPPED *get_overlapped_buffer () {return &io_status;}
+ select_record *select_read (select_record *s);
+ select_record *select_write (select_record *s);
+ select_record *select_except (select_record *s);
};
class fhandler_dev_raw: public fhandler_base