Please check the manual page getrlimit(2).