[PATCH] sysinfo

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Fri May 6 05:09:00 GMT 2011


This implements sysinfo(2), a GNU extension:

http://www.kernel.org/doc/man-pages/online/pages/man2/sysinfo.2.html

The code is partially based on our /proc/meminfo and /proc/uptime code.
(My next patch will port the former to use sysinfo(2), but the latter
cannot as it uses .01s resolution, more than sysinfo's 1s.  That patch
will also fix /proc/meminfo and /proc/swaps for RAM and paging files
larger than 4GB.)

Patches for winsup/cygwin and winsup/doc, plus a test program, attached.


Yaakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysinfo.patch
Type: text/x-patch
Size: 7126 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110506/1ae46cb0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc-sysinfo.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110506/1ae46cb0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysinfo-test.c
Type: text/x-csrc
Size: 1272 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110506/1ae46cb0/attachment-0002.bin>


More information about the Cygwin-patches mailing list