-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* resource/Makefile (tests): Add bug-ulimit1.
* resource/bug-ulimit1.c: New file.
- Loading branch information
Ulrich Drepper
committed
Oct 31, 2008
1 parent
dbb6ab3
commit 1828d6b
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |