[haiku-commits] r36320 - haiku/trunk/src/libs/posix_error_mapper

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 15 Apr 2010 23:23:46 +0200 (CEST)

Author: bonefish
Date: 2010-04-15 23:23:46 +0200 (Thu, 15 Apr 2010)
New Revision: 36320
Changeset: http://dev.haiku-os.org/changeset/36320/haiku

Added:
   haiku/trunk/src/libs/posix_error_mapper/signal.cpp
Modified:
   haiku/trunk/src/libs/posix_error_mapper/Jamfile
   haiku/trunk/src/libs/posix_error_mapper/pthread_attr.cpp
   haiku/trunk/src/libs/posix_error_mapper/pthread_thread.cpp
Log:
Added various missing functions to the error mapper.


Modified: haiku/trunk/src/libs/posix_error_mapper/Jamfile
===================================================================
--- haiku/trunk/src/libs/posix_error_mapper/Jamfile     2010-04-15 21:21:32 UTC 
(rev 36319)
+++ haiku/trunk/src/libs/posix_error_mapper/Jamfile     2010-04-15 21:23:46 UTC 
(rev 36320)
@@ -12,4 +12,5 @@
        pthread_rwlock.cpp
        pthread_specific.cpp
        pthread_thread.cpp
+       signal.cpp
 ;

Modified: haiku/trunk/src/libs/posix_error_mapper/pthread_attr.cpp
===================================================================
--- haiku/trunk/src/libs/posix_error_mapper/pthread_attr.cpp    2010-04-15 
21:21:32 UTC (rev 36319)
+++ haiku/trunk/src/libs/posix_error_mapper/pthread_attr.cpp    2010-04-15 
21:23:46 UTC (rev 36320)
@@ -1,8 +1,9 @@
 /*
- * Copyright 2009, Ingo Weinhold, ingo_weinhold@xxxxxxx
+ * Copyright 2009-2010, Ingo Weinhold, ingo_weinhold@xxxxxxx
  * Distributed under the terms of the MIT License.
  */
 
+
 #include <pthread.h>
 
 #include "posix_error_mapper.h"
@@ -58,3 +59,17 @@
        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));
+)

Modified: haiku/trunk/src/libs/posix_error_mapper/pthread_thread.cpp
===================================================================
--- haiku/trunk/src/libs/posix_error_mapper/pthread_thread.cpp  2010-04-15 
21:21:32 UTC (rev 36319)
+++ haiku/trunk/src/libs/posix_error_mapper/pthread_thread.cpp  2010-04-15 
21:23:46 UTC (rev 36320)
@@ -1,8 +1,9 @@
 /*
- * Copyright 2009, Ingo Weinhold, ingo_weinhold@xxxxxxx
+ * Copyright 2009-2010, Ingo Weinhold, ingo_weinhold@xxxxxxx
  * Distributed under the terms of the MIT License.
  */
 
+
 #include <pthread.h>
 
 #include "posix_error_mapper.h"
@@ -50,3 +51,17 @@
 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));
+)

Added: haiku/trunk/src/libs/posix_error_mapper/signal.cpp
===================================================================
--- haiku/trunk/src/libs/posix_error_mapper/signal.cpp                          
(rev 0)
+++ haiku/trunk/src/libs/posix_error_mapper/signal.cpp  2010-04-15 21:23:46 UTC 
(rev 36320)
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2010, Ingo Weinhold, ingo_weinhold@xxxxxxx
+ * 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));
+)


Other related posts:

  • » [haiku-commits] r36320 - haiku/trunk/src/libs/posix_error_mapper - ingo_weinhold