Made these two tests pass again on Darwin.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11117
This commit is contained in:
Bart Van Assche 2010-04-29 15:50:02 +00:00
parent eff767211d
commit a1d439d35b
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ int fetch_and_add(int* p, int i)
static sem_t* create_semaphore(const char* const name, const int value)
{
#ifndef HAVE_SEM_INIT
#ifdef __APPLE__
sem_t* p = sem_open(name, O_CREAT, 0600, value);
return p;
#else
@ -72,7 +72,7 @@ static sem_t* create_semaphore(const char* const name, const int value)
static void destroy_semaphore(const char* const name, sem_t* p)
{
#ifndef HAVE_SEM_INIT
#ifdef __APPLE__
sem_close(p);
sem_unlink(name);
#else

View File

@ -44,7 +44,7 @@ static int s_quiet;
static sem_t* create_semaphore(const char* const name)
{
#ifndef HAVE_SEM_INIT
#ifdef __APPLE__
sem_t* p = sem_open(name, O_CREAT, 0600, 0);
return p;
#else
@ -57,7 +57,7 @@ static sem_t* create_semaphore(const char* const name)
static void destroy_semaphore(const char* const name, sem_t* p)
{
#ifndef HAVE_SEM_INIT
#ifdef __APPLE__
sem_close(p);
sem_unlink(name);
#else