PATCH: Implements /proc/cpuinfo and /proc/partitions

Corinna Vinschen
Sun Mar 2 15:40:00 GMT 2003

On Sun, Mar 02, 2003 at 12:50:51PM -0000, Chris January wrote:
> 2003-03-01  Christopher January  <>
> 	* (GetSystemTimes): Define new autoload function. 
> 	* (proc_listing): Add cpuinfo and partitions entries.
> 	(fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS cases.
> 	(format_proc_uptime): Use GetSystemTimes if available.
> 	(read_value): New macro.
> 	(print): New macro.
> 	(cpuid): New function.
> 	(can_set_flag): New function.
> 	(format_proc_cpuinfo): New function.
> 	(format_proc_partitions): New function.
> 	* w32api/include/winbase.h (FindFirstVolume): Add declaration.
> 	(FindNextVolume): Add declaration.
> 	(FindVolumeClose): Add declaration.
> 	(GetSystemTimes): Add declaration.
> 	* w32api/include/winnt.h: Add define for PF_XMMI64_INSTRUCTIONS_AVAILABLE.

I tried this patch and it works nicely but the patch creates a couple of
warnings at compile time: In function `off_t format_proc_cpuinfo(char*, unsigned int)': warning: unused variable `unsigned int extended_family' warning: unused variable `unsigned int extended_model' warning: unused variable `unsigned int cpuid_sig' warning: unused variable `unsigned int extra_info' warning: unused variable `unsigned int features' warning: unused variable `int cpu' warning: unused variable `int r1' warning: unused variable `int r2' In function `off_t format_proc_partitions(char*, unsigned int)': warning: comparison between signed and unsigned integer expressions

Would you mind to send a new patch w/o these warnings?


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

More information about the Cygwin-patches mailing list