Implement getpid(2) and getppid(2)

Like it says on the tin.