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:
authorCorinna Vinschen <corinna@vinschen.de>2007-08-21 16:37:40 +0400
committerCorinna Vinschen <corinna@vinschen.de>2007-08-21 16:37:40 +0400
commit1b61bf152b3972c6afd3f938d7654c7738b1c2bc (patch)
treeaef05189fb494912b59ec82f49bc69ed7a71bd0f /winsup/cygwin/path.h
parent66e36b7987c8690029768d38b0caeb480a29fe42 (diff)
* ntdll.h (NtNotifyChangeDirectoryFile): Declare.
(NtQueryAttributesFile): Move to maintain alphabetical order of declarations. Add comment to note that timestamp information returned by NtQueryAttributesFile is unreliable. * path.h (etc::changed_h): Move here. (etc::fn): Change type to OBJECT_ATTRIBUTES. (etc::last_modified): Change type to LARGE_INTEGER. (etc::init): Take PUNICODE_STRING as second argument. * path.cc: Accomodate above changes. (etc::test_file_change): Use NT native functions. (etc::dir_changed): Ditto. * uinfo.cc (pwdgrp::load): Call etc::init with NT native path.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index b258ac9b6..5bf9717e3 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -336,11 +336,12 @@ class etc
{
friend class dtable;
static int curr_ix;
+ static HANDLE changed_h;
static bool change_possible[MAX_ETC_FILES + 1];
- static const char *fn[MAX_ETC_FILES + 1];
- static FILETIME last_modified[MAX_ETC_FILES + 1];
+ static OBJECT_ATTRIBUTES fn[MAX_ETC_FILES + 1];
+ static LARGE_INTEGER last_modified[MAX_ETC_FILES + 1];
static bool dir_changed (int);
- static int init (int, const char *);
+ static int init (int, PUNICODE_STRING);
static bool file_changed (int);
static bool test_file_change (int);
friend class pwdgrp;