Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert the sem_open 'fix'
[simgrid.git] / buildtools / Cmake / test_prog / prog_sem_init.c
1 /* Copyright (c) 2010-2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include <sys/types.h>
8 #include <sys/stat.h>
9 #include <fcntl.h>
10 #include <semaphore.h>
11
12 int main(void)
13 {
14   sem_t s;
15   if (sem_init(&s, 0, 0) != 0) 
16      return 1;
17   return 0;
18 }