mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Made these two tests pass again on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11117
This commit is contained in:
parent
eff767211d
commit
a1d439d35b
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user