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

Chris January chris@atomice.net
Sun Mar 2 12:51:00 GMT 2003


2003-03-01  Christopher January  <chris@atomice.net>

	* autoload.cc (GetSystemTimes): Define new autoload function. 
	* fhandler_proc.cc (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.

---
Christopher January www.atomice.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpuinfo_partitions.patch
Type: application/octet-stream
Size: 23721 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030302/de40a005/attachment.obj>


More information about the Cygwin-patches mailing list