diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-10-31 21:34:01 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-10-31 21:34:01 +0000 |
commit | c02fa54041a68c12107ec577770ff81329af3bef (patch) | |
tree | ac6d3ee86cd046eca0c09c2de43695b5f3116d69 /resource/bug-ulimit1.c | |
parent | 242bfefc41f4cc06dcff88c5bd143cc43719a73a (diff) |
Updated to fedora-glibc-20081031T2102cvs/fedora-glibc-2_8_90-16
Diffstat (limited to 'resource/bug-ulimit1.c')
-rw-r--r-- | resource/bug-ulimit1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/resource/bug-ulimit1.c b/resource/bug-ulimit1.c new file mode 100644 index 0000000000..334d7fff04 --- /dev/null +++ b/resource/bug-ulimit1.c @@ -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; +} |