Blame resource/bug-ulimit1.c
|
Packit Service |
82fcde |
#include <ulimit.h>
|
|
Packit Service |
82fcde |
#include <stdio.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
int
|
|
Packit Service |
82fcde |
main (void)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
int retval = 0;
|
|
Packit Service |
82fcde |
long int res;
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
res = ulimit (UL_SETFSIZE, 10000);
|
|
Packit Service |
82fcde |
printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res);
|
|
Packit Service |
82fcde |
if (res != 10000)
|
|
Packit Service |
82fcde |
retval = 1;
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
res = ulimit (UL_GETFSIZE);
|
|
Packit Service |
82fcde |
printf ("Result of ulimit(UL_GETFSIZE): %ld\n", res);
|
|
Packit Service |
82fcde |
if (res != 10000)
|
|
Packit Service |
82fcde |
retval = 1;
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
return retval;
|
|
Packit Service |
82fcde |
}
|