From 1b61bf152b3972c6afd3f938d7654c7738b1c2bc Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 21 Aug 2007 12:37:40 +0000 Subject: * 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. --- winsup/cygwin/path.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/path.h') 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; -- cgit v1.2.3