Home | History | Annotate | Download | only in tests
      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 }
     17