X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/932b7fc3b014a174c2e9ec69564a43201711d340..b3141365cdcea8da7c4af506703ae369c3948bf8:/buildtools/Cmake/test_prog/prog_sem_open.c diff --git a/buildtools/Cmake/test_prog/prog_sem_open.c b/buildtools/Cmake/test_prog/prog_sem_open.c new file mode 100644 index 0000000000..4679c32f1b --- /dev/null +++ b/buildtools/Cmake/test_prog/prog_sem_open.c @@ -0,0 +1,23 @@ +/* Copyright (c) 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +#include +#include +#include +#include +#include + +int main(void) { + sem_t * s; + + s = sem_open("/0", O_CREAT, 0644, 10); + if (s == SEM_FAILED){ +// printf("sem_open failed\n"); + return 1; + } +// printf("sem_open succeeded\n"); + return 0; +}