aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/local_includes/fhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/local_includes/fhandler.h')
-rw-r--r--winsup/cygwin/local_includes/fhandler.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/winsup/cygwin/local_includes/fhandler.h b/winsup/cygwin/local_includes/fhandler.h
index 1dc0260..8e30884 100644
--- a/winsup/cygwin/local_includes/fhandler.h
+++ b/winsup/cygwin/local_includes/fhandler.h
@@ -214,6 +214,9 @@ class fhandler_base
struct rabuf_t ra;
+ /* Used for posix_getdents () */
+ DIR *_getdents_dir;
+
/* Used for advisory file locking. See flock.cc. */
int64_t unique_id;
void del_my_locks (del_lock_called_from);
@@ -526,6 +529,17 @@ public:
}
HANDLE get_select_sem () { return select_sem; }
+
+ DIR *getdents_dir () const { return _getdents_dir; }
+ DIR *getdents_dir (DIR *_nd) { return _getdents_dir = _nd; }
+ void clear_getdents ()
+ {
+ if (getdents_dir ())
+ {
+ fdclosedir (getdents_dir ());
+ getdents_dir (NULL);
+ }
+ }
};
struct wsa_event