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