Go to the first, previous, next, last section, table of contents.


getrlimit

Syntax

#include <sys/resource.h>

int getrlimit (int rltype, struct rlimit *rlimitp);

Description

This function gets the resource limit specified by rltype and stores it in the buffer pointed to by rlimitp.

Return Value

Zero on success, nonzero on failure.

Portability

not ANSI, not POSIX

Example

struct rlimit rlimitbuf;
int rc = getrlimit (RLIMIT_STACK, &rlimitbuf);


Go to the first, previous, next, last section, table of contents.