aboutsummaryrefslogtreecommitdiff
path: root/resource/bug-ulimit1.c
blob: 8dd3ddf493e09b05f7f2f76a29b3229196f65ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <ulimit.h>
#include <stdio.h>

int
main (void)
{
  int retval = 0;
  long int res;

  res = ulimit (UL_SETFSIZE, 10000L);
  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;
}