Restore ChangeLog
[glibc.git] / resource / bug-ulimit1.c
blob334d7fff047bb0ba1670f1b0d7b75feefc880e8c
1 #include <ulimit.h>
2 #include <stdio.h>
4 int
5 main (void)
7 int retval = 0;
8 long int res;
10 res = ulimit (UL_SETFSIZE, 10000);
11 printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res);
12 if (res != 10000)
13 retval = 1;
15 res = ulimit (UL_GETFSIZE);
16 printf ("Result of ulimit(UL_GETFSIZE): %ld\n", res);
17 if (res != 10000)
18 retval = 1;
20 return retval;