repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
drd/tests/swapcontext: Improve the portability of this test further
[valgrind.git]
/
none
/
tests
/
semlimit.c
blob
5bf3d3f08d413a35a6407e69487dab68843bec4a
1
#include <semaphore.h>
2
#include <stdlib.h>
3
4
#define SEM_LIMIT 100
5
6
int
main
(
int
argc
,
char
**
argv
)
7
{
8
sem_t s
[
SEM_LIMIT
];
9
int
i
;
10
11
for
(
i
=
0
;
i
<
SEM_LIMIT
;
i
++) {
12
sem_init
(&
s
[
i
],
0
,
0
);
13
}
14
15
exit
(
0
);
16
}