diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-10-31 17:33:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-10-31 17:33:50 +0000 |
commit | 1828d6b0f39e98312f8df838ccad7cf8c8130f03 (patch) | |
tree | 4936d5eb461e16a1ebdcae5aabd2b969dba52d9e /resource/bug-ulimit1.c | |
parent | dbb6ab3ee03146cbd89cc52d5a18f666953327c6 (diff) | |
download | glibc-1828d6b0f39e98312f8df838ccad7cf8c8130f03.zip glibc-1828d6b0f39e98312f8df838ccad7cf8c8130f03.tar.gz glibc-1828d6b0f39e98312f8df838ccad7cf8c8130f03.tar.bz2 |
* resource/Makefile (tests): Add bug-ulimit1.
* resource/bug-ulimit1.c: New file.
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 0000000..334d7ff --- /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; +} |