* On BeOS compatible host platforms we must not include BeOSBuildCompatibility.h, but HaikuBuildCompatibility.h. * Fixed errno usage in command_cp.cpp. * Fixed fssh_ioctl(). * fssh_set_sem_owner() doesn't invoke BeOS's set_sem_owner() anymore or otherwise the FS's semaphores are assigned to the kernel. * Commented out <string.h> functions that don't exist under BeOS (and aren't used anyway). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20934 a95241bf-73f2-0310-859d-f6bbb57e9c96
53 lines
876 B
C++
53 lines
876 B
C++
/*
|
|
* Copyright 2007, Ingo Weinhold, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
#include "compatibility.h"
|
|
|
|
#include <OS.h>
|
|
|
|
#include "fssh_atomic.h"
|
|
|
|
|
|
int32_t
|
|
fssh_atomic_set(vint32_t *value, int32_t newValue)
|
|
{
|
|
return atomic_set((vint32*)value, newValue);
|
|
}
|
|
|
|
|
|
int32_t
|
|
fssh_atomic_test_and_set(vint32_t *value, int32_t newValue, int32_t testAgainst)
|
|
{
|
|
return atomic_test_and_set((vint32*)value, newValue, testAgainst);
|
|
}
|
|
|
|
|
|
int32_t
|
|
fssh_atomic_add(vint32_t *value, int32_t addValue)
|
|
{
|
|
return atomic_add((vint32*)value, addValue);
|
|
}
|
|
|
|
|
|
int32_t
|
|
fssh_atomic_and(vint32_t *value, int32_t andValue)
|
|
{
|
|
return atomic_and((vint32*)value, andValue);
|
|
}
|
|
|
|
|
|
int32_t
|
|
fssh_atomic_or(vint32_t *value, int32_t orValue)
|
|
{
|
|
return atomic_or((vint32*)value, orValue);
|
|
}
|
|
|
|
|
|
int32_t
|
|
fssh_atomic_get(vint32_t *value)
|
|
{
|
|
return atomic_get((vint32*)value);
|
|
}
|