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>2012-04-06 23:40:58 +0400
committerChristopher Faylor <me@cgf.cx>2012-04-06 23:40:58 +0400
commit00ceaad13411f75e1a8d203e7506287e4170357f (patch)
tree8bf9fb2a177c910b22c3e8cc51c21a1bad5f0f8e /winsup/cygwin/fhandler.h
parent25fdb1ded1ea05613140927d83f8e3da531bd6c5 (diff)
* fhandler.h (fhandler_base::nohandle): Implement "by hand" rather than through
macro. Set io_handle to INVALID_HANDLE_VALUE when setting flag to true.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 06fa7c4c4..84d531420 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -241,13 +241,20 @@ class fhandler_base
IMPLEMENT_STATUS_FLAG (bool, wbinset)
IMPLEMENT_STATUS_FLAG (bool, rbinset)
- IMPLEMENT_STATUS_FLAG (bool, nohandle)
IMPLEMENT_STATUS_FLAG (bool, did_lseek)
IMPLEMENT_STATUS_FLAG (query_state, query_open)
IMPLEMENT_STATUS_FLAG (bool, close_on_exec)
IMPLEMENT_STATUS_FLAG (bool, need_fork_fixup)
IMPLEMENT_STATUS_FLAG (bool, isclosed)
+ bool nohandle () const {return !!status.nohandle;}
+ bool nohandle (bool val)
+ {
+ if ((status.nohandle = val))
+ io_handle = INVALID_HANDLE_VALUE;
+ return val;
+ }
+
int get_default_fmode (int flags);
virtual void set_close_on_exec (bool val);