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:
Ingo Weinhold
2010-04-15 21:23:46 +00:00
parent 0dffa8d48e
commit 35ca8fd8aa
4 changed files with 48 additions and 2 deletions
+1
View File
@@ -12,4 +12,5 @@ StaticLibrary libposix_error_mapper.a :
pthread_rwlock.cpp
pthread_specific.cpp
pthread_thread.cpp
signal.cpp
;
+16 -1
View File
@@ -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.
*/
#include <pthread.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,
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));
)
+16 -1
View File
@@ -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.
*/
#include <pthread.h>
#include "posix_error_mapper.h"
@@ -50,3 +51,17 @@ WRAPPER_FUNCTION(int, pthread_setcancelstate,
WRAPPER_FUNCTION(int, pthread_setcanceltype, (int type, int *_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));
)
+15
View File
@@ -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));
)