1/* 2 * Copyright 2005-2011, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT license. 4 * 5 * Author(s): 6 * Jérôme Duval 7 * Ingo Weinhold, ingo_weinhold@gmx.de 8 */ 9 10 11#include <signal.h> 12 13#include <errno.h> 14 15#include <syscall_utils.h> 16 17#include <errno_private.h> 18#include <symbol_versioning.h> 19#include <syscalls.h> 20 21#include <signal_private.h> 22 23 24int 25__sigpending_beos(sigset_t_beos* beosSet) 26{ 27 sigset_t set; 28 if (__sigpending(&set) != 0) 29 return -1; 30 31 *beosSet = to_beos_sigset(set); 32 return 0; 33} 34 35 36int 37__sigpending(sigset_t* set) 38{ 39 RETURN_AND_SET_ERRNO(_kern_sigpending(set)); 40} 41 42 43DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigpending_beos", "sigpending@", 44 "BASE"); 45 46DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigpending", "sigpending@@", 47 "1_ALPHA4"); 48