Back to index

glibc  2.9
Functions
bug-ulimit1.c File Reference
#include <ulimit.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int main (void)

Function Documentation

int main ( void  )

Definition at line 5 of file bug-ulimit1.c.

{
  int retval = 0;
  long int res;

  res = ulimit (UL_SETFSIZE, 10000);
  printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res);
  if (res != 10000)
    retval = 1;

  res = ulimit (UL_GETFSIZE);
  printf ("Result of ulimit(UL_GETFSIZE): %ld\n", res);
  if (res != 10000)
    retval = 1;

  return retval;
}

Here is the call graph for this function: