Back to index

glibc  2.9
Functions
setrlimit64.c File Reference
#include <errno.h>
#include <sys/resource.h>
#include <sys/types.h>

Go to the source code of this file.

Functions

int setrlimit64 (enum __rlimit_resource resource, const struct rlimit64 *rlimits)

Function Documentation

int setrlimit64 ( enum __rlimit_resource  resource,
const struct rlimit64 *  rlimits 
)

Definition at line 27 of file setrlimit64.c.

{
  struct rlimit rlimits32;

  if (rlimits->rlim_cur >= RLIM_INFINITY)
    rlimits32.rlim_cur = RLIM_INFINITY;
  else
    rlimits32.rlim_cur = rlimits->rlim_cur;
  if (rlimits->rlim_max >= RLIM_INFINITY)
    rlimits32.rlim_max = RLIM_INFINITY;
  else
    rlimits32.rlim_max = rlimits->rlim_max;

  return __setrlimit (resource, &rlimits32);
}

Here is the call graph for this function:

Here is the caller graph for this function: