repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix invalid escape sequence in build-many-glibcs.py
[glibc.git]
/
resource
/
bug-ulimit1.c
blob
8dd3ddf493e09b05f7f2f76a29b3229196f65ee1
1
#include <ulimit.h>
2
#include <stdio.h>
3
4
int
5
main
(
void
)
6
{
7
int
retval
=
0
;
8
long int
res
;
9
10
res
=
ulimit
(
UL_SETFSIZE
,
10000L
);
11
printf
(
"Result of ulimit (UL_SETFSIZE, 10000): %ld
\n
"
,
res
);
12
if
(
res
!=
10000
)
13
retval
=
1
;
14
15
res
=
ulimit
(
UL_GETFSIZE
);
16
printf
(
"Result of ulimit(UL_GETFSIZE): %ld
\n
"
,
res
);
17
if
(
res
!=
10000
)
18
retval
=
1
;
19
20
return
retval
;
21
}