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

Christopher Faylor cgf@redhat.com
Sun Mar 9 20:11:00 GMT 2003


On Thu, Mar 06, 2003 at 10:58:31PM -0000, Chris January wrote:
>2003-03-06  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.

Applied, with some minor reformatting (comment style, trailing '&&',
protection of read_value and print macros).

Thanks.
cgf



More information about the Cygwin-patches mailing list