Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
valgrind
/
01c5e66465183399cac5e0b15ca5ce87d822e73a
/
.
/
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
);
}