Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
valgrind
/
5a2664c7e26ac5053ebde6954a6e789144df570e
/
.
/
none
/
tests
/
semlimit.c
blob: 5bf3d3f08d413a35a6407e69487dab68843bec4a [
file
] [
log
] [
blame
]
#include
<semaphore.h>
#include
<stdlib.h>
#define
SEM_LIMIT
100
int
main
(
int
argc
,
char
**
argv
)
{
sem_t
s
[
SEM_LIMIT
];
int
i
;
for
(
i
=
0
;
i
<
SEM_LIMIT
;
i
++)
{
sem_init
(&
s
[
i
],
0
,
0
);
}
exit
(
0
);
}