glibc/resource/bug-ulimit1.c
Ulrich Drepper 1828d6b0f3 * resource/Makefile (tests): Add bug-ulimit1.
* resource/bug-ulimit1.c: New file.
2008-10-31 17:33:50 +00:00

22 lines
373 B
C

#include <ulimit.h>
#include <stdio.h>
int
main (void)
{
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;
}