[Patch] Allow access to /proc/registry/HKEY_PERFORMANCE_DATA

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Dec 19 14:32:00 GMT 2008

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.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-patches mailing list