Added various missing functions to the error mapper.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36320 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,4 +12,5 @@ StaticLibrary libposix_error_mapper.a :
|
|||||||
pthread_rwlock.cpp
|
pthread_rwlock.cpp
|
||||||
pthread_specific.cpp
|
pthread_specific.cpp
|
||||||
pthread_thread.cpp
|
pthread_thread.cpp
|
||||||
|
signal.cpp
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
* Copyright 2009-2010, Ingo Weinhold, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include "posix_error_mapper.h"
|
#include "posix_error_mapper.h"
|
||||||
@@ -58,3 +59,17 @@ WRAPPER_FUNCTION(int, pthread_attr_setscope,
|
|||||||
return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setscope(attr,
|
return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setscope(attr,
|
||||||
contentionScope));
|
contentionScope));
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
WRAPPER_FUNCTION(int, pthread_attr_setschedparam,
|
||||||
|
(pthread_attr_t *attr, const struct sched_param *param),
|
||||||
|
return B_TO_POSITIVE_ERROR(sReal_pthread_attr_setschedparam(attr,
|
||||||
|
param));
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
WRAPPER_FUNCTION(int, pthread_attr_getschedparam,
|
||||||
|
(const pthread_attr_t *attr, struct sched_param *param),
|
||||||
|
return B_TO_POSITIVE_ERROR(sReal_pthread_attr_getschedparam(attr,
|
||||||
|
param));
|
||||||
|
)
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
* Copyright 2009-2010, Ingo Weinhold, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include "posix_error_mapper.h"
|
#include "posix_error_mapper.h"
|
||||||
@@ -50,3 +51,17 @@ WRAPPER_FUNCTION(int, pthread_setcancelstate,
|
|||||||
WRAPPER_FUNCTION(int, pthread_setcanceltype, (int type, int *_oldType),
|
WRAPPER_FUNCTION(int, pthread_setcanceltype, (int type, int *_oldType),
|
||||||
return B_TO_POSITIVE_ERROR(sReal_pthread_setcanceltype(type, _oldType));
|
return B_TO_POSITIVE_ERROR(sReal_pthread_setcanceltype(type, _oldType));
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
WRAPPER_FUNCTION(int, pthread_getschedparam,
|
||||||
|
(pthread_t thread, int *policy, struct sched_param *param),
|
||||||
|
return B_TO_POSITIVE_ERROR(sReal_pthread_getschedparam(thread, policy,
|
||||||
|
param));
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
WRAPPER_FUNCTION(int, pthread_setschedparam,
|
||||||
|
(pthread_t thread, int policy, const struct sched_param *param),
|
||||||
|
return B_TO_POSITIVE_ERROR(sReal_pthread_setschedparam(thread, policy,
|
||||||
|
param));
|
||||||
|
)
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010, Ingo Weinhold, [email protected].
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
|
#include "posix_error_mapper.h"
|
||||||
|
|
||||||
|
|
||||||
|
WRAPPER_FUNCTION(int, pthread_sigmask,
|
||||||
|
(int how, const sigset_t *set, sigset_t *oldSet),
|
||||||
|
return B_TO_POSITIVE_ERROR(sReal_pthread_sigmask(how, set, oldSet));
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user