ubuntu-buildroot/output/build/glibc-2.36-81-g4f4d7a13edfd.../resource/bug-ulimit1.c

22 lines
373 B
C
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
#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;
}