Changed the type of SyscallResult.errno to Errno.
Implemented open(2) and close(2) in Java.