Back to index

glibc  2.9
getrlimit64.c File Reference
#include <errno.h>
#include <sys/resource.h>
#include <sys/types.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


int getrlimit64 (enum __rlimit_resource resource, struct rlimit64 *rlimits)

Function Documentation

int getrlimit64 ( enum __rlimit_resource  resource,
struct rlimit64 *  rlimits 

Definition at line 26 of file getrlimit64.c.

  struct rlimit rlimits32;

  if (__getrlimit (resource, &rlimits32) < 0)
    return -1;

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

  return 0;

Here is the call graph for this function:

Here is the caller graph for this function: