[PATCH] implement /proc/swaps
Yaakov (Cygwin/X)
yselkowitz@users.sourceforge.net
Mon Apr 11 02:00:00 GMT 2011
This patch implements /proc/swaps, as found on Linux[1]:
$ cat /proc/swaps
Filename Type Size Used Priority
/cygdrive/c/pagefile.sys file 4192440 16376 0
/cygdrive/d/pagefile.sys file 4192440 14208 0
(The first line is tab-delineated, the following lines use spaces.)
If there is no paging file on the system (a legal but discouraged
configuration), then only the header line is displayed.
According to Microsoft[2], there's no simple way to set or determine
which paging file will be used at any given time. Therefore I list all
paging files with priority 0.
Patches for winsup/cygwin and winsup/doc attached.
Yaakov
[1] http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-proc-swaps.html
[2] http://support.microsoft.com/kb/314482
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doc-proc-swaps.patch
Type: text/x-patch
Size: 774 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110411/25785be6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc-swaps.patch
Type: text/x-patch
Size: 3255 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110411/25785be6/attachment-0001.bin>
More information about the Cygwin-patches
mailing list