Use getrlimit(2) instead of assuming MAXDSIZ is available in userland.
ok deraadt@