Back to index

glibc  2.9
bug-ulimit1.c
Go to the documentation of this file.
00001 #include <ulimit.h>
00002 #include <stdio.h>
00003 
00004 int
00005 main (void)
00006 {
00007   int retval = 0;
00008   long int res;
00009 
00010   res = ulimit (UL_SETFSIZE, 10000);
00011   printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res);
00012   if (res != 10000)
00013     retval = 1;
00014 
00015   res = ulimit (UL_GETFSIZE);
00016   printf ("Result of ulimit(UL_GETFSIZE): %ld\n", res);
00017   if (res != 10000)
00018     retval = 1;
00019 
00020   return retval;
00021 }