1*d7847a8dSBrooks Davis /*- 2*d7847a8dSBrooks Davis * SPDX-License-Identifier: BSD-2-Clause 3*d7847a8dSBrooks Davis * 4*d7847a8dSBrooks Davis * Copyright (c) 2010 davidxu@freebsd.org 5*d7847a8dSBrooks Davis * 6*d7847a8dSBrooks Davis * Redistribution and use in source and binary forms, with or without 7*d7847a8dSBrooks Davis * modification, are permitted provided that the following conditions 8*d7847a8dSBrooks Davis * are met: 9*d7847a8dSBrooks Davis * 1. Redistributions of source code must retain the above copyright 10*d7847a8dSBrooks Davis * notice, this list of conditions and the following disclaimer. 11*d7847a8dSBrooks Davis * 2. Redistributions in binary form must reproduce the above copyright 12*d7847a8dSBrooks Davis * notice, this list of conditions and the following disclaimer in the 13*d7847a8dSBrooks Davis * documentation and/or other materials provided with the distribution. 14*d7847a8dSBrooks Davis * 15*d7847a8dSBrooks Davis * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16*d7847a8dSBrooks Davis * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17*d7847a8dSBrooks Davis * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18*d7847a8dSBrooks Davis * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19*d7847a8dSBrooks Davis * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20*d7847a8dSBrooks Davis * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21*d7847a8dSBrooks Davis * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22*d7847a8dSBrooks Davis * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23*d7847a8dSBrooks Davis * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24*d7847a8dSBrooks Davis * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25*d7847a8dSBrooks Davis * SUCH DAMAGE. 26*d7847a8dSBrooks Davis */ 27*d7847a8dSBrooks Davis 28*d7847a8dSBrooks Davis #include <signal.h> 29*d7847a8dSBrooks Davis #include "libc_private.h" 30*d7847a8dSBrooks Davis 31*d7847a8dSBrooks Davis #pragma weak sigwait 32*d7847a8dSBrooks Davis int 33*d7847a8dSBrooks Davis sigwait(const sigset_t *set, int *sig) 34*d7847a8dSBrooks Davis { 35*d7847a8dSBrooks Davis return (((int (*)(const sigset_t *, int *)) 36*d7847a8dSBrooks Davis *(__libc_interposing_slot(INTERPOS_sigwait)))(set, sig)); 37*d7847a8dSBrooks Davis } 38