]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/sigwaitinfo.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / sigwaitinfo.c
CommitLineData
688903eb 1/* Copyright (C) 1997-2018 Free Software Foundation, Inc.
cbdee279
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
cbdee279
UD
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 12 Lesser General Public License for more details.
cbdee279 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
15 License along with the GNU C Library; if not, see
16 <http://www.gnu.org/licenses/>. */
cbdee279
UD
17
18#include <signal.h>
6ee8d334 19#include <sysdep-cancel.h>
cbdee279 20
c6bb095e
AZ
21/* Return any pending signal or wait for one for the given time. */
22int
23__sigwaitinfo (const sigset_t *set, siginfo_t *info)
bc58c14e 24{
8b0e795a 25 return __sigtimedwait (set, info, 0);
bc58c14e
UD
26}
27
6166815d 28libc_hidden_def (__sigwaitinfo)
cbdee279 29weak_alias (__sigwaitinfo, sigwaitinfo)
e5e45b53 30strong_alias (__sigwaitinfo, __libc_sigwaitinfo)
8b0e795a
AZ
31
32/* __sigtimedwait handles cancellation. */
33LIBC_CANCEL_HANDLED ();