#include #include #include #include main(int argc, char **argv) { char *p; struct rlimit rl, *rlp; int res; rlp = &rl; res=getrlimit((int)atoi(argv[1]), rlp); printf("rlimit: %d = %d (min),\t%d (max)\n",atoi(argv[1]), rlp->rlim_cur, rlp->rlim_max ); }