128273Ssteve/*
2124355Srwatson * Copyright (c) 2014 The FreeBSD Foundation.
328273Ssteve * All rights reserved.
428273Ssteve *
528273Ssteve * Portions of this software were developed by Konstantin Belousov
628273Ssteve * under sponsorship from the FreeBSD Foundation.
728273Ssteve *
828273Ssteve * Redistribution and use in source and binary forms, with or without
928273Ssteve * modification, are permitted provided that the following conditions
1028273Ssteve * are met:
1128273Ssteve * 1. Redistributions of source code must retain the above copyright
1228273Ssteve *    notice(s), this list of conditions and the following disclaimer as
1328273Ssteve *    the first lines of this file unmodified other than the possible
1428273Ssteve *    addition of one or more copyright notices.
1528273Ssteve * 2. Redistributions in binary form must reproduce the above copyright
1628273Ssteve *    notice(s), this list of conditions and the following disclaimer in
1728273Ssteve *    the documentation and/or other materials provided with the
1828273Ssteve *    distribution.
1928273Ssteve *
2028273Ssteve * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
2128273Ssteve * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2228273Ssteve * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2328273Ssteve * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE
2428273Ssteve * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2528273Ssteve * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2669059Sphantom * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
2750476Speter * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2828273Ssteve * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
29224708Srmacklem * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
3028273Ssteve * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3128273Ssteve */
3228273Ssteve
3328273Ssteve#include <sys/cdefs.h>
3428273Ssteve__FBSDID("$FreeBSD: releng/11.0/lib/libc/sys/sigwaitinfo.c 276630 2015-01-03 18:38:46Z kib $");
3528273Ssteve
3628273Ssteve#include <sys/types.h>
3769059Sphantom#include <signal.h>
3828273Ssteve#include "libc_private.h"
3969059Sphantom
4028273Ssteve__weak_reference(__sys_sigwaitinfo, __sigwaitinfo);
41111447Sru
4228273Ssteve#pragma weak sigwaitinfo
4328273Ssteveint
4428273Sstevesigwaitinfo(const sigset_t * __restrict set, siginfo_t * __restrict info)
4528273Ssteve{
4628273Ssteve
47111447Sru	return (((int (*)(const sigset_t *, siginfo_t *))
4870466Sru	    __libc_interposing[INTERPOS_sigwaitinfo])(set, info));
49111447Sru}
50108228Sdillon