[haiku-commits] r41740 - haiku/branches/developer/bonefish/signals/src/libs/posix_error_mapper

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 25 May 2011 17:20:42 +0200 (CEST)

Author: bonefish
Date: 2011-05-25 17:20:41 +0200 (Wed, 25 May 2011)
New Revision: 41740
Changeset: https://dev.haiku-os.org/changeset/41740

Modified:
   
haiku/branches/developer/bonefish/signals/src/libs/posix_error_mapper/signal.cpp
Log:
Added wrapper for sigwait(), since it returns the error code directly.


Modified: 
haiku/branches/developer/bonefish/signals/src/libs/posix_error_mapper/signal.cpp
===================================================================
--- 
haiku/branches/developer/bonefish/signals/src/libs/posix_error_mapper/signal.cpp
    2011-05-25 15:19:33 UTC (rev 41739)
+++ 
haiku/branches/developer/bonefish/signals/src/libs/posix_error_mapper/signal.cpp
    2011-05-25 15:20:41 UTC (rev 41740)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2010, Ingo Weinhold, ingo_weinhold@xxxxxxx
+ * Copyright 2010-2011, Ingo Weinhold, ingo_weinhold@xxxxxxx
  * Distributed under the terms of the MIT License.
  */
 
@@ -13,3 +13,8 @@
                (int how, const sigset_t *set, sigset_t *oldSet),
        return B_TO_POSITIVE_ERROR(sReal_pthread_sigmask(how, set, oldSet));
 )
+
+
+WRAPPER_FUNCTION(int, sigwait, (const sigset_t *set, int *signal),
+       return B_TO_POSITIVE_ERROR(sReal_sigwait(set, signal));
+)


Other related posts:

  • » [haiku-commits] r41740 - haiku/branches/developer/bonefish/signals/src/libs/posix_error_mapper - ingo_weinhold