@@ -0,0 +1,679 @@
+//%0A// $Id$%0A%0Apackage com.threerings.util;%0A%0Aimport com.threerings.util.unsafe.Unsafe;%0A%0A/**%0A * Does something extraordinary.%0A */%0Apublic class UIDTest%0A%7B%0A    public static void main (String%5B%5D args)%0A    %7B%0A        if (Unsafe.setuid(1000)) %7B%0A            System.err.println(%22Yay! My uid is changed.%22);%0A        %7D else %7B%0A            System.err.println(%22Boo hoo! I couldn't change my uid.%22);%0A        %7D%0A        if (Unsafe.setgid(60)) %7B%0A            System.err.println(%22Yay! My gid is changed.%22);%0A        %7D else %7B%0A            System.err.println(%22Boo hoo! I couldn't change my gid.%22);%0A        %7D%0A        try %7B%0A            Thread.sleep(60*1000L);%0A        %7D catch (Exception e) %7B%0A        %7D%0A    %7D%0A%7D%0A

Test program for the uid fiddly business.