Implement getrlimit or equivalent
We should consider adding a way for user processes to query resource limits imposed by the system. This would be immediately useful for issues such as ramfs#5 where the ramfs driver could use it at runtime to determine the maximum size of ramdisks.