This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 19 Dec 2008 15:32:11 +0100
- Subject: Re: [Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA
- References: <494BA890.8000004@t-online.de>
- Reply-to: cygwin-patches at cygwin dot com
On Dec 19 14:58, Christian Franke wrote:
> * fhandler_registry.cc (perf_data_files): New table.
> (PERF_DATA_FILE_COUNT): New constant.
> (fhandler_registry::exists): Add check for HKEY_PERFORMANCE_DATA
> value names.
> (fhandler_registry::fstat): For HKEY_PERFORMANCE_DATA, return
> default values only.
> (fhandler_registry::readdir): For HKEY_PERFORMANCE_DATA, list
> names from perf_data_files only.
> (fhandler_registry::fill_filebuf): Use larger buffer to speed up
> access to HKEY_PERFORMANCE_DATA values. Remove check for possible
> subkey. Add RegCloseKey ().
> (open_key): Replace goto by break, remove label. Do not try to
> open subkey of HKEY_PERFORMANCE_DATA. Add missing RegCloseKey ()
> after open subkey error.
Looks good. Works fine AFAICS. Applied.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat