1 /* Copyright (c) 2010-2014. The SimGrid Team.
2 * All rights reserved. */
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. */
10 #include <semaphore.h>
14 #define SEM_FAILED (-1)
23 s = sem_open("/0", O_CREAT, 0644, 10);
25 // printf("sem_open failed\n");
28 // printf("sem_open succeeded\n");