[PATCH] implement /proc/swaps

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Mon Apr 11 02:03:00 GMT 2011


On Sun, Apr 10, 2011 at 08:59:56PM -0500, Yaakov (Cygwin/X) wrote:
>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.

Looks reasonable.  Please check in.

Thanks!

cgf



More information about the Cygwin-patches mailing list