2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
4 * Distributed under the terms of the MIT License.
12 #include <symbol_versioning.h>
16 #include <signal_private.h>
20 __sigwait_beos(const sigset_t_beos
* beosSet
, int* _signal
)
22 // convert the given signal set and call the current version
23 sigset_t set
= from_beos_sigset(*beosSet
);
24 int error
= __sigwait(&set
, _signal
);
28 // translate SIGBUS to SIGSEGV
29 if (*_signal
== SIGBUS
)
37 __sigwait(const sigset_t
* set
, int* _signal
)
40 status_t error
= _kern_sigwait(set
, &info
, 0, 0);
47 *_signal
= info
.si_signo
;
52 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigwait_beos", "sigwait@", "BASE");
54 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigwait", "sigwait@@", "1_ALPHA4");