[PATCH] implement /proc/swaps

2011-04-10 Thread Yaakov (Cygwin/X)
This patch implements /proc/swaps, as found on Linux[1]: $ cat /proc/swaps FilenameTypeSizeUsedPriority /cygdrive/c/pagefile.sysfile4192440 16376 0 /cygdrive/d/pagefile.sysfile4192440 1420

Re: [PATCH] implement /proc/swaps

2011-04-10 Thread Christopher Faylor
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 TypeSizeUsedPriority >/cygdrive/c/pagefile.sysfile4192440 16376

[PATCH] pthread_getattr_np, pthread_setschedprio

2011-04-10 Thread Yaakov (Cygwin/X)
This patch adds two pthread functions which appear to be "low-hanging fruit". pthread_setschedprio(3) is a POSIX function[1][2] which changes the scheduling priority for the given thread. It is similar to pthread_setschedparam(3) but does not change the scheduling policy and doesn't require the p