Implemented Java version of getpid(2), getuid(2), getgid(2), geteuid(2)
and getegid(2).

getpid(2) of this is fake.