mirror of https://gitee.com/Nocallback/glibc.git
3 changed files with 26 additions and 2 deletions
@ -0,0 +1,21 @@ |
|||
#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; |
|||
} |
|||
Loading…
Reference in new issue